Skip to content

Commit

Permalink
Fix comment and add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLovinator1 committed Jul 21, 2023
1 parent eab4e6f commit a9c01f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions discord_twitter_webhooks/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ def startup() -> None:
scheduler: BackgroundScheduler = BackgroundScheduler()

# Check for new entries every 15 minutes. They will be sent to Discord if they are new.
# TODO: Make minutes configurable in the settings as your Nitter instance might update more often.
scheduler.add_job(sched_func, "interval", minutes=15, next_run_time=datetime.now(tz=timezone.utc))
scheduler.start()

Expand Down
2 changes: 1 addition & 1 deletion discord_twitter_webhooks/send_to_discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def has_media(entry: Entry | EntryLike) -> bool:
def send_to_discord(reader: Reader) -> None: # noqa: C901, PLR0912
"""Send all new entries to Discord.
This is called by the scheduler every 5 minutes. It will check for new entries and send them to Discord.
This is called by the scheduler every 15 minutes. It will check for new entries and send them to Discord.
Args:
reader: The reader which contains the entries.
Expand Down

0 comments on commit a9c01f8

Please sign in to comment.