From c6413e5c0d2f04232e37391c8b5b62277562d065 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Mon, 2 Nov 2020 03:50:59 -0600 Subject: deleted: color_test.py modified: post_bot.py new file: push_script.sh deleted: test_page --- post_bot.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'post_bot.py') 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 - - - -- cgit v1.2.3