Minor style change

Slash-V14
Supositware 1 year ago
parent 2cc13e8328
commit 39ff404deb

@ -6,7 +6,7 @@ export default {
.setName('shameboard') .setName('shameboard')
.setDescription('Set shameboard to the current channel.') .setDescription('Set shameboard to the current channel.')
.addStringOption(option => .addStringOption(option =>
option.setName('emote') option.setName('emote')
.setDescription('The emote that should be used to enter the shameboard.')) .setDescription('The emote that should be used to enter the shameboard.'))
.addStringOption(option => .addStringOption(option =>
option.setName('count') option.setName('count')

@ -65,7 +65,9 @@ export function rand(text, interaction) {
const matches = text.matchAll(/\[.*?\]\s?/g); const matches = text.matchAll(/\[.*?\]\s?/g);
for (const match of matches) { 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; return text;

Loading…
Cancel
Save