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

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Jan 16, 2024
1 parent f5b5b57 commit 757ed33
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function redfox_fb(fca_state, login, cb) {
delete settings.shared.restart;
}

if (settings[login].notif) {
if (settings[login].notif && settings[login].alert) {
for (keys in Object.keys(settings[login].notif)) {
api.sendMessage(updateFont(settings[login].notif[keys], login), login);
}
Expand Down Expand Up @@ -4164,10 +4164,12 @@ async function ai(api, event) {
for (account in settings) {
settings[account][tbs[0]] = getTrueValue(tbs[1]);
}
sendMessage(api, event, "Done.");
} else if (location == "thread") {
for (thread in settingsThread) {
settingsThread[thread][tbs[0]] = getTrueValue(tbs[1]);
}
sendMessage(api, event, "Done.");
} else {
sendMessage(api, event, "Unsupported file value!");
}
Expand Down Expand Up @@ -9403,6 +9405,10 @@ function getTrueValue(value) {
} else if (/^(true|false)$/.test(value)) {
// str > bn
value = value === "true";
} else if (value == "{}") {
value = {};
} else if (value == "[]") {
value = [];
}
return value;
}

0 comments on commit 757ed33

Please sign in to comment.