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:
8
main.py
8
main.py
@ -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()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user