god help us all

This commit is contained in:
LinlyBoi
2022-08-06 23:18:48 +02:00
parent 1f510814a5
commit 0d66c185a5

View File

@@ -20,7 +20,18 @@ impl EventHandler for Handler {
// authentication error, or lack of permissions to post in the // authentication error, or lack of permissions to post in the
// channel, so log to stdout when some error happens, with a // channel, so log to stdout when some error happens, with a
// description of it. // description of it.
if let Err(why) = msg.channel_id.say(&ctx.http, "Pong!").await { if let Err(why) = msg.channel_id.say(&ctx.http, "Pong!").await
{
println!("Error sending message: {:?}", why);
}
}
else if msg.content == "hello" {
// Sending a message can fail, due to a network error, an
// authentication error, or lack of permissions to post in the
// channel, so log to stdout when some error happens, with a
// description of it.
if let Err(why) = msg.channel_id.say(&ctx.http, "https://www.nohello.com/".await
{
println!("Error sending message: {:?}", why); println!("Error sending message: {:?}", why);
} }
} }