Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 28, 2024
1 parent 1e49059 commit f0d0359
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bot/helper/ext_utils/help_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
/{BotCommands.DeleteCommand} [drive_url]: Delete file/folder from Google Drive (Only Owner & Sudo).
/{BotCommands.UserSetCommand[0]} or /{BotCommands.UserSetCommand[1]} [query]: Users settings.
/{BotCommands.BotSetCommand[0]} or /{BotCommands.BotSetCommand[1]} [query]: Bot settings.
/{BotCommands.SelectCommand}: Select files from torrents or nzb by gid or reply.
/{BotCommands.SelectCommand}: Select files from torrents by gid or reply.
/{BotCommands.CancelTaskCommand[0]} or /{BotCommands.CancelTaskCommand[1]} [gid]: Cancel task by gid or reply.
/{BotCommands.ForceStartCommand[0]} or /{BotCommands.ForceStartCommand[1]} [gid]: Force start task by gid or reply.
/{BotCommands.CancelAllCommand} [query]: Cancel all [status] tasks.
Expand Down
4 changes: 0 additions & 4 deletions bot/modules/bot_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ async def get_buttons(key=None, edit_type=None):
if key is None:
buttons.data_button("Config Variables", "botset var")
buttons.data_button("Private Files", "botset private")
buttons.data_button("Qbit Settings", "botset qbit")
buttons.data_button("Aria2c Settings", "botset aria")
buttons.data_button("Sabnzbd Settings", "botset nzb")
buttons.data_button("JDownloader Sync", "botset syncjd")
buttons.data_button("Close", "botset close")
msg = "Bot Settings:"
elif edit_type is not None:
Expand Down
4 changes: 2 additions & 2 deletions bot/modules/file_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def select(_, message):
elif len(msg) == 1:
msg = (
"Reply to an active /cmd which was used to start the download or add gid along with cmd\n\n"
+ "This command mainly for selection incase you decided to select files from already added torrent/nzb. "
+ "This command mainly for selection incase you decided to select files from already added torrent. "
+ "But you can always use /cmd with arg `s` to select files before download start."
)
await send_message(message, msg)
Expand Down Expand Up @@ -92,7 +92,7 @@ async def select(_, message):
)
task.listener.select = True
except:
await send_message(message, "This is not a bittorrent or sabnzbd task!")
await send_message(message, "This is not a bittorrent task!")
return

SBUTTONS = bt_selection_buttons(id_)
Expand Down
8 changes: 1 addition & 7 deletions bot/modules/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from aiofiles.os import path as aiopath
from aiofiles.os import remove

from bot import LOGGER, intervals, sabnzbd_client, scheduler
from bot import LOGGER, intervals, scheduler
from bot.core.config_manager import Config
from bot.core.mltb_client import TgClient
from bot.helper.ext_utils.bot_utils import new_task, sync_to_async
Expand Down Expand Up @@ -115,12 +115,6 @@ async def confirm_restart(_, query):
for intvl in list(st.values()):
intvl.cancel()
await sync_to_async(clean_all)
if sabnzbd_client.LOGGED_IN:
await gather(
sabnzbd_client.pause_all(),
sabnzbd_client.purge_all(True),
sabnzbd_client.delete_history("all", delete_files=True),
)
proc1 = await create_subprocess_exec(
"pkill",
"-9",
Expand Down

0 comments on commit f0d0359

Please sign in to comment.