Compare commits

...

2 Commits

Author SHA1 Message Date
Stefano Assenzo 2b7665f8ad
Update main.py 2023-03-10 20:06:03 +01:00
Stefano Assenzo 4e0e1c545f
Update main.py 2023-03-10 20:04:54 +01:00
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ from dotenv import load_dotenv
from telebot import telebot from telebot import telebot
import threading import threading
import datetime import datetime
import time
import schedule import schedule
import pymongo import pymongo
import urllib import urllib
@ -93,4 +94,5 @@ now = datetime.datetime.now()
t1 = threading.Thread(target=bot.polling).start() t1 = threading.Thread(target=bot.polling).start()
while True: while True:
time.sleep(10)
schedule.run_pending() schedule.run_pending()