Reply to 'good discordinator'

This commit is contained in:
Agatha Lovelace 2020-06-18 15:32:39 +03:00
parent e787656ef0
commit b6fac54462
No known key found for this signature in database
GPG Key ID: 2DB18BA2E0A80BC3
1 changed files with 9 additions and 0 deletions

View File

@ -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]