updates
This commit is contained in:
@@ -13,6 +13,7 @@ RUN go build -o bot
|
|||||||
ENV TOKEN=${DISCORD_TOKEN}
|
ENV TOKEN=${DISCORD_TOKEN}
|
||||||
ENV BOTPREFIX="!"
|
ENV BOTPREFIX="!"
|
||||||
ENV ChannelID=${ChannelID}
|
ENV ChannelID=${ChannelID}
|
||||||
|
ENV OPENAI_API_KEY=${OPENAI_API_KEY}
|
||||||
|
|
||||||
# Run the bot binary
|
# Run the bot binary
|
||||||
CMD ["./bot"]
|
CMD ["./bot"]
|
||||||
1
main.go
1
main.go
@@ -29,6 +29,7 @@ type configStruct struct {
|
|||||||
Token string `json : "Token"`
|
Token string `json : "Token"`
|
||||||
BotPrefix string `json : "BotPrefix"`
|
BotPrefix string `json : "BotPrefix"`
|
||||||
ChannelID string `json : "ChannelID"`
|
ChannelID string `json : "ChannelID"`
|
||||||
|
apiKey string `json : "OPEN_API_KEY"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type jingleBellsResponse struct {
|
type jingleBellsResponse struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user