]>
us-delaporte.pagekite.me Git - matrix-chore-bot.git/blob - app.py
fcc26524e1e055b4c0989906d08f72a825b9040d
3 import simplematrixbotlib
as botlib
5 from matrix_chore_bot
.bot
import chore_bot
7 SERVER
= os
.environ
.get('MATRIX_SERVER')
8 BOT_NAME
= os
.environ
.get('MATRIX_BOT')
9 BOT_PWD
= os
.environ
.get('MATRIX_BOT_PWD')
10 BOT_PREFIX
= os
.environ
.get('MATRIX_BOT_PREFIX', '!chore')
13 creds
= botlib
.Creds(SERVER
, BOT_NAME
, BOT_PWD
)
14 return botlib
.Bot(creds
)
18 @bot.listener.on_message_event
19 async def do_bot_stuff(room
, message
):
20 await chore_bot(room
, message
, bot
, BOT_PREFIX
)