Create a .env
file with a discord token for the bot to use.
DISCORD_API_KEY = "<token>"
If you're using VSCode, you should install the recommended extensions. You can find these by typing @recommended
in the extensions search bar or running the Show Recommended Extensions
command:
This project is written in Rust. You can install Rust from https://www.rust-lang.org/tools/install.
While editing the bot, use cargo build
or cargo run
for a fast build. Otherwise, use cargo build --release
or cargo run --release
for a release build.
The best way to cross-compile (for example, to run the bot on a Raspberry Pi) is cross. You can install cross with cargo install cross
. It also requires podman, which you can install from https://podman.io/getting-started/installation.
Then you can use the cross
command like cargo
, for example using cross build --release --target aarch64-unknown-linux-gnu
to build for a Raspberry Pi.