From 6f155e82be96bd5463daa7bdcdf7a29a4926a598 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 8 Dec 2019 23:45:30 -0500 Subject: [PATCH] Fix emoji emoji revolution --- commands/mp-games/emoji-emoji-revolution.js | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/mp-games/emoji-emoji-revolution.js b/commands/mp-games/emoji-emoji-revolution.js index 4ef7c9e9..00fb996a 100644 --- a/commands/mp-games/emoji-emoji-revolution.js +++ b/commands/mp-games/emoji-emoji-revolution.js @@ -2,6 +2,7 @@ const Command = require('../../structures/Command'); const { stripIndents } = require('common-tags'); const { verify } = require('../../util/Util'); const emojis = ['⬆', '↗', '➡', '↘', '⬇', '↙', '⬅', '↖']; +const emojisNew = ['⬆️', '↗️', '➡️', '↘️', '⬇️', '↙️', '⬅️', '↖️']; module.exports = class EmojiEmojiRevolutionCommand extends Command { constructor(client) { @@ -40,9 +41,10 @@ module.exports = class EmojiEmojiRevolutionCommand extends Command { let oPts = 0; while (turn < 10) { ++turn; - const emoji = emojis[Math.floor(Math.random() * emojis.length)]; + const num = Math.floor(Math.random() * emojis.length); + const emoji = [emojis[num], emojisNew[num]]; await msg.say(emoji); - const filter = res => [msg.author.id, opponent.id].includes(res.author.id) && res.content === emoji; + const filter = res => [msg.author.id, opponent.id].includes(res.author.id) && emoji.includes(res.content); const win = await msg.channel.awaitMessages(filter, { max: 1, time: 30000 diff --git a/package.json b/package.json index b61f5be9..c71e1539 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "109.2.0", + "version": "109.2.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {