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 #25 from mrepol742/master
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
mrepol742 authored Jan 16, 2024
2 parents b54cf55 + f5b5b57 commit ae7f0e7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4147,20 +4147,19 @@ async function ai(api, event) {
settings.shared["block_cmd"] = [];
}
if (settings.shared["block_cmd"].includes(command)) {
sendMessage(api, event, "This command is not in block list.");
} else {
settings.shared["block_cmd"] = settings.shared["block_cmd"].filter((item) => item !== command);
sendMessage(api, event, "command `" + command + "` has been unblocked.");
} else {
sendMessage(api, event, "This command is not in block list.");
}
}
} else if (testCommand(api, query2, "insertData", event.senderID, "root")) {
let data = input.split(" ");
if (data.length < 2) {
if (data.length < 3) {
sendMessage(api, event, "Houston! Unknown or missing option.\n\n Usage: insertData file name:value" + "\n " + example[Math.floor(Math.random() * example.length)] + " insertData account nsfw:true");
} else {
let location = data[1];
let ddd = data[2];
let tbs = ddd.split(":");
let tbs = data[2].split(":");
if (location == "account") {
for (account in settings) {
settings[account][tbs[0]] = getTrueValue(tbs[1]);
Expand Down

0 comments on commit ae7f0e7

Please sign in to comment.