This commit is contained in:
Dragon Fire
2020-02-04 18:14:03 -05:00
parent 1ee4190fe1
commit e1ef8d08a6
+1 -1
View File
@@ -50,7 +50,7 @@ module.exports = class MadLibsCommand extends Command {
this.client.games.delete(msg.channel.id);
let finished = lib.text;
for (let i = 0; i < choices.length; i++) {
finished = finished.replace(new RegExp(`{${i}}`, 'g'), `**${choices[i]}**`);
finished = finished.replace(new RegExp(`\\{${i}\\}`, 'g'), `**${choices[i]}**`);
}
return msg.say(finished);
} catch (err) {