Skip to content

Commit

Permalink
Update welcome.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kjeymax authored Oct 23, 2021
1 parent cf607d7 commit d2f9094
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mrjoker/modules/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def welcomemute(update: Update, context: CallbackContext) -> str:
f"<b>• Admin:</b> {mention_html(user.id, user.first_name)}\n"
f"Has toggled welcome mute to <b>STRONG</b>."
)
if args[0].lower() in ["captcha"]:
if args[0].lower() in ["captcha"]:
sql.set_welcome_mutes(chat.id, "captcha")
msg.reply_text(
"I will now mute people when they join until they prove they're not a bot.\nThey have to solve a captcha to get unmuted."
Expand All @@ -934,15 +934,15 @@ def welcomemute(update: Update, context: CallbackContext) -> str:
msg.reply_text(
"Please enter `off`/`no`/`soft`/`strong`/`captcha`!",
parse_mode=ParseMode.MARKDOWN,
)
return ""
curr_setting = sql.welcome_mutes(chat.id)
reply = (
f"\n Give me a setting!\nChoose one out of: `off`/`no` or `soft`, `strong` or `captcha` only! \n"
f"Current setting: `{curr_setting}`"
)
)
return ""
curr_setting = sql.welcome_mutes(chat.id)
reply = (
f"\n Give me a setting!\nChoose one out of: `off`/`no` or `soft`, `strong` or `captcha` only! \n"
f"Current setting: `{curr_setting}`"
)
msg.reply_text(reply, parse_mode=ParseMode.MARKDOWN)
return ""
return ""


@run_async
Expand Down

0 comments on commit d2f9094

Please sign in to comment.