feat: add trusted user list

This commit is contained in:
Ryan 2025-06-08 13:03:00 -04:00
parent 5c030a0557
commit 94bdb91eb0
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import audio
import commands import commands
import utils import utils
from constants import EMBED_COLOR from constants import EMBED_COLOR
from state import client, players from state import client, players, trusted_users
from .playback import resume from .playback import resume
from .utils import command_allowed, ensure_joined, play_next from .utils import command_allowed, ensure_joined, play_next
@ -147,6 +147,7 @@ async def queue_or_play(message, edited=False):
) )
>= 5 >= 5
and not len(message.guild.voice_client.channel.members) == 2 and not len(message.guild.voice_client.channel.members) == 2
and message.author.id not in trusted_users
): ):
await utils.reply( await utils.reply(
message, message,

View File

@ -17,3 +17,4 @@ message_responses = LimitedSizeDict()
players = {} players = {}
sponsorblock_cache = LimitedSizeDict() sponsorblock_cache = LimitedSizeDict()
start_time = time.time() start_time = time.time()
trusted_users = []