bake time
This commit is contained in:
parent
0f2ae58bbb
commit
be245a2972
3 changed files with 23 additions and 1 deletions
Binary file not shown.
|
@ -20,6 +20,8 @@ async def reloadmods(self, chan, source, msg):
|
||||||
await self.modules[i].init(self)
|
await self.modules[i].init(self)
|
||||||
await self.message(chan, 'done! did something break? if so you might need to restart')
|
await self.message(chan, 'done! did something break? if so you might need to restart')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def part(self, chan, source, msg):
|
async def part(self, chan, source, msg):
|
||||||
await self.message(chan, 'bye {}'.format(msg))
|
await self.message(chan, 'bye {}'.format(msg))
|
||||||
await self.part(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.message(chan, 'joined {}'.format(msg))
|
||||||
await self.join(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 = {
|
commands = {
|
||||||
'quit': quit,
|
'quit': quit,
|
||||||
'reload': reloadmods,
|
'reload': reloadmods,
|
||||||
'commit': commit,
|
'commit': commit,
|
||||||
'part': part,
|
'part': part,
|
||||||
'join': join
|
'join': join,
|
||||||
|
'eval': ev,
|
||||||
|
'joins': joins
|
||||||
}
|
}
|
||||||
|
|
||||||
async def adminHandle(self, chan, source, msg):
|
async def adminHandle(self, chan, source, msg):
|
||||||
|
@ -50,3 +63,7 @@ async def adminHandle(self, chan, source, msg):
|
||||||
|
|
||||||
async def init(self):
|
async def init(self):
|
||||||
self.cmd['admin'] = adminHandle
|
self.cmd['admin'] = adminHandle
|
||||||
|
self.joins = ["#chaos", "#lickthecheese", "#windowsloser", "#cminecraft", "#team"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
5
modules/bake.py
Normal file
5
modules/bake.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
async def init(self):
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in a new issue