diff --git a/commands/admin/shameboard.js b/commands/admin/shameboard.js index a857679..7e8e757 100644 --- a/commands/admin/shameboard.js +++ b/commands/admin/shameboard.js @@ -6,7 +6,7 @@ export default { .setName('shameboard') .setDescription('Set shameboard to the current channel.') .addStringOption(option => - option.setName('emote') + option.setName('emote') .setDescription('The emote that should be used to enter the shameboard.')) .addStringOption(option => option.setName('count') diff --git a/utils/rand.js b/utils/rand.js index 7b875a2..8169f25 100644 --- a/utils/rand.js +++ b/utils/rand.js @@ -65,7 +65,9 @@ export function rand(text, interaction) { const matches = text.matchAll(/\[.*?\]\s?/g); for (const match of matches) { - if (search(match[0].trim(), variables)) { text = text.replace(match[0].trim(), search(match[0].trim(), variables).value); } + if (search(match[0].trim(), variables)) { + text = text.replace(match[0].trim(), search(match[0].trim(), variables).value); + } } return text;