mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 10:34:51 +00:00
update
This commit is contained in:
parent
d93f9ce4c4
commit
937015ff4a
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import time
|
||||
import pyromod.listen
|
||||
from database.nightmode_db import scheduler
|
||||
from logging import ERROR, INFO, FileHandler, StreamHandler, basicConfig, getLogger
|
||||
|
||||
from pyrogram import Client
|
||||
|
|
@ -35,6 +36,8 @@ user = Client(
|
|||
|
||||
app.start()
|
||||
user.start()
|
||||
if bool(scheduler.get_jobs()):
|
||||
scheduler.start()
|
||||
bot = app.get_me()
|
||||
ubot = user.get_me()
|
||||
BOT_ID = bot.id
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ from pyrogram.raw.all import layer
|
|||
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
||||
|
||||
from database.users_chats_db import db
|
||||
from database.nightmode_db import scheduler
|
||||
from misskaty import (
|
||||
BOT_NAME,
|
||||
BOT_USERNAME,
|
||||
|
|
@ -72,8 +71,6 @@ async def start_bot():
|
|||
)
|
||||
except Exception as e:
|
||||
LOGGER.error(str(e))
|
||||
if bool(scheduler.get_jobs()):
|
||||
scheduler.start()
|
||||
if os.path.exists("restart.pickle"):
|
||||
with open('restart.pickle', 'rb') as status:
|
||||
chat_id, message_id = pickle.load(status)
|
||||
|
|
|
|||
Loading…
Reference in a new issue