Fixed bugs

This commit is contained in:
Choco
2024-11-06 22:44:00 +08:00
parent 47fe8a9af4
commit 59e021d375
3 changed files with 3 additions and 3 deletions

View File

@@ -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 not message.content.startswith(prefix) and (await bot.is_owner(message.author) or message.author.id in func.settings.bot_access_user):
if prefix and 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