|
|
|
@ -8,6 +8,7 @@ botToken = i.botToken
|
|
|
|
|
|
|
|
|
|
bot = telebot.TeleBot(botToken)
|
|
|
|
|
chatId = i.chatId
|
|
|
|
|
dirLoc = i.dirLoc
|
|
|
|
|
|
|
|
|
|
import time
|
|
|
|
|
from watchdog.observers import Observer
|
|
|
|
@ -26,7 +27,7 @@ def on_created(event):
|
|
|
|
|
|
|
|
|
|
my_event_handler.on_created = on_created
|
|
|
|
|
|
|
|
|
|
path = "."
|
|
|
|
|
path = dirLoc
|
|
|
|
|
go_recursively = False
|
|
|
|
|
my_observer = Observer()
|
|
|
|
|
my_observer.schedule(my_event_handler, path, recursive=go_recursively)
|
|
|
|
|