From 734121bd5d693c26b7637b0a89161042944fecbd Mon Sep 17 00:00:00 2001 From: Paillat Date: Sat, 10 Dec 2022 01:27:14 +0100 Subject: [PATCH] Update config.py --- code/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/config.py b/code/config.py index f9dff24..0b29c45 100644 --- a/code/config.py +++ b/code/config.py @@ -10,7 +10,7 @@ def debug(message): conn = sqlite3.connect('../database/data.db') c = conn.cursor() connp = sqlite3.connect('../database/premium.db') -cp = conn.cursor() +cp = connp.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)''')