Skip to content

Commit

Permalink
Make sure message is entirely mention for prefix response
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Mar 5, 2024
1 parent 820ccd8 commit 635ff7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub async fn ready(

data.regex_cache
.bot_mention
.get_or_init(|| regex::Regex::new(&format!("<@!?{}>", data_about_bot.user.id)).unwrap());
.get_or_init(|| regex::Regex::new(&format!("^<@!?{}>$", data_about_bot.user.id)).unwrap());

if is_last_shard && !data.fully_started.load(Ordering::SeqCst) {
finalize_startup(ctx, &data);
Expand Down

0 comments on commit 635ff7b

Please sign in to comment.