Files
Lamont/bot/context.py
Chelsea Lee fbdf33e894
Some checks failed
CI / test (push) Has been cancelled
CI / compose-smoke (push) Has been cancelled
Build reusable bot framework
2026-07-19 21:53:24 -05:00

14 lines
437 B
Python

"""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)