question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot connected with Template wont play any music at all

See original GitHub issue

Hello,

I am relatively now to this bot. So please excuse if I cause any trouble. 😄 I began to setup mutliple Instances of the bot. Used !bot connect <ip etc.> To let it connect to my Server, then !bot save <template> to save it.

Now if I connect the Template bot and want to play some music. It does not play music at all. Not from youtube or anything else. (But sets the description and avatar)

The default one that connects on startup plays music just fine.

Am I doing anything wrong ? / Do I miss something ?

Regards

This is my ‘Template Config’

#The language the bot should use to respond to users. (Make sure you have added the required language packs)
language = "de"

[commands]

[commands.alias]

[connect]
#The server password. Leave empty for none.
server_password = {  }
#The default channel password. Leave empty for none.
channel_password = {  }
#Overrides the displayed version for the ts3 client. Leave empty for default.
client_version = {  }
#The address, ip or nickname (and port; default: 9987) of the TeamSpeak3 server
address = "HIDDEN"
#Client nickname when connecting.
name = "Bot1"

[connect.identity]
#||| DO NOT MAKE THIS KEY PUBLIC ||| The client identity. You can import a teamspeak3 identity here too.
key = "HIDDEN"
#The client identity offset determining the security level.
offset = 297

[reconnect]

[audio]
#When a new song starts the volume will be trimmed to between min and max.
#When the current volume already is between min and max nothing will happen.
#To completely or partially disable this feature, set min to 0 and/or max to 100.
volume = { default = 2.0 }
#How the bot should play music. Options are:
# - whisper : Whispers to the channel where the request came from. Other users can join with '!subscribe'.
# - voice : Sends via normal voice to the current channel. '!subscribe' will not work in this mode.
# - !... : A custom command. Use '!xecute (!a) (!b)' for example to execute multiple commands.
send_mode = "whisper"
#Specifies the bitrate (in kbps) for sending audio.
#Values between 8 and 98 are supported, more or less can work but without guarantees.
#Reference values: 16 - very poor (~3KiB/s), 24 - poor (~4KiB/s), 32 - okay (~5KiB/s), 48 - good (~7KiB/s), 64 - very good (~9KiB/s), 96 - deluxe (~13KiB/s)
bitrate = 96
#The maximum volume a normal user can request. Only user with the 'ts3ab.admin.volume' permission can request higher volumes.
max_user_volume = 100.0

[playlists]

[history]

[events]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Splamycommented, Apr 5, 2020

lol, well sorry for taking a few days break of a free project. our dedicated 24/7 team will get to you immediately. But seriously, you can bump a thread if we maybe forgot it, or just be patient, I’m not always in in the mood for tech support or programming either and have other things I want to fill my day with.

1reaction
DoMaxiHacommented, Mar 29, 2020

Hello, thanks for your awnser.

Ofcourse

Version: 0.11.0 Branch: master CommitHash: c7e44e4dfd5d5240cd5d8cbe4fa1f20a0315aca4

2020-03-29 20:25:05.0097| INFO|0|Bot.OnMessageReceived User Asczery | Dominik requested: !play [URL]https://github.com/Splamy/TS3AudioBot/wiki/Plugins[/URL]
2020-03-29 20:25:05.4423| INFO|0|PlayManager.StopInternal Song queue ended: No next song could be played.
2020-03-29 20:25:26.9668| INFO|0|Bot.OnMessageReceived User Asczery | Dominik requested: !whisper sub
2020-03-29 20:25:30.3981| INFO|0|Bot.OnMessageReceived User Asczery | Dominik requested: !play [URL]http://wdr-edge-201a.fra-lg.cdn.addradio.net/wdr/1live/live/mp3/128/stream.mp3[/URL]
2020-03-29 20:25:30.5976| WARN|0|HistoryManager.LogAudioResource AudioLogEntry could not be created!
System.Exception: Track name is empty
2020-03-29 20:28:36.5430|FATAL||LoggerImpl.Write Critical program error!
System.ObjectDisposedException: Cannot access a closed file.
   at System.IO.FileStream.ValidateReadWriteArgs(Byte[] array, Int32 offset, Int32 count)
   at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
   at System.IO.Stream.<>c.<BeginReadInternal>b__40_0(Object <p0>)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
   at System.IO.Stream.EndRead(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Diagnostics.AsyncStreamReader.ReadBufferAsync()
2020-03-29 20:35:25.3911| INFO|0|Bot.OnMessageReceived User Asczery | Dominik requested: !sub
2020-03-29 21:33:03.8335| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !whisper off
2020-03-29 21:33:08.1133| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !whisper subscription
2020-03-29 21:33:19.7212| INFO|0|Bot.OnMessageReceived User Asczery | Dominik requested: !unsub
2020-03-29 21:33:23.5269| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !play [URL]http://wdr-edge-2015.fra-lg.cdn.addradio.net/wdr/1live/live/mp3/128/stream.mp3[/URL]
2020-03-29 21:33:26.9638| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !sub
2020-03-29 21:33:36.2604| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !whisper
2020-03-29 21:33:38.9466| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !whisper list
2020-03-29 21:33:44.4268| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !whisper channel
2020-03-29 21:33:46.3135| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !sub
2020-03-29 21:33:47.7260| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !unsub
2020-03-29 21:33:49.2492| INFO|1|Bot.OnMessageReceived User Asczery | Dominik requested: !whisper off
2020-03-29 21:33:51.1241| INFO|0|Bot.OnMessageReceived User Asczery | Dominik requested: !sub
2020-03-29 21:40:23.5400| INFO|0|Bot.OnMessageReceived User Pascal | PROHQUA requested: !sub
2020-03-29 21:41:09.2953| INFO|0|Bot.OnMessageReceived User Pascal | PROHQUA requested: !vol 50
2020-03-29 22:07:37.5948| INFO|0|Bot.OnMessageReceived User Pascal | PROHQUA requested: !unsub
2020-03-29 22:22:32.3666| INFO|0|Bot.OnMessageReceived User Asczery | Dominik requested: !version

Copied a bit more so you guys can see what I did before and after the trace.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't my music bot play anything in a stage channel?
When I request to speak instead of make suppress = False, it plays only one track, and doesn't play next tracks. Someone have...
Read more >
Cant hear music bot but others can. : r/discordapp
Cant hear music bot but others can. This keeps on happening to me, i will join a VC and get a music in...
Read more >
Rythm Discord Bot Not Working: Bug Fixed (2022) - YouTube
Rythm Discord Bot not working? Rythm not playing music ? Learn how to easily fix Rythm, and make the audio work again!
Read more >
Green-Bot Music Bot 2022 Setup Guide - YouTube
How to invite and Setup Green- Bot and start playing music with all your friends on Discord. Just head over to the Bot's...
Read more >
Playing Music with ProBot - 2021 User Guide - YouTube
One of ProBot's many features is its ability to play music on Discord. ... an overview of all the Features ProBot has like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found