Added context variable builders system

- Fixed subpackages missing __init__.py
- Fixed mab/__init__.py containing __all__
- Filters no longer add variables to EventContext
- Removed most context variables
- Reorganized file tree a bit
- Fixed echo_bot.py example

Most examples are broken
This commit is contained in:
2026-10-18 15:29:12 +03:00
parent afcd3f53f4
commit 17031500e9
17 changed files with 319 additions and 188 deletions

View File

@@ -15,7 +15,7 @@ from _environment import check_environment
async def on_text_message(ctx: EventContext) -> None:
"""This callback is called when a text message arrives."""
await ctx.bot.send.text(ctx.room, ctx[CTX_BODY])
await ctx.bot.send.text(ctx.room, ctx[CTX_MESSAGE].body)
async def main() -> None:
"""Application entry point"""