A simple Discord logging bot.
Lucien Cartier-Tilet
60a81f66a8
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 8m1s
Closes #8, partially addresses #6 |
||
---|---|---|
.gitea/workflows | ||
assets | ||
migrations | ||
src | ||
.dockerignore | ||
.env.example | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE.md | ||
README.md |
p4bl0t
p4bl0t is a simple logging bot for Discord written in Rust.
Usage
In order to run p4bl0t, head over to your developer
portal on Discord’s website, and
create a bot there. Then, copy the .env.example
file to a .env
file and fill in the details.
cp .env.example .env
emacs .env
# or
vim .env
# or
nano .env
# or
code .env
# or whichever text editor you prefer
Install the sqlx CLI if you don’t have it already.
cargo install sqlx-cli
Setup your SQLite database.
export DATABASE_URL=<your-database-url> # should be the same as in the .env file
sqlx database create
sqlx migrate run
You can then run the project using cargo run
cargo run
# or
cargo run --release # if you don’t want debug symbols
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.