summaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
blob: 833df38602c4eb156450104d186562f8ac264977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use crate::Data;

use color_eyre::eyre::Report;
use poise::Command;

mod general;
mod moderation;
mod optional;

pub fn to_global_commands() -> Vec<Command<Data, Report>> {
	vec![
		general::ask(),
		general::bing(),
		general::convert(),
		general::random(),
		general::version(),
		moderation::config(),
		moderation::ban_user(),
		moderation::kick_user(),
	]
}

pub fn to_optional_commands() -> Vec<Command<Data, Report>> {
	vec![optional::copypasta(), optional::teawiespam()]
}