feat: remove the not neaded anymroe &ping

This commit is contained in:
max 2024-02-11 00:27:15 +00:00
parent 51cba44c58
commit 9e8c656e96

View File

@ -22,12 +22,6 @@ impl EventHandler for Handler {
if msg.author.bot || msg.content.starts_with("!") || msg.content.len() == 0 { if msg.author.bot || msg.content.starts_with("!") || msg.content.len() == 0 {
return; 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 { let guild = match msg.guild_id {
Some(guild) => guild, Some(guild) => guild,
None => return, None => return,