Add job for checking for new entries
This commit is contained in:
parent
8b4dc47840
commit
f0ec10122a
1 changed files with 4 additions and 0 deletions
|
|
@ -240,6 +240,10 @@ def startup() -> None:
|
||||||
logger.info(f"Webhook name: {key} with URL: {settings['webhooks'][key]}")
|
logger.info(f"Webhook name: {key} with URL: {settings['webhooks'][key]}")
|
||||||
|
|
||||||
scheduler: BackgroundScheduler = BackgroundScheduler()
|
scheduler: BackgroundScheduler = BackgroundScheduler()
|
||||||
|
|
||||||
|
# Update all feeds every 15 minutes.
|
||||||
|
scheduler.add_job(send_to_discord, "interval", minutes=15)
|
||||||
|
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue