mirror of
https://github.com/Nick80835/microbot
synced 2025-08-31 22:46:01 +00:00
add showblacklist command
This commit is contained in:
@@ -173,3 +173,13 @@ async def rem_blacklist(event):
|
||||
|
||||
ldr.settings.remove_from_list("blacklisted_users", userid)
|
||||
await event.reply(f"Successfully unblacklisted **{userfullname}** `({userid})`")
|
||||
|
||||
|
||||
@ldr.add("showblacklist", sudo=True)
|
||||
async def show_blacklist(event):
|
||||
blacklist_string = ""
|
||||
|
||||
for i in ldr.settings.get_list('blacklisted_users'):
|
||||
blacklist_string += f"\n{i}"
|
||||
|
||||
await event.reply(f"**Blacklisted users:**\n{blacklist_string}")
|
||||
|
Reference in New Issue
Block a user