diff --git a/bot.py b/bot.py index 36e3277..3b35375 100755 --- a/bot.py +++ b/bot.py @@ -61,5 +61,5 @@ if __name__ == "__main__": client.chansjoin = ['#bots'] client.admins = ['lickthecheese'] client.prefix = 'ov ' - client.run('irc.tilde.chat', tls=True, tls_verify=False) + client.run('team.tilde.chat', tls=True, tls_verify=False) diff --git a/modules/__pycache__/admin.cpython-36.pyc b/modules/__pycache__/admin.cpython-36.pyc index 566ec77..5b3c836 100644 Binary files a/modules/__pycache__/admin.cpython-36.pyc and b/modules/__pycache__/admin.cpython-36.pyc differ diff --git a/modules/admin.py b/modules/admin.py index 3b3bdf0..0f8c591 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -2,9 +2,14 @@ import importlib +async def commit(self, chan, source, msg): + await self.quit('{} told me to commit {}'.format(source,msg)) + async def quit(self, chan, source, msg): await self.quit('{} told me to {}'.format(source,msg)) + + async def reloadmods(self, chan, source, msg): await self.message(chan, 'reloading modules...') self.cmd = {} @@ -19,7 +24,8 @@ async def reloadmods(self, chan, source, msg): commands = { 'quit': quit, - 'reload': reloadmods + 'reload': reloadmods, + 'commit': commit } async def adminHandle(self, chan, source, msg): @@ -28,6 +34,7 @@ async def adminHandle(self, chan, source, msg): if len(msg) < 1 or not msg[0] in commands: await self.message(chan, 'you press the wrong button on the oven and it burns you') return + print('[ADMIN MODULE] {} told me to {}!!!'.format(source,msg[0])) await commands[msg.pop(0)](self, chan, source, ' '.join(msg)) else: await self.message(chan, 'you try to open it, but the oven is locked')