mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Improve Google Feud
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class GoogleFeudCommand extends Command {
|
||||
.setColor(0x005AF0)
|
||||
.setTitle(`${question}...?`)
|
||||
.setDescription('Type the choice you think is a suggestion _without_ the question.')
|
||||
.setFooter(`${tries} tries remaining!`);
|
||||
.setFooter(`${tries} ${tries === 1 ? 'try' : 'tries'} remaining!`);
|
||||
for (let i = 0; i < suggestions.length; i++) embed.addField(`❯ ${10000 - (i * 1000)}`, display[i], true);
|
||||
await msg.embed(embed);
|
||||
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
|
||||
@@ -53,7 +53,7 @@ module.exports = class GoogleFeudCommand extends Command {
|
||||
display[suggestions.indexOf(choice)] = choice;
|
||||
} else {
|
||||
--tries;
|
||||
await msg.say(`Nope! ${tries} tries remaining!`);
|
||||
if (tries) await msg.say(`Nope! ${tries} tries remaining!`);
|
||||
}
|
||||
}
|
||||
this.playing.delete(msg.channel.id);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "78.0.0",
|
||||
"version": "78.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user