A simple Rust Discord bot for rendering the output of the Routinator validity HTTP API endpoint as a textual table:
For example given the command !validity AS16509 185.49.143.0/24
the bot prints:
Since v0.1.2 it also shows the AS name (powered by the RIPEstat Data API):
Note: The AS prefix in the AS argument is optional and case insensitive.
$ cargo build --release --locked
$ export DISCORD_TOKEN=xxx
$ export ROUTINATOR_HOST=some.fqdn.com
$ ./target/release/rover
$ sudo apt install -y ./path/to/rover.deb
$ export EDITOR=$(which vi)
$ sudo systemctl edit rover
[Service]
Environment="DISCORD_TOKEN=<Enter Discord token here>"
Environment="ROUTINATOR_HOST=<Enter Routinator host here>"
:x
$ sudo systemctl enable --now rover
DISCORD_TOKEN
environment variable.cargo run
or as a systemd service (if using the Debian package).bot
and visit the URL as a user with 'Manage Server' right.!help
.Thanks to pixabay for the ROVer image. Pixabay states for this image that is licensed under the Pixabay License which is "Free for commercial use" with "no attribution required". If you think this image is actually yours and not free to use please let us know!