Scaffold for a Matrix bot inspired by the structure of
Code-Society-Lab/grace,
implemented with Code-Society-Lab/matrixpy.
- Create a virtualenv and install dependencies:
python -m venv .venv source .venv/bin/activate pip install -e ".[dev]"
- Set Matrix credentials in
config/bot.yaml(set exactly one ofPASSWORDorTOKEN). - Run the bot:
Optional custom config path:
ada
ada --config-file /path/to/bot.yaml
If startup loops warnings like 'next_batch' is a required property, your token is usually invalid/expired.
Regenerate TOKEN or switch to PASSWORD auth in config/bot.yaml.
Each extension module exports:
def setup(bot):
...By default, the bot auto-discovers and loads every extension module under
bot.extensions.