mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
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:
1
bot.py
1
bot.py
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user