]>
us-delaporte.pagekite.me Git - matrix-shop-bot.git/blob - app.py
1 from matrix_shop_bot
.bot
import shop_bot
3 SERVER
= os
.environ
.get('MATRIX_SERVER')
4 BOT_NAME
= os
.environ
.get('GOAL_BOT')
5 BOT_PWD
= os
.environ
.get('GOAL_BOT_PWD')
8 creds
= botlib
.Creds(SERVER
, BOT_NAME
, BOT_PWD
)
9 return botlib
.Bot(creds
)
13 @bot.listener.on_message_event
14 async def do_bot_stuff(room
, message
):
15 await shop_bot(room
, message
, bot
)