diff options
author | Parker <contact@pkrm.dev> | 2024-04-12 00:28:59 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-04-12 00:28:59 -0500 |
commit | 2ebd5421b7f37234dc400ed4f6cf2e6b0c62e0ed (patch) | |
tree | 1eae4a18b20362c536d8dfa424612d08c9287de6 /code/global_variables.py | |
parent | 312e2f12beaae6e53f929c62c4285386d4c6ffdb (diff) |
Add OPENAI_API_KEY
Preparation for autoplay feature using ChatGPT
Diffstat (limited to 'code/global_variables.py')
-rw-r--r-- | code/global_variables.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/code/global_variables.py b/code/global_variables.py index f79a3bb..1507f7a 100644 --- a/code/global_variables.py +++ b/code/global_variables.py @@ -2,6 +2,7 @@ import configparser import logging from colorlog import ColoredFormatter import discord +import openai log_level = logging.DEBUG @@ -49,6 +50,7 @@ BOT_COLOR = discord.Color(int((config["BOT_INFO"]["BOT_COLOR"]).replace("#", "") FEEDBACK_CHANNEL_ID = int(config["BOT_INFO"]["FEEDBACK_CHANNEL_ID"]) SPOTIFY_CLIENT_ID = config["BOT_INFO"]["SPOTIFY_CLIENT_ID"] SPOTIFY_CLIENT_SECRET = config["BOT_INFO"]["SPOTIFY_CLIENT_SECRET"] +CLIENT = openai.OpenAI(api_key=config["BOT_INFO"]["OPENAI_API_KEY"]) BUG_CHANNEL_ID = int(config["BOT_INFO"]["BUG_CHANNEL_ID"]) BOT_INVITE_LINK = config["BOT_INFO"]["BOT_INVITE_LINK"] |