Compare commits

..

No commits in common. "9976bfded5b29345f1aa15f04d77c9650a05fe2b" and "10456f62e0a70e1612633c945e48d8ba8ef0e2bd" have entirely different histories.

2 changed files with 1 additions and 9 deletions

View File

@ -110,14 +110,6 @@ class TTSCore(commands.Cog, Observ.Observer):
except KeyError:
pass
@commands.Cog.listener()
async def on_voice_state_update(self, member: discord.Member, before: discord.VoiceState, after: discord.VoiceState):
if after.channel is None:
members = before.channel.members
if len(members) == 1:
if members[0].id == self.bot.user.id:
await before.channel.guild.voice_client.disconnect(force=False)
async def setup(bot):
await bot.add_cog(TTSCore(bot))

View File

@ -32,7 +32,7 @@ class DiscordTTSBot(commands.Bot, Observ.Subject):
asyncio.create_task(self.close())
async def on_ready(self):
logger.debug(f'Bot is ready: {self.user.name}')
logger.debug('Bot is ready')
async def on_message(self, message: discord.Message) -> None:
if message.guild is None: