adding debugging
This commit is contained in:
parent
3d75882bc5
commit
e661eac2c8
2
bot.js
2
bot.js
@ -7,6 +7,7 @@ let parser = new Parser();
|
|||||||
let maxPostPerScan = process.env.MAX_POST_PER_SCAN;
|
let maxPostPerScan = process.env.MAX_POST_PER_SCAN;
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
console.log("Starting Bot");
|
||||||
await postFeed();
|
await postFeed();
|
||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
@ -15,6 +16,7 @@ let maxPostPerScan = process.env.MAX_POST_PER_SCAN;
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
async function postFeed() {
|
async function postFeed() {
|
||||||
|
console.log("Running postFeed()");
|
||||||
const M = new Mastodon({
|
const M = new Mastodon({
|
||||||
access_token: `${process.env.MASTODON_ACCESS_KEY}`,
|
access_token: `${process.env.MASTODON_ACCESS_KEY}`,
|
||||||
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
|
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
|
||||||
|
Loading…
Reference in New Issue
Block a user