After few hours bot stops working
smaartscz opened this issue · 4 comments
smaartscz commented
What went wrong?
If you leave bot in voice channel for few hours it will undeafen himself and start thinking it isn't in voice channel.
Summoning will say it connected to voice channel but that doesn't help at all. Using !restart usually solves issues.
I'm using Debian 10 but bot is conternized using official docker image.
Log:
000000000000000000/xxxx#0000: !summon,
Joining XXXXXX/🪑VoiceChannel🪑,
000000000000000000/xxxx#0000: !p test,
[ERROR:bot] Error in play: CommandError: The bot is not in a voice channel. Use !summon to summon it to your voice channel.,
Traceback (most recent call last):,
File "/musicbot/musicbot/bot.py", line 4058, in on_message,
response = await handler(**handler_kwargs),
File "/musicbot/musicbot/bot.py", line 1649, in cmd_play,
return await self._cmd_play(,
File "/musicbot/musicbot/bot.py", line 1720, in _cmd_play,
raise exceptions.CommandError(,
musicbot.exceptions.CommandError: The bot is not in a voice channel. Use !summon to summon it to your voice channel.
How do we reproduce this?
- Summon bot
- Leave him alone for few hours
- Done
Which version of the bot are you using?
release-151221
Which operating system are you using?
Other
Just checking...
- I have confirmed that my issue has not already been reported.
- I am using Python 3.8 or higher.
- I have updated my Python dependencies.
Jcodeerd commented
Could you send the entire log?
It might have gotten disconnected by discord.
smaartscz commented
Of course. I hope I didn't leak something important xd.
musicbot.log
.
Jcodeerd commented
Yep, I was correct. Discord decided to reconnect
Not much we can do afaik
smaartscz commented
oh okay, thank you.