From 94bdb91eb038da148ed0cfc3a3e4022bce0b61a1 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Sun, 8 Jun 2025 13:03:00 -0400 Subject: [PATCH] feat: add trusted user list --- commands/voice/queue.py | 3 ++- state.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/voice/queue.py b/commands/voice/queue.py index f3b84ce..5fe4bef 100644 --- a/commands/voice/queue.py +++ b/commands/voice/queue.py @@ -8,7 +8,7 @@ import audio import commands import utils from constants import EMBED_COLOR -from state import client, players +from state import client, players, trusted_users from .playback import resume from .utils import command_allowed, ensure_joined, play_next @@ -147,6 +147,7 @@ async def queue_or_play(message, edited=False): ) >= 5 and not len(message.guild.voice_client.channel.members) == 2 + and message.author.id not in trusted_users ): await utils.reply( message, diff --git a/state.py b/state.py index ec35123..60e0260 100644 --- a/state.py +++ b/state.py @@ -17,3 +17,4 @@ message_responses = LimitedSizeDict() players = {} sponsorblock_cache = LimitedSizeDict() start_time = time.time() +trusted_users = []