DiscordApplicationBot/setup.py

7 lines
237 B
Python

import sqlite3
con = sqlite3.connect("application.db")
cur = con.cursor()
cur.execute("CREATE TABLE app_msg_db(msg_id, user_id, guild_id)")
cur.execute("CREATE TABLE app_guildapp_db(guild_id, guild_name, application_blob)")
con.commit()