debugging

This commit is contained in:
Michael (GP) 2022-12-13 19:52:53 -05:00
parent cd186631d0
commit 759b38adeb

3
bot.js
View File

@ -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.