X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-cadbury.git/blobdiff_plain/63002ce55d83025446db2d0ea81de96cedcd9aa2..704ce49e63168e279b9e407e810b75ef55a0d863:/app.py diff --git a/app.py b/app.py index 3b80207..35b1be8 100644 --- a/app.py +++ b/app.py @@ -4,6 +4,7 @@ import simplematrixbotlib as botlib from matrix_goal_bot.bot import get_bot, goal_bot from matrix_chore_bot.bot import chore_bot +from matrix_shop_bot.bot import shop_bot SERVER = os.environ.get('MATRIX_SERVER') BOT_NAME = os.environ.get('MATRIX_BOT') @@ -23,4 +24,9 @@ async def do_chore_stuff(room, message): await chore_bot(room, message, bot) +@bot.listener.on_message_event +async def do_shopping_stuff(room, message): + await shop_bot(room, message, bot) + + bot.run()