Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #60 from mrepol742/master
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
mrepol742 authored Feb 5, 2024
2 parents acecd19 + c849dcf commit 986886d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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!");
Expand Down

0 comments on commit 986886d

Please sign in to comment.