blackfoot-makers / bf-discord-rbot

discord bot in Rust
https://blackfoot-makers.github.io/discord-rbot/doc/rbot_discord/index.html
MIT License
9 stars 1 forks source link
discord-bot rust

A discord bot written in Rust

This bot is personal and isn't meant to be used by others

The documentation for this project is located at doc/rbot-discord

To run this bot, just fill a new .env file at the root directory of the project with your information Run the diesel migrations and use cargo run.

Starting the project

.env

token=<THE_DISCORD_BOT_TOKEN>
DATABASE_URL=postgres://<user>:<password>@localhost/discordbot

Diesel

Install the diesel-cli with: cargo install diesel_cli --no-default-features --features postgres and run the migrations: diesel migration run

Run

cargo run

Deployement

Build the docker image and start it as a service

docker build . -t greefine/discord-rbot
docker service create --network host --name discordbot greefine/discord-rbot

Note: don't forget the .env before building !