#! python3

import os
import platform
from importlib import reload

import schedule

import augentbot


def connect_run() -> None:
    os.system('git pull')
    if platform.system() == 'Windows':
        os.system('chcp 65001')  # fixes encoding errors on windows
    reload(augentbot)
    augentbot.run(create_buffers=1)


def simple_run() -> None:
    augentbot.run()


schedule.every().day.at('00:00').do(simple_run)
schedule.every().day.at('01:00').do(simple_run)
schedule.every().day.at('02:00').do(simple_run)
schedule.every().day.at('03:00').do(simple_run)
schedule.every().day.at('04:00').do(simple_run)
schedule.every().day.at('05:00').do(simple_run)
schedule.every().day.at('06:00').do(simple_run)
schedule.every().day.at('07:00').do(simple_run)
schedule.every().day.at('08:00').do(simple_run)
schedule.every().day.at('09:00').do(simple_run)
schedule.every().day.at('10:00').do(simple_run)
schedule.every().day.at('11:00').do(simple_run)
schedule.every().day.at('12:00').do(simple_run)
schedule.every().day.at('13:00').do(simple_run)
schedule.every().day.at('14:00').do(simple_run)
schedule.every().day.at('15:00').do(simple_run)
schedule.every().day.at('16:00').do(simple_run)
schedule.every().day.at('17:00').do(simple_run)
schedule.every().day.at('18:00').do(simple_run)
schedule.every().day.at('19:00').do(simple_run)
schedule.every().day.at('20:00').do(simple_run)
schedule.every().day.at('21:00').do(simple_run)
schedule.every().day.at('22:00').do(simple_run)
schedule.every().day.at('23:00').do(simple_run)

while True:
    schedule.run_pending()

#! python3

import os
import platform
from importlib import reload

import schedule

import augentbot


def connect_run() -> None:
    os.system('git pull')
    if platform.system() == 'Windows':
        os.system('chcp 65001')  # fixes encoding errors on windows
    reload(augentbot)
    augentbot.run(create_buffers=1)


def simple_run() -> None:
    augentbot.run()


schedule.every().day.at('00:00').do(connect_run)
schedule.every().day.at('01:00').do(connect_run)
schedule.every().day.at('02:00').do(connect_run)
schedule.every().day.at('03:00').do(connect_run)
schedule.every().day.at('04:00').do(connect_run)
schedule.every().day.at('05:00').do(connect_run)
schedule.every().day.at('06:00').do(connect_run)
schedule.every().day.at('07:00').do(connect_run)
schedule.every().day.at('08:00').do(connect_run)
schedule.every().day.at('09:00').do(connect_run)
schedule.every().day.at('10:00').do(connect_run)
schedule.every().day.at('11:00').do(connect_run)
schedule.every().day.at('12:00').do(connect_run)
schedule.every().day.at('13:00').do(connect_run)
schedule.every().day.at('14:00').do(connect_run)
schedule.every().day.at('15:00').do(connect_run)
schedule.every().day.at('16:00').do(connect_run)
schedule.every().day.at('17:00').do(connect_run)
schedule.every().day.at('18:00').do(connect_run)
schedule.every().day.at('19:00').do(connect_run)
schedule.every().day.at('20:00').do(connect_run)
schedule.every().day.at('21:00').do(connect_run)
schedule.every().day.at('22:00').do(connect_run)
schedule.every().day.at('23:00').do(connect_run)

while True:
    schedule.run_pending()

Enable official beta