feat: remove the not neaded anymroe &ping
This commit is contained in:
parent
51cba44c58
commit
9e8c656e96
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user