mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Fix grammar
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = class PickANumberCommand extends Command {
|
|||||||
if (opponent.bot) {
|
if (opponent.bot) {
|
||||||
const valid = nums.filter(num => num !== player1Pick);
|
const valid = nums.filter(num => num !== player1Pick);
|
||||||
player2Pick = valid[Math.floor(Math.random() * valid.length)];
|
player2Pick = valid[Math.floor(Math.random() * valid.length)];
|
||||||
await msg.say(`Okay, ${clientOpp ? 'I' : `${opponent}`} pick${clientOpp ? 's' : ''} ${player2Pick}!`);
|
await msg.say(`Okay, ${clientOpp ? 'I' : `${opponent}`} pick${clientOpp ? '' : 's'} ${player2Pick}!`);
|
||||||
} else {
|
} else {
|
||||||
userTurn = false;
|
userTurn = false;
|
||||||
await msg.say(`${opponent}, pick a number from 1 to 10, except ${player1Pick}.`);
|
await msg.say(`${opponent}, pick a number from 1 to 10, except ${player1Pick}.`);
|
||||||
|
|||||||
Reference in New Issue
Block a user