From b6fac54462cad6349d80bda59d1a6f706631c8d2 Mon Sep 17 00:00:00 2001 From: Agatha Rose Date: Thu, 18 Jun 2020 15:32:39 +0300 Subject: [PATCH] Reply to 'good discordinator' --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.rs b/src/main.rs index 176566c..6e05cc7 100755 --- a/src/main.rs +++ b/src/main.rs @@ -50,6 +50,15 @@ impl EventHandler for Handler { ctx.set_presence(Some(activity), status); } } + + fn message(&self, ctx: Context, message: Message) { + let text = &message.content.to_lowercase(); + if text.contains("good") + && (text.contains("discordinator") || text.contains("discordinyator")) + { + let _ = message.channel_id.say(&ctx.http, "nyaa~ 💞"); + } + } } #[group]