From 1019e37470aa2887a4e0cc63a8b907eace9d05fe Mon Sep 17 00:00:00 2001 From: xfnw Date: Sun, 31 Jan 2021 16:31:26 -0500 Subject: [PATCH] add botlist command --- modules/botlist.py | 11 +++++++++++ modules/test.py | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 modules/botlist.py 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")