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': case 'VERSION':
await self.ircsend(f'NOTICE {source_nick} :I am a bot version 1.0.0') await self.ircsend(f'NOTICE {source_nick} :I am a bot version 1.0.0')
case '001': case '001':
await self.ircsend(f'JOIN #YuukiTest') for channel in self.channel_manager.get_channels():
# for channel in self.channel_manager.get_channels(): await self.ircsend(f'JOIN {channel[1]}')
# await self.ircsend(f'JOIN {channel}')
case '903': case '903':
await handle_903(self.ircsend) await handle_903(self.ircsend)
case _: case _: