diff --git a/bot.py b/bot.py index 3b35375..7e3f151 100755 --- a/bot.py +++ b/bot.py @@ -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) diff --git a/modules/channels.py b/modules/channels.py new file mode 100644 index 0000000..f00ce66 --- /dev/null +++ b/modules/channels.py @@ -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) + + +