🐛 Fixed bot.js
This commit is contained in:
parent
038ca1e710
commit
13077684aa
2
bot.js
2
bot.js
@ -1,5 +1,4 @@
|
|||||||
const request = require("sync-request");
|
const request = require("sync-request");
|
||||||
const moment = require("moment");
|
|
||||||
|
|
||||||
const config = require("./config.json");
|
const config = require("./config.json");
|
||||||
const channels = require("./channels.json");
|
const channels = require("./channels.json");
|
||||||
@ -43,6 +42,7 @@ function checkChannel(id) {
|
|||||||
console.log(`${id} is up to date`);
|
console.log(`${id} is up to date`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
console.log(`${id} is a new channel`);
|
||||||
request("PUT", `http://localhost:7020/api/kv/${key}`, {
|
request("PUT", `http://localhost:7020/api/kv/${key}`, {
|
||||||
body: `${lastEntry.id}`,
|
body: `${lastEntry.id}`,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user