mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Fix
This commit is contained in:
@@ -56,11 +56,12 @@ module.exports = class RussianRouletteCommand extends Command {
|
|||||||
await msg.say(`**${player.user.tag}** pulls the trigger... **And dies!**`);
|
await msg.say(`**${player.user.tag}** pulls the trigger... **And dies!**`);
|
||||||
loser = player;
|
loser = player;
|
||||||
} else {
|
} else {
|
||||||
|
const nextUp = players.get(turn[0]).user;
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
**${player.user.tag}** pulls the trigger... **And lives...**
|
**${player.user.tag}** pulls the trigger... **And lives...**
|
||||||
${player.user.bot ? '' : `Will you take the gun, ${players.get(turn[0]).user}?`}
|
${nextUp.bot ? '' : `Will you take the gun, ${nextUp.user}?`}
|
||||||
`);
|
`);
|
||||||
if (!player.user.bot) {
|
if (!nextUp.bot) {
|
||||||
let first = true;
|
let first = true;
|
||||||
for (const next of turn) {
|
for (const next of turn) {
|
||||||
const nextPlayer = players.get(next);
|
const nextPlayer = players.get(next);
|
||||||
|
|||||||
Reference in New Issue
Block a user