diff --git a/modules/__pycache__/admin.cpython-36.pyc b/modules/__pycache__/admin.cpython-36.pyc index 7edfa5b..c22f5d6 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 a6c3948..fb035cd 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -20,6 +20,8 @@ async def reloadmods(self, chan, source, msg): await self.modules[i].init(self) await self.message(chan, 'done! did something break? if so you might need to restart') + + async def part(self, chan, source, msg): await self.message(chan, 'bye {}'.format(msg)) await self.part(msg) @@ -28,12 +30,23 @@ async def join(self, chan, source, msg): await self.message(chan, 'joined {}'.format(msg)) await self.join(msg) +async def joins(self, chan, source, msg): + for i in self.joins: + await self.join(i) + +async def ev(self, chan, source, msg): + msg = msg.split(' ') + setattr(self,msg.pop(0), eval(' '.join(msg))) + await self.message(chan, 'ok') + commands = { 'quit': quit, 'reload': reloadmods, 'commit': commit, 'part': part, - 'join': join + 'join': join, + 'eval': ev, + 'joins': joins } async def adminHandle(self, chan, source, msg): @@ -50,3 +63,7 @@ async def adminHandle(self, chan, source, msg): async def init(self): self.cmd['admin'] = adminHandle + self.joins = ["#chaos", "#lickthecheese", "#windowsloser", "#cminecraft", "#team"] + + + diff --git a/modules/bake.py b/modules/bake.py new file mode 100644 index 0000000..0c9c043 --- /dev/null +++ b/modules/bake.py @@ -0,0 +1,5 @@ + + +async def init(self): + pass +