Build reusable bot framework
Some checks failed
CI / test (push) Has been cancelled
CI / compose-smoke (push) Has been cancelled

This commit is contained in:
Chelsea Lee
2026-07-19 21:53:24 -05:00
parent 7ecc1107b2
commit fbdf33e894
66 changed files with 8428 additions and 0 deletions

13
bot/context.py Normal file
View File

@@ -0,0 +1,13 @@
"""Platform-neutral command context exposed to feature handlers."""
class CommandContext:
def __init__(self, message, api_client):
self._message = message
self.api = api_client
self.user_uuid = api_client.user_uuid
self.discord_user_id = str(message.author.id)
self.timezone = api_client.timezone
async def reply(self, content):
return await self._message.channel.send(content)