Created setup.py that creates db file and tables

main
Anorak_1 2023-08-09 22:13:49 +02:00
parent 15ce50196d
commit 0eff35508f
1 changed files with 7 additions and 0 deletions

7
setup.py 100644
View File

@ -0,0 +1,7 @@
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()