forked from DiscordBots/Rustendo
big bang
This commit is contained in:
commit
9dad9bbda3
9 changed files with 2152 additions and 0 deletions
1
src/commands/mod.rs
Normal file
1
src/commands/mod.rs
Normal file
|
@ -0,0 +1 @@
|
|||
pub mod ping;
|
10
src/commands/ping.rs
Normal file
10
src/commands/ping.rs
Normal 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")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue