Register statistics command
This commit is contained in:
+4
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user