Add prefix customization command

This commit is contained in:
2025-08-14 18:30:33 -03:00
parent eb6dcb4604
commit 53d61cfbbb
7 changed files with 143 additions and 7 deletions
+13 -4
View File
@@ -116,18 +116,26 @@ use tower_http::services::ServeDir;
use twilight_gateway::Intents;
use crate::{
cli::{Args, Commands}, constants::DEFAULT_PREFIX, database::models::Server, framework::{
cli::{Args, Commands},
constants::DEFAULT_PREFIX,
database::models::Server,
framework::{
bot::{Bot, PrefixGetter},
runtime::Runtime,
}, groups::{
},
groups::{
about::{commands::HelpCommand, components::HelpGoBackButton},
calls::{
commands::{CallCommand, HangupCommand, SkipCommand},
events::MessageRedirector,
},
gateway::events::{ReadyHandler, ReconnectHandler},
servers::events::{ServerCreateHandler, ServerDeleteHandler, ServerUpdateHandler},
}, state::State
servers::{
commands::PrefixCommand,
events::{ServerCreateHandler, ServerDeleteHandler, ServerUpdateHandler},
},
},
state::State,
};
mod cli;
@@ -217,6 +225,7 @@ async fn start(token: String, database_addr: String) {
.command(CallCommand::new())
.command(SkipCommand)
.command(HangupCommand)
.command(PrefixCommand)
.component(HelpGoBackButton)
.on_ready(ReadyHandler)
.on_reconnect(ReconnectHandler)