22 lines
368 B
Rust
22 lines
368 B
Rust
|
use serenity::model::channel::Message;
|
||
|
use serenity::prelude::*;
|
||
|
use serenity::framework::standard::{
|
||
|
CommandResult,
|
||
|
macros::{
|
||
|
command,
|
||
|
group
|
||
|
}
|
||
|
};
|
||
|
|
||
|
group!({
|
||
|
name: "generic",
|
||
|
options: {},
|
||
|
commands: [ping]
|
||
|
});
|
||
|
|
||
|
#[command]
|
||
|
pub fn ping(ctx: &mut Context, msg: &Message) -> CommandResult {
|
||
|
msg.reply(ctx, "Pong!")?;
|
||
|
|
||
|
Ok(())
|
||
|
}
|