Register statistics command
This commit is contained in:
+4
-3
@@ -142,7 +142,7 @@ use crate::{
|
|||||||
},
|
},
|
||||||
gateway::events::{ReadyHandler, ReconnectHandler},
|
gateway::events::{ReadyHandler, ReconnectHandler},
|
||||||
leveling::{commands::LeaderboardCommand, events::MessageLevelingHandler},
|
leveling::{commands::LeaderboardCommand, events::MessageLevelingHandler},
|
||||||
moderation::commands::{IncidentsCommand, ModeratorCommand},
|
moderation::commands::{IncidentsCommand, ModeratorCommand, StatsCommand},
|
||||||
servers::{
|
servers::{
|
||||||
commands::PrefixCommand,
|
commands::PrefixCommand,
|
||||||
events::{ServerCreateHandler, ServerDeleteHandler, ServerUpdateHandler},
|
events::{ServerCreateHandler, ServerDeleteHandler, ServerUpdateHandler},
|
||||||
@@ -193,7 +193,7 @@ pub async fn main() {
|
|||||||
database_password,
|
database_password,
|
||||||
shard.into(),
|
shard.into(),
|
||||||
redis_urls,
|
redis_urls,
|
||||||
bot_owner_id
|
bot_owner_id,
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
@@ -276,7 +276,7 @@ async fn start(
|
|||||||
let state = State {
|
let state = State {
|
||||||
db,
|
db,
|
||||||
redis: redis_pool,
|
redis: redis_pool,
|
||||||
bot_owner_id
|
bot_owner_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
let bot = Bot::new(state, ServerPrefixOrPayphoneMention, PayphoneExtrasGetter)
|
let bot = Bot::new(state, ServerPrefixOrPayphoneMention, PayphoneExtrasGetter)
|
||||||
@@ -293,6 +293,7 @@ async fn start(
|
|||||||
.command(LeaderboardCommand)
|
.command(LeaderboardCommand)
|
||||||
.command(ModeratorCommand)
|
.command(ModeratorCommand)
|
||||||
.command(IncidentsCommand)
|
.command(IncidentsCommand)
|
||||||
|
.command(StatsCommand)
|
||||||
.component(HelpGoBackButton)
|
.component(HelpGoBackButton)
|
||||||
.cache_resource_type(ResourceType::GUILD)
|
.cache_resource_type(ResourceType::GUILD)
|
||||||
.cache_resource_type(ResourceType::CHANNEL)
|
.cache_resource_type(ResourceType::CHANNEL)
|
||||||
|
|||||||
Reference in New Issue
Block a user