This commit is contained in:
Daniel Odendahl Jr
2017-10-23 02:37:23 +00:00
parent e36c501741
commit 0cb53c8da2
+2 -2
View File
@@ -47,7 +47,7 @@ module.exports = class WizardConventionCommand extends Command {
user: message.author, user: message.author,
role: roles[i - 1] role: roles[i - 1]
}); });
await message.author.send(`Your role will be: ${roles[i]}!`); await message.author.send(`Your role will be: ${roles[i - 1]}!`);
i++; i++;
} }
let turn = 1; let turn = 1;
@@ -83,7 +83,7 @@ module.exports = class WizardConventionCommand extends Command {
} }
} }
const display = eaten ? players.get(eaten).user : null; const display = eaten ? players.get(eaten).user : null;
const story = stories[Math.floor(Math.random() * story.length)]; const story = stories[Math.floor(Math.random() * stories.length)];
if (eaten && eaten === healed) { if (eaten && eaten === healed) {
await msg.say(stripIndents` await msg.say(stripIndents`
Late last night, a dragon emerged and tried to eat ${display}${story} Late last night, a dragon emerged and tried to eat ${display}${story}