From 5ac8131d398c5ec4076f9266c314f781aede3260 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Wed, 29 Mar 2023 06:25:48 -0500 Subject: [PATCH] updates --- Dockerfile | 1 + main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index b6cd8cb..edfccaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ RUN go build -o bot ENV TOKEN=${DISCORD_TOKEN} ENV BOTPREFIX="!" ENV ChannelID=${ChannelID} +ENV OPENAI_API_KEY=${OPENAI_API_KEY} # Run the bot binary CMD ["./bot"] \ No newline at end of file diff --git a/main.go b/main.go index 24ec5ca..d3b0aad 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,7 @@ type configStruct struct { Token string `json : "Token"` BotPrefix string `json : "BotPrefix"` ChannelID string `json : "ChannelID"` + apiKey string `json : "OPEN_API_KEY"` } type jingleBellsResponse struct {