DOC: Added sample.env to allow other people to use the bot

FEAT: Added seperate set of commands focused strictly on GDPR
REF: Updated the other files to reflect the new changes.
This commit is contained in:
Dan
2024-06-19 09:44:04 -04:00
parent 27b051f9eb
commit 8616a01469
4 changed files with 75 additions and 21 deletions

View File

@ -9,8 +9,8 @@ from dotenv import load_dotenv
load_dotenv()
GUILD_ID = int(os.getenv('GUILD_ID'))
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD_ID = int(os.getenv('GUILD_ID'))
intents = discord.Intents.default()
intents.message_content = True
@ -19,10 +19,11 @@ intents.members = True
class Ariella(commands.Bot):
def __init__(self):
super().__init__(command_prefix='!', intents=intents)
super().__init__(intents=intents)
async def setup_hook(self):
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))