DOC: Added *.db to the .gitignore to prevent any data from being shared.

FEAT: Updated code to start following GDPR compliance.
This commit is contained in:
Dan
2024-06-19 09:29:16 -04:00
parent 19b48dd67d
commit 27b051f9eb
4 changed files with 92 additions and 8 deletions

View File

@ -9,8 +9,8 @@ from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD_ID = int(os.getenv('GUILD_ID'))
TOKEN = os.getenv('DISCORD_TOKEN')
intents = discord.Intents.default()
intents.message_content = True
@ -40,6 +40,12 @@ async def init_db():
strikes INTEGER
)
""")
await db.execute("""
CREATE TABLE IF NOT EXISTS user_consent (
user_id INTEGER PRIMARY KEY,
consent INTEGER
)
""")
await db.commit()