FEAT: Added a Birthday Module
This commit is contained in:
5
main.py
5
main.py
@ -8,8 +8,10 @@ class Selena(discord.Client):
|
||||
self.tree = discord.app_commands.CommandTree(self)
|
||||
|
||||
async def setup_hook(self):
|
||||
guild = discord.Object(id=config.DISCORD_GUILD_ID)
|
||||
await self.load_extensions()
|
||||
await self.tree.sync()
|
||||
self.tree.copy_global_to(guild=guild)
|
||||
await self.tree.sync(guild=guild)
|
||||
|
||||
async def load_extension(self, name):
|
||||
module = __import__(name, fromlist=["setup"])
|
||||
@ -19,6 +21,7 @@ class Selena(discord.Client):
|
||||
extensions = [
|
||||
"modules.admin.logger_module",
|
||||
"modules.media.spotify_module",
|
||||
"modules.user.birthday_module",
|
||||
# Add other modules here
|
||||
]
|
||||
for extension in extensions:
|
||||
|
Reference in New Issue
Block a user