diff options
Diffstat (limited to 'src/command/ping.rs')
| -rw-r--r-- | src/command/ping.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/command/ping.rs b/src/command/ping.rs deleted file mode 100644 index 1b1b812..0000000 --- a/src/command/ping.rs +++ /dev/null @@ -1,23 +0,0 @@ -use eyre::Result; -use serenity::builder::{ - CreateCommand, CreateInteractionResponse, CreateInteractionResponseMessage, -}; -use serenity::model::application::{CommandInteraction, InstallationContext}; -use serenity::prelude::Context; -use tracing::{instrument, trace}; - -#[instrument] -pub async fn respond(ctx: &Context, command: &CommandInteraction) -> Result<()> { - trace!("Responding to ping command"); - let message = CreateInteractionResponseMessage::new().content("Pong!"); - let response = CreateInteractionResponse::Message(message); - command.create_response(&ctx, response).await?; - - Ok(()) -} - -pub fn register() -> CreateCommand { - CreateCommand::new("ping") - .description("Check if the bot is up") - .add_integration_type(InstallationContext::User) -} |
