Skip if already posted

This commit is contained in:
Matt Isenhower 2024-11-16 14:48:32 -08:00
parent 8c1bb01f29
commit 2530dcba0d

View File

@ -58,6 +58,11 @@ class TwitterPostBase {
continue;
}
if (!this.shouldPostForCurrentTime(client)) {
this.info(`Already posted to ${client.name}`);
continue;
}
try {
await client.send(status);
this.updateLastTweetTime(client);