Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install crate_glitch
It will make the crate_glitch command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall crate_glitch uninstalls.
Back to the crate overview .
Readme
crate_glitch is a matrix.org bot which monitors messages in a channel and provides links based
on simple pattern matching.
Execute as $ crate_glitch < config_file> (default config. yaml ), with config like the following:
---
token : " "
password : " "
account : " @crates.io:matrix.org"
room : " #rust:matrix.org"
listen_to : " !crate"
prepend_with : " https://crates.io/crates/"
The bot logs in using the account and credentials provided, and begins listening in the provided room.
By default, the bot catches messages like ! crate serde and provides a link to crates.io/crates/serde.
Note:
The bot account must already be in the channel configured.