From: Edward Delaporte Date: Sat, 28 Mar 2026 00:23:48 +0000 (-0500) Subject: Fixup X-Git-Url: https://apps.delaporte.us/gitweb/matrix-cadbury.git/commitdiff_plain/f4429bf38009727727fa355ee67a119ce3f223e9 Fixup --- diff --git a/Makefile b/Makefile index 37762b6..1f279de 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,13 @@ -.PHONY: serve test strict - -MODULE=cadbury +.PHONY: serve .venv: python -m venv .venv .venv/bin/pip install . serve: .venv - .venv/bin/python bot.py + .venv/bin/python app.py clean: rm -rf .venv rm -f session.txt # Reset session -test: .venv - .venv/bin/pip install .[test] - .venv/bin/mypy -m $(MODULE) - -strict: .venv - .venv/bin/mypy --strict -m $(MODULE) - diff --git a/bot.py b/app.py similarity index 56% rename from bot.py rename to app.py index 629a785..addcabf 100644 --- a/bot.py +++ b/app.py @@ -3,7 +3,6 @@ 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/pyproject.toml b/pyproject.toml index f1b8cc1..5e698ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ authors = [ requires-python = ">=3.12" dependencies = [ -'goal-bot@git+https://codeberg.org/EdTheDev/matrix-goal-bot.git', +'matrix-goal-bot@git+https://codeberg.org/EdTheDev/matrix-goal-bot.git', 'invoke', 'simplematrixbotlib', ]