Skip to content

Commit

Permalink
Fixed /cancel message (breakdowns#58)
Browse files Browse the repository at this point in the history
Co-authored-by: FA Tulloh
<[email protected]>
  • Loading branch information
breakdowns authored Apr 22, 2021
1 parent a077ecb commit 66ecc6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bot/helper/ext_utils/bot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class MirrorStatus:
STATUS_UPLOADING = "Uploading...πŸ“€"
STATUS_DOWNLOADING = "Downloading...πŸ“₯"
STATUS_WAITING = "Queued...πŸ“"
STATUS_FAILED = "Failed 🚫. Cleaning download"
STATUS_CANCELLED = "Cancelled...❌"
STATUS_FAILED = "Failed 🚫. Cleaning Download..."
STATUS_CANCELLED = "Cancelled ❌. Cleaning Download..."
STATUS_ARCHIVING = "Archiving...πŸ”"
STATUS_EXTRACTING = "Extracting...πŸ“‚"

Expand Down
4 changes: 2 additions & 2 deletions bot/modules/cancel_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def cancel_mirror(update, context):
dl = download_dict[mirror_message.message_id]
if len(args) == 1:
if mirror_message is None or mirror_message.message_id not in keys:
if BotCommands.MirrorCommand in mirror_message.text or \
BotCommands.TarMirrorCommand in mirror_message.text:
if BotCommands.MirrorCommand in update.message.text or \
BotCommands.TarMirrorCommand in update.message.text:
msg = "Mirror already have been cancelled"
sendMessage(msg, context.bot, update)
return
Expand Down

0 comments on commit 66ecc6f

Please sign in to comment.