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 {