From ac2e1ada835a5d7ae618d6180a03652a3ec20db2 Mon Sep 17 00:00:00 2001 From: mrepol742 Date: Thu, 29 Feb 2024 18:55:16 +0800 Subject: [PATCH] Initial Commit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 569b93b6..f7eb5338 100644 --- a/index.js +++ b/index.js @@ -4892,9 +4892,9 @@ async function ai(api, event) { let user = getDataFromQuery(data); let attem = getIdFromUrl(user); if (/^[0-9]+$/.test(attem)) { - id = attem; + return unblockUser(api, event, attem); } else if (/^[0-9]+$/.test(user)) { - id = user; + return unblockUser(api, event, user); } else { return sendMessage(api, event, "Houston! Unknown or missing option.\n\n Usage: unblock --user @mention" + "\n " + example[Math.floor(Math.random() * example.length)] + " unblock --user @Zero Two"); }