From 193864eacf2e584022c26c8ddd58feee953425be Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sat, 6 Aug 2022 23:14:56 +0200 Subject: [PATCH] foo --- src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 82da465..1113b60 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,19 +15,15 @@ impl EventHandler for Handler { // Event handlers are dispatched through a threadpool, and so multiple // events can be dispatched simultaneously. async fn message(&self, ctx: Context, msg: Message) { - if msg.content == "!ping" { + 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, "Fuck you").await { + if let Err(why) = msg.channel_id.say(&ctx.http, "https://www.nohello.com/").await { println!("Error sending message: {:?}", why); } } - if msg.content == "hello" - { - if let Err(why) = message.channel_id.say(&ctx.http, "https://www.nohello.com/"); - } } // Set a handler to be called on the `ready` event. This is called when a