Skip to content

Examples

Ready-to-run bots demonstrating common patterns. Each example is a complete, working bot you can copy and adapt.

All examples expect a config.yaml file in the same directory:

USERNAME: "@yourbot:matrix.org"
PASSWORD: "your_password"
Example What it shows
Ping Bot Minimal bot with a single command
Reactions Listening to events and reacting to messages
Checks Restricting commands to specific users
Cooldowns Rate-limiting commands per user
Error Handling Per-command and global error handlers
Extension Splitting a bot into modules with command groups
Scheduler Running tasks on a cron schedule