mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-04 01:30:29 +00:00
1 KiB
1 KiB
youmubot
A Discord bot made specifically for server "Dự tuyển Tổng Hợp". Written in Rust.
All PRs welcome.
Project structure
youmubot
: The main command. Collect configurations and dispatch commands.youmubot-prelude
: Base structures and handy functions for command parsing / service handling.youmubot-db
: Base database structures.youmubot-core
: Core commands: admin, fun, communityyoumubot-osu
: osu!-related commands.
Working with sqlx
Regenerate compiler information
The commands expect the cwd to be at the project base directory.
Manually run migrations with
sqlx migrate run --database-url "sqlite:./youmubot.db" --source ./youmubot-db-sql/migrations
Update compiler information with
cargo sqlx prepare --database-url "sqlite:./youmubot.db" --workspace
License
Basically MIT.