join channels from module

This commit is contained in:
lickthecheese 2020-04-05 19:59:15 -04:00
parent 2c56c7dde4
commit 7a29ad5c85
2 changed files with 11 additions and 4 deletions

4
bot.py
View file

@ -12,9 +12,6 @@ class Oven(pydle.Client):
self.raw = {}
self.help = {}
print('joining channels...')
for i in self.chansjoin:
await self.join(i)
print('loading modules...')
await self.loadMods()
print('Done!')
@ -58,7 +55,6 @@ class Oven(pydle.Client):
if __name__ == "__main__":
client = Oven('oven', realname='Oven IRC Bot')
client.chansjoin = ['#bots']
client.admins = ['lickthecheese']
client.prefix = 'ov '
client.run('team.tilde.chat', tls=True, tls_verify=False)

11
modules/channels.py Normal file
View file

@ -0,0 +1,11 @@
async def init(self):
self.chansjoin = ['#bots']
print('joining channels', ' '.join(self.chansjoin))
for i in self.chansjoin:
await self.join(i)