Updated bot.py to auto join channels.

This commit is contained in:
Yuuki Chan 2024-02-23 14:04:06 +09:00
parent 1cad27bc37
commit ba8929164d

View file

@ -208,9 +208,8 @@ class Bot:
case 'VERSION':
await self.ircsend(f'NOTICE {source_nick} :I am a bot version 1.0.0')
case '001':
await self.ircsend(f'JOIN #YuukiTest')
# for channel in self.channel_manager.get_channels():
# await self.ircsend(f'JOIN {channel}')
for channel in self.channel_manager.get_channels():
await self.ircsend(f'JOIN {channel[1]}')
case '903':
await handle_903(self.ircsend)
case _: