Reply to 'good discordinator'
This commit is contained in:
parent
dd62ecccf3
commit
58dc9358e9
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue