Skip to content

Commit

Permalink
Update bans.py
Browse files Browse the repository at this point in the history
  • Loading branch information
madboy482 authored Feb 25, 2021
1 parent ee1509d commit 7f29f58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SaitamaRobot/modules/bans.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def temp_ban(update: Update, context: CallbackContext) -> str:
# bot.send_sticker(chat.id, BAN_STICKER) # banhammer marie sticker
bot.sendMessage(
chat.id,
f"Yeah, Banned! User {mention_html(member.user.id, html.escape(member.user.first_name))}"
f"Yeah, Banned!\nUser {mention_html(member.user.id, html.escape(member.user.first_name))}"
f"will be banned for {time_val}.",
parse_mode=ParseMode.HTML)
return log
Expand All @@ -189,7 +189,7 @@ def temp_ban(update: Update, context: CallbackContext) -> str:
if excp.message == "Reply message not found...":
# Do not reply
message.reply_text(
f"<b>Yeah, Banned {mention_html(member.user.id, html.escape(member.user.first_name))!\nUser will be banned for {time_val}.", quote=False)
f"<b>Yeah, Banned!!✅\nUser will be banned for {time_val}.", quote=False)
return log
else:
LOGGER.warning(update)
Expand Down Expand Up @@ -241,7 +241,7 @@ def kick(update: Update, context: CallbackContext) -> str:
# bot.send_sticker(chat.id, BAN_STICKER) # banhammer marie sticker
bot.sendMessage(
chat.id,
f"<b>Yeah, Kicked!</b> {mention_html(member.user.id, html.escape(member.user.first_name))}.",
f"<b>Yeah, Kicked!!</b> {mention_html(member.user.id, html.escape(member.user.first_name))}.",
parse_mode=ParseMode.HTML)
log = (
f"<b>{html.escape(chat.title)}:</b>\n"
Expand Down

0 comments on commit 7f29f58

Please sign in to comment.