You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
sorry for asking but i have some issues with the code for my MusicBot.
I wanted to learn how to create custom commands for MusicBot so i tried
creating a simple command of reply (basically the concept is if you write "hi" the bot
should reply "Hi {user.name} !" ).
Considering that i didn't know how to code with Python, i tried looking on the web
and i was close to solving the issue myself. Until this showed up:
[ERROR:bot] Exception in on_voice_state_update
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 255, in _run_event
await coro(*args, **kwargs)
File "C:\Users\User\Server\Bot\MusicBot\musicbot\bot.py", line 2846, in on_voice_state_update
player = await self.get_player(channel)
File "C:\Users\User\Server\Bot\MusicBot\musicbot\bot.py", line 431, in get_player
'Use %ssummon to summon it to your voice channel.' % self.config.command_prefix)
musicbot.exceptions.CommandError: The bot is not in a voice channel. Use !summon to summon it to your voice channel.
Now for the bot to start normally again i should just delete the part that i wrote,
but i want this to work since i could learn how to create commands.
If someone had the same issue, please feel free to repost your situation below in the comments.
Anyway, if someone could help me that would be really helpfull.
Thanks for reading so far (i know, it's a lot).
Atlas
The text was updated successfully, but these errors were encountered:
Hello,
sorry for asking but i have some issues with the code for my MusicBot.
I wanted to learn how to create custom commands for MusicBot so i tried
creating a simple command of reply (basically the concept is if you write "hi" the bot
should reply "Hi {user.name} !" ).
Considering that i didn't know how to code with Python, i tried looking on the web
and i was close to solving the issue myself. Until this showed up:
[ERROR:bot] Exception in on_voice_state_update
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 255, in _run_event
await coro(*args, **kwargs)
File "C:\Users\User\Server\Bot\MusicBot\musicbot\bot.py", line 2846, in on_voice_state_update
player = await self.get_player(channel)
File "C:\Users\User\Server\Bot\MusicBot\musicbot\bot.py", line 431, in get_player
'Use %ssummon to summon it to your voice channel.' % self.config.command_prefix)
musicbot.exceptions.CommandError: The bot is not in a voice channel. Use !summon to summon it to your voice channel.
Now for the bot to start normally again i should just delete the part that i wrote,
but i want this to work since i could learn how to create commands.
If someone had the same issue, please feel free to repost your situation below in the comments.
Anyway, if someone could help me that would be really helpfull.
Thanks for reading so far (i know, it's a lot).
Atlas
The text was updated successfully, but these errors were encountered: