diff --git a/modules/botlist.py b/modules/botlist.py new file mode 100644 index 0000000..b03c3f4 --- /dev/null +++ b/modules/botlist.py @@ -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 diff --git a/modules/test.py b/modules/test.py index c385223..fa686c4 100644 --- a/modules/test.py +++ b/modules/test.py @@ -7,6 +7,8 @@ import bot async def testy(self,channel,nick,msg): await bot.message(self,'test',channel,'hi there') + + async def init(self): await self.send_raw("join #bots")