mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
4 guesses in google-feud
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = class GoogleFeudCommand extends Command {
|
|||||||
const suggestions = await this.fetchSuggestions(question);
|
const suggestions = await this.fetchSuggestions(question);
|
||||||
if (!suggestions) return msg.say('Could not find any results.');
|
if (!suggestions) return msg.say('Could not find any results.');
|
||||||
const display = new Array(suggestions.length).fill('???');
|
const display = new Array(suggestions.length).fill('???');
|
||||||
let tries = 3;
|
let tries = 4;
|
||||||
while (display.includes('???') && tries) {
|
while (display.includes('???') && tries) {
|
||||||
const embed = this.makeEmbed(question, tries, suggestions, display);
|
const embed = this.makeEmbed(question, tries, suggestions, display);
|
||||||
await msg.embed(embed);
|
await msg.embed(embed);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "112.19.11",
|
"version": "112.19.12",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user