FEAT: Added XP

REF: Fixed up currency so the cooldown is presented to the user.
This commit is contained in:
Dan
2024-06-24 23:20:03 -04:00
parent fcc1489b74
commit 49a7588699
4 changed files with 158 additions and 25 deletions

View File

@@ -20,9 +20,16 @@ class Selena(discord.Client):
currency = Currency(self)
currency.setup(self.tree)
if config['modules']['xp']['enabled']:
from modules.user.xp import XP
xp = XP(self)
xp.setup(self.tree)
async def setup_hook(self):
self.tree.copy_global_to(guild=discord.Object(id=GUILD_ID))
await self.tree.sync(guild=discord.Object(id=GUILD_ID))
# Force sync for all commands
await self.tree.sync()
bot = Selena()