bake time

This commit is contained in:
lickthecheese 2020-04-06 16:32:51 -04:00
parent 0f2ae58bbb
commit be245a2972
3 changed files with 23 additions and 1 deletions

View file

@ -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"]

5
modules/bake.py Normal file
View file

@ -0,0 +1,5 @@
async def init(self):
pass