Skip to content

Commit

Permalink
7 caracters tag
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixLusseau authored Jun 7, 2024
1 parent f8e8369 commit b522ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
let placeholder = null

// Check if the message contains a tag and send the RoyaleAPI Profile url into the channel
const regex = /\#[a-zA-Z0-9]{8,9}\b/g
const regex = /\#[a-zA-Z0-9]{7-9}\b/g
if (message.content.search(regex) >= 0) {
console.log(`[${new Date().toISOString()}] Tag received:`, message.content.match(regex)[0]);
placeholder = await message.channel.send("Tag received !\nSearching... <a:Mag:1186624382982963290>") // Send a placeholder message to show that the bot is working
Expand Down Expand Up @@ -47,4 +47,4 @@ module.exports = {
}
}
}
};
};

0 comments on commit b522ad7

Please sign in to comment.