refactor: owner checks and embed handling in owner cogs

Removed OWNER_ID from .env and bot.py, switching to @commands.is_owner() for owner checks. Unified embed sending logic in owner cogs, improved error messages, and updated invite command to use ephemeral responses and enhanced embed formatting.
This commit is contained in:
neoarz
2025-09-16 07:43:56 -04:00
parent 7fde0b82ad
commit 1cc3a32e1d
4 changed files with 29 additions and 8 deletions

1
bot.py
View File

@@ -112,7 +112,6 @@ class DiscordBot(commands.Bot):
command_prefix=commands.when_mentioned_or(os.getenv("PREFIX")),
intents=intents,
help_command=None,
owner_id=int(os.getenv("OWNER_ID")) if os.getenv("OWNER_ID") else None,
)
"""
This creates custom bot variables so that we can access these variables in cogs more easily.