diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2020-11-02 03:50:59 -0600 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2020-11-02 03:50:59 -0600 |
commit | c6413e5c0d2f04232e37391c8b5b62277562d065 (patch) | |
tree | 35f90befba67f14cfad6d9d864ef2bc32ae42a58 /post_bot.py | |
parent | 22ca63bf3d3ed4ec7a09e4850656ec174feca5b6 (diff) |
deleted: color_test.py
modified: post_bot.py
new file: push_script.sh
deleted: test_page
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 - - - |