mirror of
https://github.com/Noratrieb/widetom.git
synced 2026-01-14 17:05:03 +01:00
small changes
This commit is contained in:
parent
0782ba6c87
commit
271f44a9fa
2 changed files with 5 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue