From 1db72200da38763cf9e0ae12782bdffe41b8cad9 Mon Sep 17 00:00:00 2001 From: Paillat Date: Sat, 10 Dec 2022 00:53:52 +0100 Subject: [PATCH] Update config.py --- code/config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/config.py b/code/config.py index f9dff24..e4ebc9b 100644 --- a/code/config.py +++ b/code/config.py @@ -9,9 +9,6 @@ def debug(message): #create a database called "database.db" if the database does not exist, else connect to it conn = sqlite3.connect('../database/data.db') c = conn.cursor() -connp = sqlite3.connect('../database/premium.db') -cp = 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 -c.execute('''CREATE TABLE IF NOT EXISTS data (guild_id text, channel_id text, api_key text, is_active boolean, max_tokens integer, temperature real, frequency_penalty real, presence_penalty real, uses_count_today integer, prompt_size integer, prompt_prefix text, tts boolean, pretend_to_be text, pretend_enabled boolean)''') -cp.execute('''CREATE TABLE IF NOT EXISTS data (user_id text, guild_id text, premium boolean)''') \ No newline at end of file +c.execute('''CREATE TABLE IF NOT EXISTS data (guild_id text, channel_id text, api_key text, is_active boolean, max_tokens integer, temperature real, frequency_penalty real, presence_penalty real, uses_count_today integer, prompt_size integer, prompt_prefix text, tts boolean, pretend_to_be text, pretend_enabled boolean)''') \ No newline at end of file