Compare commits
No commits in common. "main" and "038ca1e710fd64a0d505a13d61305b4d5a18750e" have entirely different histories.
main
...
038ca1e710
2
bot.js
2
bot.js
@ -1,4 +1,5 @@
|
|||||||
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");
|
||||||
@ -42,7 +43,6 @@ 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