From 9e8c656e966b16de3ef2ffe37156ade1488e49cd Mon Sep 17 00:00:00 2001 From: max Date: Sun, 11 Feb 2024 00:27:15 +0000 Subject: [PATCH] feat: remove the not neaded anymroe &ping --- src/bot/handler.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/bot/handler.rs b/src/bot/handler.rs index 054599c..cb84580 100644 --- a/src/bot/handler.rs +++ b/src/bot/handler.rs @@ -22,12 +22,6 @@ impl EventHandler for Handler { if msg.author.bot || msg.content.starts_with("!") || msg.content.len() == 0 { return; } - if msg.content == "&ping" { - if let Err(why) = msg.channel_id.say(&ctx.http, "Pong!").await { - println!("Error sending message: {:?}", why); - } - return; - } let guild = match msg.guild_id { Some(guild) => guild, None => return,