FEAT: Added a Birthday Module

This commit is contained in:
Dan
2024-06-21 13:22:13 -04:00
parent 15ed750f8b
commit f5872626a3
4 changed files with 127 additions and 1 deletions

View File

@ -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: