EDM115 / unzip-bot

Telegram bot deployable to heroku that can extract every archive !
https://t.me/unzip_edm115bot
MIT License
86 stars 120 forks source link

[FEATURE REQUEST] Use a cron job instead of waiting a set amount of time indefinitely #285

Open EDM115 opened 4 months ago

EDM115 commented 4 months ago

https://github.com/EDM115/unzip-bot/blob/264992687ff85bb6c46b7722917848d44bdd2925/unzipper/helpers/start.py#L155

it is possible to use something like

from aiocron import crontab
crontab("*/5 * * * *", remove_expired_tasks)

can also be used as a decorator
docs | source