From 47fe8a9af43952042de7e26a29bf40fb47920f3a Mon Sep 17 00:00:00 2001 From: Choco <94597336+ChocoMeow@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:13:45 +0800 Subject: [PATCH] Allowed bot access user use command without prefix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 38495a0..3ec48b3 100644 --- a/main.py +++ b/main.py @@ -144,7 +144,7 @@ async def get_prefix(bot: commands.Bot, message: discord.Message) -> str: prefix = settings.get("prefix", func.settings.bot_prefix) # Allow owner to use the bot without a prefix - if await bot.is_owner(message.author) and not message.content.startswith(prefix): + if not message.content.startswith(prefix) and (await bot.is_owner(message.author) or message.author.id in func.settings.bot_access_user): return "" return prefix