From c849dcf04a978440a7ff0b93e76fe33a58dfa60d Mon Sep 17 00:00:00 2001 From: Melvin Jones Repol Date: Mon, 5 Feb 2024 10:48:14 +0800 Subject: [PATCH] Initial Commit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c891ad40..3d158d4f 100644 --- a/index.js +++ b/index.js @@ -4889,7 +4889,7 @@ async function ai(api, event) { }); } } - } else if (testCommand(api, query2, "penalty", event.senderID, "admin")) { + } else if (testCommand(api, query2, "penalty", event.senderID, "root")) { let data = input.split(" "); if (data.length < 2 && event.type != "message_reply") { sendMessage(api, event, "Houston! Unknown or missing option.\n\n Usage: penalty @mention" + "\n " + example[Math.floor(Math.random() * example.length)] + " penalty @Zero Two"); @@ -4915,7 +4915,7 @@ async function ai(api, event) { return sendMessage(api, event, "User not found!"); } if (!user.balance) { - user["balance"] = 5000; + user["balance"] = -5000; } user.balance = -5000; sendMessage(api, event, user.firstName + " has been penalize!");