diff --git a/src/main.rs b/src/main.rs index 5172984..88308d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,6 +22,13 @@ impl EventHandler for Handler { else if msg.content == "help" { phrase = "https://dontasktoask.com/".to_string(); + } + else if msg.content == "!help" + { + let dm = msg.author.dm(&ctx, |m| m.content("I hate you")).await; + if let Err(why) = dm { + println!("Couldn't dm the noob: {:?}", why); + } } // Sending a message can fail, due to a network error, an // authentication error, or lack of permissions to post in the