From 8f6d28f3b6bdfd537bfbb51395c6ddae6513a949 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Sat, 23 Aug 2025 13:34:18 -0300 Subject: [PATCH] Register statistics command --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index c2db971..5836b50 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,7 +142,7 @@ use crate::{ }, gateway::events::{ReadyHandler, ReconnectHandler}, leveling::{commands::LeaderboardCommand, events::MessageLevelingHandler}, - moderation::commands::{IncidentsCommand, ModeratorCommand}, + moderation::commands::{IncidentsCommand, ModeratorCommand, StatsCommand}, servers::{ commands::PrefixCommand, events::{ServerCreateHandler, ServerDeleteHandler, ServerUpdateHandler}, @@ -193,7 +193,7 @@ pub async fn main() { database_password, shard.into(), redis_urls, - bot_owner_id + bot_owner_id, ) .await; } @@ -276,7 +276,7 @@ async fn start( let state = State { db, redis: redis_pool, - bot_owner_id + bot_owner_id, }; let bot = Bot::new(state, ServerPrefixOrPayphoneMention, PayphoneExtrasGetter) @@ -293,6 +293,7 @@ async fn start( .command(LeaderboardCommand) .command(ModeratorCommand) .command(IncidentsCommand) + .command(StatsCommand) .component(HelpGoBackButton) .cache_resource_type(ResourceType::GUILD) .cache_resource_type(ResourceType::CHANNEL)