|
|
@ -20,7 +20,7 @@ export class mastodonMemeBot {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let filepath = `./media/${sub.url.split(/[/]+/).pop()}`;
|
|
|
|
let filepath = `./media/${sub.url.split(/[/]+/).pop()}`;
|
|
|
|
if (getStat(filepath) === true) {
|
|
|
|
if (getStat(filepath)) {
|
|
|
|
console.log("post already exists, fetching new sub");
|
|
|
|
console.log("post already exists, fetching new sub");
|
|
|
|
this.postRandomMeme(callback);
|
|
|
|
this.postRandomMeme(callback);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|