diff --git a/src/main.rs b/src/main.rs index 2662609c25bbd1a472b5854f75fa0de47440a33d..9025699382e94ea53d97c5294db8c6a2a7a52253 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,9 @@ impl EventHandler for Handler { // events can be dispatched simultaneously. fn message(&self, ctx: Context, msg: Message) { if !(msg.content.starts_with(&CONFIG.command_prefix)) { - if msg.content.contains(&format!("<@!{}>", CONFIG.bot_id)) { + if msg.content.contains(&format!("<@!{}>", CONFIG.bot_id)) // desktop mentions + || msg.content.contains(&format!("<@{}>", CONFIG.bot_id)) // mobile mentions + { send_message!( msg.channel_id, &ctx.http,