A simple Matrix bot that listens for commands starting with .wiki and responds with links from a configured JSON store.
The bot is configured via environment variables.
| Variable | Description | Default |
|---|---|---|
MATRIX_HOMESERVER |
The URL of your Matrix homeserver (e.g., https://matrix.org). |
|
MATRIX_USERNAME |
The bot's Matrix username. | |
MATRIX_PASSWORD |
The bot's Matrix password. | |
IGNORE_BRIDGE_USERS |
If set to true, the bot will ignore messages from senders whose MXID starts with @discord_. |
false |
-
Copy
docker-compose.example.ymltodocker-compose.ymlandlinks.jsonto a local file. -
Update the environment variables in
docker-compose.yml. -
Populate
links.jsonwith your key-value pairs. -
Run the bot:
docker-compose up -d
-
Copy
.env.exampleto.env. -
Update
.envwith your credentials. -
Run the bot:
cargo run
.wiki list: Lists all available wiki keys..wiki <term>: Fetches the link associated with<term>from thelinks.jsonfile.