Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (34 loc) · 963 Bytes

README.md

File metadata and controls

41 lines (34 loc) · 963 Bytes

Serenity + Poise bot template

This is a simple template for make a Discord Bot with Slash Commands using Serenity and Poise.

Setup (with nix flakes)

Requirements

Steps

  • Create a .env following .env.example
  • Run direnv allow
  • Ready to go!

Setup (without nix flakes)

Requirements

Steps

  • Create a .env following .env.example
  • Add dotenvy to dependencies
cargo add dotenvy

or modify Cargo.toml

[dependencies]
dotenvy = "0.15"
#[tokio::main]
pub async fn main() {
    dotenvy::dotenv().unwrap();
    //...
}
  • Ready to go!