]>
apps.delaporte.us Git - matrix-shop-bot.git/blob - app.py
eab75c7e44dd621002604e461b1d5b7e7a555167
3 import simplematrixbotlib
as botlib
5 from matrix_shop_bot
.bot
import shop_bot
7 SERVER
= os
.environ
.get('MATRIX_SERVER')
8 BOT_NAME
= os
.environ
.get('NEW_BOT')
9 BOT_PWD
= os
.environ
.get('NEW_BOT_PWD')
12 creds
= botlib
.Creds(SERVER
, BOT_NAME
, BOT_PWD
)
13 return botlib
.Bot(creds
)
17 @bot.listener.on_message_event
18 async def do_bot_stuff(room
, message
):
19 await shop_bot(room
, message
, bot
)