This commit is contained in:
moonleay 2024-02-17 02:28:24 +01:00
commit 9dad9bbda3
Signed by: moonleay
GPG key ID: 82667543CCD715FB
9 changed files with 2152 additions and 0 deletions

1
src/commands/mod.rs Normal file
View file

@ -0,0 +1 @@
pub mod ping;

10
src/commands/ping.rs Normal file
View file

@ -0,0 +1,10 @@
use serenity::builder::CreateCommand;
use serenity::model::application::ResolvedOption;
pub fn run(_options: &[ResolvedOption]) -> String {
"Hey, I'm alive!".to_string()
}
pub fn register() -> CreateCommand {
CreateCommand::new("ping").description("A ping command")
}