2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

improve sudo/blacklist handling

This commit is contained in:
Nick80835
2023-10-12 21:54:01 -04:00
parent 2068bce8ff
commit 07a5cdbcb2
3 changed files with 30 additions and 26 deletions

View File

@@ -196,7 +196,7 @@ async def rem_blacklist(event):
@ldr.add("showblacklist", sudo=True, hide_help=True)
async def show_blacklist(event):
blacklist_string = "\n".join([str(user_id) for user_id in ldr.db.get_blacklist_list()])
blacklist_string = "\n".join([str(user_id) for user_id in ldr.db.blacklisted_users])
await event.reply(f"**Blacklisted users:**\n\n{blacklist_string}")
@@ -231,7 +231,7 @@ async def rem_sudo(event):
@ldr.add("showsudo", sudo=True, hide_help=True)
async def show_sudo(event):
sudo_string = "\n".join([str(user_id) for user_id in ldr.db.get_sudo_list()])
sudo_string = "\n".join([str(user_id) for user_id in ldr.db.sudo_users])
await event.reply(f"**Sudo users:**\n\n{sudo_string}")