FIX: Added a force sync to at least my testing server for now

FEAT: Added better control over the notes and strikes.
This commit is contained in:
Dan
2024-06-19 08:18:39 -04:00
parent bc4b0a916e
commit 19b48dd67d
2 changed files with 41 additions and 9 deletions

View File

@ -10,6 +10,7 @@ from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD_ID = int(os.getenv('GUILD_ID'))
intents = discord.Intents.default()
intents.message_content = True
@ -22,7 +23,8 @@ class Ariella(commands.Bot):
async def setup_hook(self):
await self.load_extension('commands')
await self.tree.sync()
self.tree.copy_global_to(guild=discord.Object(id=GUILD_ID))
await self.tree.sync(guild=discord.Object(id=GUILD_ID))
bot = Ariella()