Skip to content

Jirubizu/rust-discord-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust discord template

This template is configured with postgres and serenity.

How to start

Clone the repo with

git clone https://github.com/DankDumpster/rust-discord-bot-template

Build and run it for the first time

cargo run

This will ask you to enter each of the configuration values. If you wish edit the physical config.yml file then type "n" when it asks you if you wish to enter the config details and the bot will close and generate a predefined config.yml file for you to configure.

If anything goes wrong for any reason you can manually make a config.yml in the root with this:

---
token: ""
prefix: ;
db_uri: "postgres://postgres:postgres@localhost/postgres"

Now run it again and it should work

cargo run

Notes

Custom Config Location

To set a custom config location, set the enviroment variable "CONFIG_PATH" and point it to a file.

Massive thanks to dylan for the config function

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages