Dezio/src/commands/mod.rs
astar76 0fd743122a Drawn user, server, channel and role cards; richest and Who Knows charts
Info cards take their colour from what they describe, with role chips,
member and boost meters and a colour per channel type. The mention and ID
stay as text underneath. Richest pages through drawn charts and Who Knows
draws ranked bars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 22:27:18 -06:00

55 lines
1.5 KiB
Rust

//! Every command, grouped like the Python cogs.
use crate::cmd::Command;
pub mod channels;
mod general;
pub mod other;
pub mod search;
pub mod snipe;
pub mod tools;
pub mod embeds;
pub mod fun;
pub mod gameboy;
pub mod games;
pub mod info;
mod info_art;
pub mod lastfm;
pub mod logs;
pub mod media;
pub mod help;
pub mod moderation;
pub mod music;
pub mod purge;
pub mod reactionroles;
pub mod rolemenus;
pub mod welcome;
pub fn all() -> Vec<Command> {
let mut v = Vec::new();
v.extend(general::commands());
v.extend(other::commands());
v.extend(search::commands());
v.extend(snipe::commands());
v.extend(tools::commands());
v.extend(embeds::commands());
v.extend(info::commands());
v.extend(logs::commands());
v.extend(media::commands());
v.extend(channels::commands());
v.extend(help::commands());
v.extend(moderation::commands());
v.extend(purge::commands());
v.extend(rolemenus::commands());
v.extend(reactionroles::commands());
v.extend(welcome::commands());
v.extend(fun::commands());
v.extend(games::commands());
v.extend(gameboy::commands());
v.extend(crate::presence::commands());
v.extend(music::commands());
v.extend(lastfm::commands());
let mut taken: std::collections::HashSet<String> = v.iter().flat_map(|c| std::iter::once(c.name).chain(c.aliases.iter().copied())).map(str::to_lowercase).collect();
v.extend(fun::late_commands(&mut taken));
v.extend(games::late_commands(&mut taken));
v
}