Skip to content

CursedBoat/CursedBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CursedBot

screenshot

Features

  • Sqlite database integration
  • Fast & stable
  • Examples for lots of Serenity & Poise features
  • Commented code for ease of development
  • KeepAlive Axum server if you want to run the bot on a free server host like Render

This bot was originally meant for a private server, so some of the commands (XOTD & Roles) might not make too much sense to use in your own server.

Dependencies

CursedBot mostly depends on the following crates:

  • Tokio - Epic async rust runtime
  • Axum - Web app framework
  • Serenity - Discord API wrapper
  • Poise - Advanced command framework for Serenity
  • Roux - Reddit client
  • rSpotify - Spotify client
  • sqlx - SQL 😭
  • Serde - Serializing and deserializing structs
  • Tracing - For logs

Installation

  1. Install rust via Rustup
  2. Git clone the repository
  3. Rename Config.json.example to Config.json and configure it
  4. Add the DATABASE_URL = "sqlite://database.sqlite" environment variable & rename database.example.sqlite to database.sqlite
cargo install sqlx-cli
cargo sqlx migrate migrations
cargo sqlx prepare

cd CursedBot
cargo build --release
cargo run

NOTE: You might need to install libssl-dev (openssl in arch) & pkg-config (pkgconf in arch) for it to compile without errors.

License

GNU GPL 3.0

About

A custom Discord bot written in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages