Changed a bit more due to "modes" update

This commit is contained in:
Profitroll 2022-08-30 14:03:11 +02:00
parent da97606bb4
commit 5848bca40a
1 changed files with 19 additions and 18 deletions

View File

@ -396,10 +396,11 @@ def callback_query_unblock(app, clb): # type: ignore
# # else:
# # logWrite(f"Got raw update of type {type(update)} with contents {update}", debug=True)
if configGet("mode") in ["both", "post"]:
for entry in configGet("time", "posting"):
schedule.every().day.at(entry).do(send_content)
def background_task():
try:
while True: