From 47adcfc80ddc9a9f8daa846b983d6bbab7ee2188 Mon Sep 17 00:00:00 2001 From: Rashid Siregar <74960869+rashidsiregar28@users.noreply.github.com> Date: Tue, 25 May 2021 11:20:10 +0700 Subject: [PATCH] Update script.js --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 1747b44..dd12d64 100644 --- a/script.js +++ b/script.js @@ -198,7 +198,7 @@ async function starts() { } // Tebak Gambar - if (tebakgambar.hasOwnProperty(sender.split('@')[0]) && !isCmd && budy.match(/[1-9]{1}/)) { + if (tebakgambar.hasOwnProperty(sender.split('@')[0]) && !isCmd) { kuis = true jawaban = tebakgambar[sender.split('@')[0]] if (budy.toLowerCase() == jawaban) { @@ -228,7 +228,7 @@ async function starts() { // Akinator // Premium / VIP apikey only - if (akinator.hasOwnProperty(sender.split('@')[0]) && !isCmd && ["0", "1", "2", "3", "4", "5"].includes(body)) { + if (akinator.hasOwnProperty(sender.split('@')[0]) && !isCmd && ["0", "1", "2", "3", "4", "5"].includes(budy)) { kuis = true var { server, frontaddr, session, signature, question, step } = akinator[sender.split('@')[0]] if (step == "0" && budy == "5") return reply("Maaf Anda telah mencapai pertanyaan pertama") @@ -2499,4 +2499,4 @@ async function starts() { } }) } -starts() \ No newline at end of file +starts()