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 b522ad7 commit 7d19966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/ffplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function ffplayer(bot, api, interaction, channel, tag) {
details = interaction.options.getBoolean('details');
}

const regex = /\#[a-zA-Z0-9]{8,9}\b/g
const regex = /\#[a-zA-Z0-9]{7-9}\b/g
if (tag.search(regex) < 0) { // Prevent the bot from crashing (not happening) if the tag is invalid
functions.errorEmbed(bot, interaction, channel, "Invalid tag");
return
Expand Down Expand Up @@ -84,4 +84,4 @@ module.exports = {
async execute(bot, api, interaction) {
ffplayer(bot, api, interaction, null, null);
}
};
};

0 comments on commit 7d19966

Please sign in to comment.