diff --git a/commands/ffplayer.js b/commands/ffplayer.js index a0ea027..28436bb 100644 --- a/commands/ffplayer.js +++ b/commands/ffplayer.js @@ -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 @@ -84,4 +84,4 @@ module.exports = { async execute(bot, api, interaction) { ffplayer(bot, api, interaction, null, null); } -}; \ No newline at end of file +};