Add teto command

This commit is contained in:
2025-11-23 15:39:50 -03:00
parent be5422345b
commit 84ff48ae8c
4 changed files with 35 additions and 7 deletions
+31 -4
View File
@@ -2,10 +2,13 @@ use async_trait::async_trait;
use crate::{
extras::Extras,
framework::commands::{
Command, CommandError,
arguments::{Arg, Argument, NeedyString, ParseArguments},
context::CommandContext,
framework::{
commands::{
Command, CommandError,
arguments::{Arg, Argument, NeedyString, ParseArguments},
context::CommandContext,
},
runtime::Runtime,
},
groups::{
about::{
@@ -78,3 +81,27 @@ impl Command<State, Extras> for HelpCommand {
Ok(())
}
}
#[derive(Debug)]
pub struct TetoCommand;
#[async_trait]
impl Command<State, Extras> for TetoCommand {
fn name(&self) -> &'static str {
"teto"
}
fn show_in_help(&self, _rt: &Runtime<State, Extras>, _extras: &Extras) -> bool {
false
}
async fn execute(
&self,
ctx: CommandContext<'_, State, Extras>,
_args: &str,
) -> Result<(), CommandError> {
ctx.send().content("GLORY TO TETOSLAVIA").await?;
Ok(())
}
}