mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-16 22:34:19 +02:00
Added and updated repositories 2026-05-31 02:47:15
This commit is contained in:
@@ -6,11 +6,6 @@
|
||||
# |_|\_\___| |_| |_|\___/ \__,_|___/
|
||||
# @ke_mods
|
||||
# =======================================
|
||||
#
|
||||
# LICENSE: CC BY-ND 4.0 (Attribution-NoDerivatives 4.0 International)
|
||||
# --------------------------------------
|
||||
# https://creativecommons.org/licenses/by-nd/4.0/legalcode
|
||||
# =======================================
|
||||
|
||||
# meta developer: @ke_mods
|
||||
|
||||
@@ -43,10 +38,10 @@ class UnbanAllMod(loader.Module):
|
||||
chat = await message.get_chat()
|
||||
|
||||
if not chat.admin_rights and not chat.creator:
|
||||
await utils.answer(message, self.strings("no_rights"))
|
||||
await utils.answer(message, self.strings["no_rights"])
|
||||
return
|
||||
|
||||
await utils.answer(message, self.strings("unban_in_process"))
|
||||
await utils.answer(message, self.strings["unban_in_process"])
|
||||
|
||||
no_banned = True
|
||||
|
||||
@@ -64,11 +59,11 @@ class UnbanAllMod(loader.Module):
|
||||
))
|
||||
|
||||
except Exception as e:
|
||||
await utils.answer(message, self.strings("error_occured").format(user.id, e))
|
||||
await utils.answer(message, self.strings["error_occured"].format(user.id, e))
|
||||
pass
|
||||
|
||||
if no_banned:
|
||||
await utils.answer(message, self.strings("no_banned"))
|
||||
await utils.answer(message, self.strings["no_banned"])
|
||||
return
|
||||
|
||||
await utils.answer(message, self.strings("success"))
|
||||
await utils.answer(message, self.strings["success"])
|
||||
|
||||
Reference in New Issue
Block a user