add botlist command

This commit is contained in:
xfnw 2021-01-31 16:31:26 -05:00
parent 04e7b7c064
commit 1019e37470
2 changed files with 13 additions and 0 deletions

11
modules/botlist.py Normal file
View file

@ -0,0 +1,11 @@
from bot import *
@rawm('botlist')
async def botlist(self,channel,nick,msg):
if msg == '!botlist':
await message(self,'botlist',channel,'Hi, im kim. im a machine learning chatbot')
async def init(self):
pass

View file

@ -7,6 +7,8 @@ import bot
async def testy(self,channel,nick,msg): async def testy(self,channel,nick,msg):
await bot.message(self,'test',channel,'hi there') await bot.message(self,'test',channel,'hi there')
async def init(self): async def init(self):
await self.send_raw("join #bots") await self.send_raw("join #bots")