small changes

This commit is contained in:
nora 2021-05-02 22:55:18 +02:00
parent 0782ba6c87
commit 271f44a9fa
2 changed files with 5 additions and 2 deletions

View file

@ -29,12 +29,12 @@ lazy_static! {
#[hook]
pub async fn normal_message(ctx: &Context, msg: &Message) {
if msg.content == "tom" {
if msg.content.to_lowercase() == "tom" {
reply(" <:tom:811324632082415626>", &msg, &ctx).await;
}
for (name, id) in REACTION_EMOTES.iter() {
if msg.content.contains(name) {
if msg.content.to_lowercase().contains(name) {
if let Err(why) = msg.react(&ctx.http, ReactionType::Custom {
animated: false,
id: *id,