randydev commited on
Commit
028d508
·
1 Parent(s): 89f336c

fix maintance

Browse files
Files changed (1) hide show
  1. akn/manage/account.py +2 -0
akn/manage/account.py CHANGED
@@ -1055,6 +1055,8 @@ async def new_magic_clone(bot: Client, cb: CallbackQuery):
1055
 
1056
  async def new_menu_alldlbot_clone(bot, message):
1057
  user_id = message.from_user.id
 
 
1058
  client_name = generate_random_string(12)
1059
  try:
1060
  bot_token_ask = await message.chat.ask(MAGIC_BOT_TEXT, timeout=300)
 
1055
 
1056
  async def new_menu_alldlbot_clone(bot, message):
1057
  user_id = message.from_user.id
1058
+ if await db_client.get_maintance():
1059
+ return await message.reply_text("Bot is in maintance mode. By @xpushz")
1060
  client_name = generate_random_string(12)
1061
  try:
1062
  bot_token_ask = await message.chat.ask(MAGIC_BOT_TEXT, timeout=300)