REF: Final update to make sure the code is GDPR compliant

This commit is contained in:
Dan
2024-06-19 13:51:34 -04:00
parent d82d1e0729
commit 6009c82ce9
2 changed files with 14 additions and 7 deletions

View File

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