Skip to content

Commit

Permalink
fix: ping slash command 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Plarpoon committed Apr 18, 2024
1 parent 3f4e9a6 commit d296f4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ pub async fn getvotes(
/// ```
#[poise::command(prefix_command, slash_command)]
pub async fn ping(ctx: Context<'_>) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
ctx.defer().await?;

let output = Command::new("ping")
.args(&["-c", "10", "1.1.1.1"])
.output()
Expand Down

0 comments on commit d296f4c

Please sign in to comment.