Spaces:
Running
Running
Captain Ezio
commited on
Commit
·
8396243
1
Parent(s):
596c51c
Update __main__.py
Browse files- Powers/__main__.py +2 -4
Powers/__main__.py
CHANGED
@@ -6,14 +6,12 @@ from Powers.bot_class import Gojo
|
|
6 |
from Powers.plugins.birthday import send_wishish
|
7 |
from Powers.plugins.clean_db import clean_my_db
|
8 |
|
9 |
-
scheduler = AsyncIOScheduler()
|
10 |
-
scheduler.timezone = TIME_ZONE
|
11 |
|
12 |
if __name__ == "__main__":
|
13 |
uvloop.install() # Comment it out if using on windows
|
14 |
Gojo().run()
|
15 |
scheduler.add_job(clean_my_db,'cron',[Gojo()],hour=3,minute=0,second=0)
|
16 |
-
scheduler.start()
|
17 |
if BDB_URI:
|
18 |
scheduler.add_job(send_wishish,'cron',[Gojo()],hour=0,minute=0,second=0)
|
19 |
-
|
|
|
6 |
from Powers.plugins.birthday import send_wishish
|
7 |
from Powers.plugins.clean_db import clean_my_db
|
8 |
|
9 |
+
scheduler = AsyncIOScheduler(timezone=TIME_ZONE)
|
|
|
10 |
|
11 |
if __name__ == "__main__":
|
12 |
uvloop.install() # Comment it out if using on windows
|
13 |
Gojo().run()
|
14 |
scheduler.add_job(clean_my_db,'cron',[Gojo()],hour=3,minute=0,second=0)
|
|
|
15 |
if BDB_URI:
|
16 |
scheduler.add_job(send_wishish,'cron',[Gojo()],hour=0,minute=0,second=0)
|
17 |
+
scheduler.start()
|