]> apps.delaporte.us Git - matrix-cadbury.git/commitdiff
Add shopping bot
authorEdward Delaporte <edward@delaporte.us>
Fri, 3 Apr 2026 17:49:49 +0000 (12:49 -0500)
committerEdward Delaporte <edward@delaporte.us>
Fri, 3 Apr 2026 17:49:49 +0000 (12:49 -0500)
app.py
pyproject.toml

diff --git a/app.py b/app.py
index 3b802074c010e946a5fdd05cbb115688329a15ca..35b1be8ca4480a5375501675e70960fec64c9aba 100644 (file)
--- 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()
index 75935077a54ed96541f7fdda24b7c62bb6272eac..c84f09029a93ef6586cc0e9c91c19ecc461a907b 100644 (file)
@@ -9,6 +9,7 @@ requires-python = ">=3.12"
 dependencies = [
 'matrix-goal-bot@git+https://codeberg.org/EdTheDev/matrix-goal-bot.git',
 'matrix-chore-bot@git+https://codeberg.org/EdTheDev/matrix-chore-bot.git',
+'matrix-shop-bot@git+https://codeberg.org/EdTheDev/matrix-shop-bot.git',
 'invoke',
 'simplematrixbotlib',
 ]