1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fixed a bug, made improvements in reload system

Didn't test that much, there is still some stuff to do
This commit is contained in:
coder2020official
2022-09-30 23:22:21 +04:00
parent d3080b6d4e
commit eb576d83fb
4 changed files with 72 additions and 43 deletions

View File

@ -8,11 +8,9 @@ import logging
logger = logging.getLogger('TeleBot')
class EventHandler(FileSystemEventHandler):
def on_any_event(self, event: FileSystemEvent):
logger.info('* Detected changes in: %s , reloading', (event.src_path))
logger.info('* Detected changes in: %s, reloading', (event.src_path))
restart_file()
def restart_file():