mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 20:04:51 +00:00
Fix load domain
This commit is contained in:
parent
fd1960a38e
commit
a8354424b5
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,6 @@ from logging import ERROR, INFO, StreamHandler, basicConfig, getLogger, handlers
|
||||||
|
|
||||||
from apscheduler.jobstores.mongodb import MongoDBJobStore
|
from apscheduler.jobstores.mongodb import MongoDBJobStore
|
||||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||||
from database import dbname
|
|
||||||
from motor.motor_asyncio import AsyncIOMotorClient
|
from motor.motor_asyncio import AsyncIOMotorClient
|
||||||
from pymongo import MongoClient
|
from pymongo import MongoClient
|
||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ from misskaty import (
|
||||||
from misskaty.plugins import ALL_MODULES
|
from misskaty.plugins import ALL_MODULES
|
||||||
from misskaty.vars import SUDO, USER_SESSION
|
from misskaty.vars import SUDO, USER_SESSION
|
||||||
from utils import auto_clean
|
from utils import auto_clean
|
||||||
|
from database import dbname
|
||||||
|
|
||||||
LOGGER = getLogger(__name__)
|
LOGGER = getLogger(__name__)
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
|
@ -73,8 +74,8 @@ async def start_bot():
|
||||||
LOGGER.error(str(e))
|
LOGGER.error(str(e))
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
if "web" not in await dbname.list_collection_names():
|
if "web" not in await dbname.list_collection_names():
|
||||||
|
webdb = dbname.web
|
||||||
for key, value in web.items():
|
for key, value in web.items():
|
||||||
webdb = dbname.web
|
|
||||||
await webdb.insert_one({key: value})
|
await webdb.insert_one({key: value})
|
||||||
if os.path.exists("restart.pickle"):
|
if os.path.exists("restart.pickle"):
|
||||||
with open('restart.pickle', 'rb') as status:
|
with open('restart.pickle', 'rb') as status:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue