Compare commits
2 Commits
9894a6957c
...
2b7665f8ad
Author | SHA1 | Date |
---|---|---|
Stefano Assenzo | 2b7665f8ad | |
Stefano Assenzo | 4e0e1c545f |
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue