From: Edward Delaporte Date: Sat, 28 Mar 2026 00:21:23 +0000 (-0500) Subject: Fixup X-Git-Url: https://apps.delaporte.us/gitweb/matrix-goal-bot.git/commitdiff_plain/03fe9dc89c7295c1ef5d623b43d36bf51de35f47?ds=sidebyside Fixup --- diff --git a/app.py b/app.py index 629a785..b3b352f 100644 --- a/app.py +++ b/app.py @@ -3,7 +3,7 @@ from matrix_goal_bot.bot import get_bot, goal_bot bot = get_bot() @bot.listener.on_message_event -def do_bot_stuff(room, message): - goal_bot(room, message) +async def do_bot_stuff(room, message): + await goal_bot(room, message, bot) bot.run() diff --git a/matrix_goal_bot/bot.py b/matrix_goal_bot/bot.py index 9b630f8..9c0bec0 100644 --- a/matrix_goal_bot/bot.py +++ b/matrix_goal_bot/bot.py @@ -4,7 +4,7 @@ import os import simplematrixbotlib as botlib -from goals.db import Data, pretty_print +from .db import Data, pretty_print SERVER = os.environ.get('MATRIX_SERVER') BOT_NAME = os.environ.get('GOAL_BOT') @@ -154,7 +154,7 @@ async def do_goal(match): return [do_goal.__doc__] -async def goal_bot(room, message): +async def goal_bot(room, message, bot): match = botlib.MessageMatch(room, message, bot, PREFIX) if not match.is_not_from_this_bot() and match.prefix():