min/modules/channels.py

17 lines
302 B
Python
Raw Normal View History

2020-04-05 23:59:15 +00:00
2020-10-04 16:26:20 +00:00
async def action(self,c,n,m):
await self.message(c,'\x01ACTION {}\x01'.format(m[:400]))
2020-04-05 23:59:15 +00:00
2020-04-06 00:21:10 +00:00
2020-10-04 16:26:20 +00:00
async def echo(self,c,n,m):
await self.message(c,'[\x036channels\x0f] {}'.format(m[:400]))
2020-04-06 00:21:10 +00:00
2020-04-05 23:59:15 +00:00
async def init(self):
self.chansjoin = ['#bots']
2020-10-04 16:26:20 +00:00
self.cmd['echo']=echo
self.cmd['action']=action
2020-04-06 00:21:10 +00:00
2020-04-05 23:59:15 +00:00