1
1
Fork
You've already forked bot
1
Yet Another Blazingly Fast Discord Bot
  • Rust 97%
  • Nix 2.4%
  • Dockerfile 0.6%
Find a file
2026年03月28日 04:05:34 +01:00
.zed init 2026年03月20日 00:35:03 +01:00
assets feat: avatarsync 2026年03月27日 23:46:52 +01:00
bot_commands feat: I have a suggestion. 2026年03月28日 04:05:34 +01:00
bot_core feat: command cooldowns/ratelimiting 2026年03月28日 03:47:42 +01:00
bot_events feat: help command 2026年03月28日 03:04:00 +01:00
data/migrations feat: avatarsync 2026年03月27日 23:46:52 +01:00
src feat: avatarsync 2026年03月27日 23:46:52 +01:00
.env.example docs: add readme 2026年03月28日 01:17:00 +01:00
.envrc init 2026年03月20日 00:35:03 +01:00
.gitignore feat: avatarsync 2026年03月27日 23:46:52 +01:00
alejandra.toml init 2026年03月20日 00:35:03 +01:00
Cargo.lock feat: avatarsync 2026年03月27日 23:46:52 +01:00
Cargo.toml feat: avatarsync 2026年03月27日 23:46:52 +01:00
diesel.toml feat: avatarsync 2026年03月27日 23:46:52 +01:00
Dockerfile big refactoring 2026年03月20日 20:55:10 +01:00
flake.lock init 2026年03月20日 00:35:03 +01:00
flake.nix feat: avatarsync 2026年03月27日 23:46:52 +01:00
LICENSE big refactoring 2026年03月20日 20:55:10 +01:00
README.md feat: print more bot info in ready event 2026年03月28日 01:54:08 +01:00
rustfmt.toml init 2026年03月20日 00:35:03 +01:00

paige/bot

Yet Another Blazingly Fast Discord Bot

overview

this is a multi-crate project to keep things tidy:

  • src/main.rs: the entrypoint
  • bot_commands: slash commands
  • bot_core: core types and structs and some utilities
  • bot_events: event handlers

the structure is heavily inspired by Discord-TTS/Bot. however, most of this is written from scratch.

notably, this project uses Nix. if you aren't familiar with it, it's a tool to simplify build processes and managing dependencies. you can see the flake if you're interested in how it's used.

building

use a shell that supports direnv and simply clone and cd into this repo (recommended):

git clone git@codeberg.org:paige/bot.git && cd bot
cargo build

or manually grab the build dependencies, this varies depending on the OS you use, see the packages that the flake.nix uses and find & install them on your system accordingly. however, i recommend you just stick to direnv and nix, as it is much easier

usage

click here to make a discord application. see the intents here and specify them accordingly. copy .env.example to .env and paste your token there.

after running the bot, you need to run ~register in a channel in order for slash commands to appear. you can invite the bot with the link that is printed in the terminal. this link also includes the necessary permissions that the bot needs to run.