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 #24 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 c499b85 + 41f8957 commit b54cf55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4123,7 +4123,7 @@ async function ai(api, event) {
}
} else if (testCommand(api, query2, "block--command", 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: block --command cmd" + "\n " + example[Math.floor(Math.random() * example.length)] + " block --command cmd");
} else {
let command = getDataFromQuery(data);
Expand All @@ -4139,7 +4139,7 @@ async function ai(api, event) {
}
} else if (testCommand(api, query2, "unblock--command", 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: unblock --command cmd" + "\n " + example[Math.floor(Math.random() * example.length)] + " unblock --command cmd");
} else {
let command = getDataFromQuery(data);
Expand All @@ -4159,7 +4159,8 @@ async function ai(api, event) {
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 tbs = data[2].split(":");
let ddd = data[2];
let tbs = ddd.split(":");
if (location == "account") {
for (account in settings) {
settings[account][tbs[0]] = getTrueValue(tbs[1]);
Expand Down

0 comments on commit b54cf55

Please sign in to comment.