mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +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.schedulers.asyncio import AsyncIOScheduler
|
||||
from database import dbname
|
||||
from motor.motor_asyncio import AsyncIOMotorClient
|
||||
from pymongo import MongoClient
|
||||
from pyrogram import Client
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ from misskaty import (
|
|||
from misskaty.plugins import ALL_MODULES
|
||||
from misskaty.vars import SUDO, USER_SESSION
|
||||
from utils import auto_clean
|
||||
from database import dbname
|
||||
|
||||
LOGGER = getLogger(__name__)
|
||||
loop = asyncio.get_event_loop()
|
||||
|
|
@ -73,8 +74,8 @@ async def start_bot():
|
|||
LOGGER.error(str(e))
|
||||
scheduler.start()
|
||||
if "web" not in await dbname.list_collection_names():
|
||||
webdb = dbname.web
|
||||
for key, value in web.items():
|
||||
webdb = dbname.web
|
||||
await webdb.insert_one({key: value})
|
||||
if os.path.exists("restart.pickle"):
|
||||
with open('restart.pickle', 'rb') as status:
|
||||
|
|
|
|||
Loading…
Reference in a new issue