Send one message only in hunger-games

This commit is contained in:
Dragon Fire
2018-07-31 20:25:08 -04:00
parent f7c46094fc
commit 70d1f7fad9
2 changed files with 13 additions and 10 deletions
+12 -9
View File
@@ -17,7 +17,7 @@ module.exports = class HungerGamesCommand extends Command {
prompt: 'Who should compete in the games? Up to 24 tributes can participate.',
type: 'string',
infinite: true,
max: 25
max: 20
}
]
});
@@ -42,16 +42,19 @@ module.exports = class HungerGamesCommand extends Command {
const results = [];
const deaths = [];
this.makeEvents(remaining, sunEvents, deaths, results);
await msg.say(stripIndents`
let text = stripIndents`
__**${bloodbath ? 'Bloodbath' : sun ? `Day ${turn}` : `Night ${turn}`}**__:
${results.join('\n')}
`);
await msg.say(stripIndents`
**${deaths.length} cannon shot${deaths.length === 1 ? '' : 's'} can be heard in the distance.**
${deaths.join('\n')}
_Proceed?_
`);
`;
if (deaths.length) {
text += '\n';
text += stripIndents`
**${deaths.length} cannon shot${deaths.length === 1 ? '' : 's'} can be heard in the distance.**
${deaths.join('\n')}
`;
}
text += `\n\n_Proceed?_`;
await msg.say(text);
const verification = await verify(msg.channel, msg.author, 120000);
if (!verification) {
this.playing.delete(msg.channel.id);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "85.9.2",
"version": "85.9.3",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {