diff options
Diffstat (limited to 'post_bot.py')
-rwxr-xr-x | post_bot.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/post_bot.py b/post_bot.py index 3ba584f..ce189ff 100755 --- a/post_bot.py +++ b/post_bot.py @@ -73,7 +73,7 @@ rs.post('https://recolor.me/topic/1557621', data={ 'page':'topic', 'action':'reply', 'topic_id':'1557621', - 'reply_message':"Server is booting, or service has restarted.\nThe time is {}.\nExistance started {} seconds ago.".format(datetime.now(timezone.utc), datetime.now(timezone.utc).timestamp()), + 'reply_message':"Server is rebooting, or service has restarted.\nThe time is {} UTC.\nExistence started {} seconds ago.".format(datetime.now(timezone.utc), int(datetime.now().timestamp())), 'box_color':'#0000ff', 'post_color':'#0', 'post_style':'0' @@ -85,12 +85,6 @@ while True: current_time = datetime.now(timezone.utc) desired_time = current_time.replace(day=current_time.day, hour=6, minute=1, second=0, microsecond=0) + timedelta(days=1) print("starting next run at {}".format(str(desired_time))) - cap_thread = Timer((desired_time - current_time).total_seconds() + 1, acheive_limit) + cap_thread = Timer((desired_time - current_time).total_seconds()+1, acheive_limit) cap_thread.start() cap_thread.join() - - -#usually resets at 11 - - - |