mirror of
https://github.com/Xevion/banner.git
synced 2026-01-31 04:23:34 -06:00
Replace DayOfWeek with chrono::Weekday via extension traits, unify RateLimitConfig into the config module, and remove the unused time command, BannerState, and ClassDetails stub. Fix open_only query parameter to respect false values and correct 12-hour time display.
21 lines
481 B
Rust
21 lines
481 B
Rust
use crate::error::Error;
|
|
use crate::state::AppState;
|
|
|
|
pub mod commands;
|
|
pub mod utils;
|
|
|
|
pub struct Data {
|
|
pub app_state: AppState,
|
|
} // User data, which is stored and accessible in all command invocations
|
|
pub type Context<'a> = poise::Context<'a, Data, Error>;
|
|
|
|
/// Get all available commands
|
|
pub fn get_commands() -> Vec<poise::Command<Data, Error>> {
|
|
vec![
|
|
commands::search(),
|
|
commands::terms(),
|
|
commands::ics(),
|
|
commands::gcal(),
|
|
]
|
|
}
|