mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Fix
This commit is contained in:
@@ -61,8 +61,8 @@ module.exports = class RouletteCommand extends Command {
|
||||
if (choice === 'black') return black.includes(result);
|
||||
if (choice === 'red') return red.includes(result);
|
||||
}
|
||||
if (parity.includes(choice)) return parity[result % 2] === choice;
|
||||
if (columns.includes(choice)) return columns[(result - 1) % 3] === choice;
|
||||
if (parity.includes(choice)) return parity[(result % 2) - 1] === choice;
|
||||
if (columns.includes(choice)) return columns[(result % 3) - 1] === choice;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user