Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR:bot] Exception in on_voice_state_update #30

Closed
ghost opened this issue Apr 23, 2019 · 2 comments
Closed

[ERROR:bot] Exception in on_voice_state_update #30

ghost opened this issue Apr 23, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 23, 2019

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

@cool-RR
Copy link
Owner

cool-RR commented Apr 23, 2019

This has nothing to do with PySnooper. You need to post on Stack Overflow or a Python mailing list.

@cool-RR cool-RR closed this as completed Apr 23, 2019
@ghost
Copy link
Author

ghost commented Apr 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant