This commit is contained in:
Jonny_Bro (Nikita) 2023-07-03 19:57:52 +05:00
parent 58049bff90
commit 75c414a7de

View file

@ -130,19 +130,19 @@ module.exports = {
await db.set("feeds.three", { await db.set("feeds.three", {
color: col, color: col,
description: description, description,
published: Date.now(), published: Date.now(),
icon: icon, icon,
diff: diff, diff,
}); });
} else { } else {
if (!db.get("feeds.three")) { if (!db.get("feeds.three")) {
await db.set("feeds.three", { await db.set("feeds.three", {
color: col, color: col,
description: description, description,
published: Date.now(), published: Date.now(),
icon: icon, icon,
diff: diff, diff,
}); });
} else if (!db.get("feeds.two")) { } else if (!db.get("feeds.two")) {
const f3 = db.get("feeds.three"); const f3 = db.get("feeds.three");
@ -157,10 +157,10 @@ module.exports = {
await db.set("feeds.three", { await db.set("feeds.three", {
color: col, color: col,
description: description, description,
published: Date.now(), published: Date.now(),
icon: icon, icon,
diff: diff, diff,
}); });
} else { } else {
const f3 = db.get("feeds.three"); const f3 = db.get("feeds.three");
@ -184,10 +184,10 @@ module.exports = {
await db.set("feeds.three", { await db.set("feeds.three", {
color: col, color: col,
description: description, description,
published: Date.now(), published: Date.now(),
icon: icon, icon,
diff: diff, diff,
}); });
} }
} }