Fixed all of the whoops

This commit is contained in:
Dan
2024-05-03 22:45:59 -04:00
parent e28176b558
commit efad3e79dc
4 changed files with 8 additions and 4 deletions

View File

@@ -7,10 +7,11 @@ class Dolly(discord.Client):
def __init__(self):
super().__init__(intents=discord.Intents.default())
self.tree = app_commands.CommandTree(self)
self.tree.add_command(DollyProjectTrackerCommands())
async def setup_hook(self):
# Register the commands via a group to the command tree
self.tree.add_command(DollyProjectTrackerCommands())
await self.tree.sync()
async def on_ready(self):
print(f"Logged in as {self.user} (ID: {self.user.id})\n------")