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:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user