Register statistics command

This commit is contained in:
2025-08-23 13:34:18 -03:00
parent 35f3504c00
commit 8f6d28f3b6
+4 -3
View File
@@ -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)