Update code.py

This commit is contained in:
Paillat
2022-11-27 16:06:12 +01:00
parent 792e656801
commit 24c8b1220f

View File

@@ -10,7 +10,7 @@ def debug(message):
logging.info(message) logging.info(message)
#create a database called "database.db" if the database does not exist, else connect to it #create a database called "database.db" if the database does not exist, else connect to it
conn = sqlite3.connect('data.db') conn = sqlite3.connect('../database/data.db')
c = conn.cursor() c = conn.cursor()
# Create table called "data" if it does not exist with the following columns: guild_id, channel_id, api_key, is_active, max_tokens, temperature, frequency_penalty, presence_penalty, uses_count_today, prompt_size # Create table called "data" if it does not exist with the following columns: guild_id, channel_id, api_key, is_active, max_tokens, temperature, frequency_penalty, presence_penalty, uses_count_today, prompt_size