Polish and more checks during configuration

This commit is contained in:
Twentysix
2016-02-24 18:14:09 +01:00
parent 3c338eeab5
commit dc3cedcd5f
3 changed files with 10 additions and 4 deletions

View File

@@ -245,7 +245,7 @@ class Audio:
self.current = -1
self.music_player.stop()
await asyncio.sleep(1)
await self.bot.voice.disconnect()
if self.bot.voice: await self.bot.voice.disconnect()
@commands.command(name="queue", pass_context=True, no_pm=True) #check that author is in the same channel as the bot
async def _queue(self, ctx, link : str=None):