Skip to content

Commit

Permalink
Fix SHOW_EXTRA_CMDS, DISABLE_DRIVE_LINK, BotSetCommand (#189)
Browse files Browse the repository at this point in the history
* Update bot_commands.py

* Update __main__.py

* Update tasks_listener.py
  • Loading branch information
mr-m85 authored Jul 12, 2023
1 parent 41ce992 commit 3e021cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async def search_images():
<b>Bot Settings:</b>
➥ /{BotCommands.UserSetCommand[0]} or /{BotCommands.UserSetCommand[1]} [query]: Open User Settings (PM also)
➥ /{BotCommands.UsersCommand}: Show User Stats Info (Only Owner & Sudo).
➥ /{BotCommands.BotSetCommand[0]} or /{BotCommands.BotSetCommand[0]} [query]: Open Bot Settings (Only Owner & Sudo).
➥ /{BotCommands.BotSetCommand[0]} or /{BotCommands.BotSetCommand[1]} [query]: Open Bot Settings (Only Owner & Sudo).
<b>Authentication:</b>
➥ /login: Login to Bot to Access Bot without Temp Pass System (Private)
Expand Down
2 changes: 1 addition & 1 deletion bot/helper/listeners/tasks_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def onUploadComplete(self, link, size, files, folders, mime_type, name, rc
if is_DDL:
buttons.ubutton(BotTheme('DDL_LINK', Serv='GoFile'), link)
elif link:
if user_id == OWNER_ID or not config_dict['DISABLE_DRIVE_LINK']:
if not config_dict['DISABLE_DRIVE_LINK'] and user_id == OWNER_ID:
buttons.ubutton(BotTheme('CLOUD_LINK'), link)
else:
msg += BotTheme('RCPATH', RCpath=rclonePath)
Expand Down
4 changes: 2 additions & 2 deletions bot/helper/telegram_helper/bot_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self):
self.QbMirrorCommand.extend([f'qbunzipmirror{CMD_SUFFIX}', f'quzm{CMD_SUFFIX}', f'qbzipmirror{CMD_SUFFIX}', f'qzm{CMD_SUFFIX}'])
self.YtdlCommand = [f'ytdl{CMD_SUFFIX}', f'y{CMD_SUFFIX}']
if config_dict['SHOW_EXTRA_CMDS']:
self.MirrorCommand.extend([f'ytdlzip{CMD_SUFFIX}', f'yz{CMD_SUFFIX}'])
self.YtdlCommand.extend([f'ytdlzip{CMD_SUFFIX}', f'yz{CMD_SUFFIX}'])
self.LeechCommand = [f'leech{CMD_SUFFIX}', f'l{CMD_SUFFIX}']
if config_dict['SHOW_EXTRA_CMDS']:
self.LeechCommand.extend([f'unzipleech{CMD_SUFFIX}', f'uzl{CMD_SUFFIX}', f'zipleech{CMD_SUFFIX}', f'zl{CMD_SUFFIX}'])
Expand All @@ -21,7 +21,7 @@ def __init__(self):
self.QbLeechCommand.extend([f'qbunzipleech{CMD_SUFFIX}', f'quzl{CMD_SUFFIX}', f'qbzipleech{CMD_SUFFIX}', f'qzl{CMD_SUFFIX}'])
self.YtdlLeechCommand = [f'ytdlleech{CMD_SUFFIX}', f'yl{CMD_SUFFIX}']
if config_dict['SHOW_EXTRA_CMDS']:
self.MirrorCommand.extend([f'ytdlzipleech{CMD_SUFFIX}', f'yzl{CMD_SUFFIX}'])
self.YtdlLeechCommand.extend([f'ytdlzipleech{CMD_SUFFIX}', f'yzl{CMD_SUFFIX}'])
self.CloneCommand = [f'clone{CMD_SUFFIX}', f'c{CMD_SUFFIX}']
self.CountCommand = f'count{CMD_SUFFIX}'
self.DeleteCommand = f'del{CMD_SUFFIX}'
Expand Down

0 comments on commit 3e021cd

Please sign in to comment.