feat: reintroduce ping command
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
542ecf6bc8
commit
6e33299af7
3 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
mod joke;
|
||||
mod members;
|
||||
mod ping;
|
||||
mod rory;
|
||||
mod say;
|
||||
mod stars;
|
||||
|
@ -7,6 +8,7 @@ mod tag;
|
|||
|
||||
pub use joke::joke;
|
||||
pub use members::members;
|
||||
pub use ping::ping;
|
||||
pub use rory::rory;
|
||||
pub use say::say;
|
||||
pub use stars::stars;
|
||||
|
|
9
src/commands/general/ping.rs
Normal file
9
src/commands/general/ping.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
use crate::Context;
|
||||
|
||||
use color_eyre::eyre::Result;
|
||||
|
||||
#[poise::command(slash_command, prefix_command, ephemeral)]
|
||||
pub async fn ping(ctx: Context<'_>) -> Result<()> {
|
||||
ctx.reply("Pong!").await?;
|
||||
Ok(())
|
||||
}
|
|
@ -10,6 +10,7 @@ pub fn to_global_commands() -> Vec<Command<Data, Report>> {
|
|||
vec![
|
||||
general::joke(),
|
||||
general::members(),
|
||||
general::ping(),
|
||||
general::rory(),
|
||||
general::say(),
|
||||
general::stars(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue