🐛 Fixed bot.js

This commit is contained in:
Edgar 2021-11-29 21:04:02 +01:00
parent 038ca1e710
commit 13077684aa
No known key found for this signature in database
GPG Key ID: 17D930BB616061A5

2
bot.js
View File

@ -1,5 +1,4 @@
const request = require("sync-request");
const moment = require("moment");
const config = require("./config.json");
const channels = require("./channels.json");
@ -43,6 +42,7 @@ function checkChannel(id) {
console.log(`${id} is up to date`);
}
} else {
console.log(`${id} is a new channel`);
request("PUT", `http://localhost:7020/api/kv/${key}`, {
body: `${lastEntry.id}`,
});