TMP: interval changes
This commit is contained in:
parent
7940cbe5a7
commit
cf09017985
@ -8,8 +8,10 @@ from modules.app import app
|
|||||||
scheduler = AsyncIOScheduler()
|
scheduler = AsyncIOScheduler()
|
||||||
|
|
||||||
if configGet("post", "mode"):
|
if configGet("post", "mode"):
|
||||||
for entry in configGet("time", "posting"):
|
# for entry in configGet("time", "posting"):
|
||||||
dt_obj = datetime.strptime(entry, "%H:%M")
|
# dt_obj = datetime.strptime(entry, "%H:%M")
|
||||||
scheduler.add_job(send_content, "cron", hour=dt_obj.hour, minute=dt_obj.minute, args=[app])
|
# Is only used for debug now!
|
||||||
|
scheduler.add_job(send_content, "interval", seconds=30, args=[app])
|
||||||
|
# scheduler.add_job(send_content, "cron", hour=dt_obj.hour, minute=dt_obj.minute, args=[app])
|
||||||
|
|
||||||
scheduler.add_job(register_commands, "date", run_date=datetime.now()+timedelta(seconds=10), args=[app])
|
scheduler.add_job(register_commands, "date", run_date=datetime.now()+timedelta(seconds=10), args=[app])
|
Reference in New Issue
Block a user