mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user