debugging
This commit is contained in:
parent
cd186631d0
commit
759b38adeb
3
bot.js
3
bot.js
@ -29,12 +29,13 @@ const download_image = async (url, image_path) => {
|
|||||||
await postFeed();
|
await postFeed();
|
||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
|
console.log("Running postFeed()");
|
||||||
await postFeed();
|
await postFeed();
|
||||||
|
console.log("Completed postFeed()");
|
||||||
}, 60 * 60 * 1000);
|
}, 60 * 60 * 1000);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
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