-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
16 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ Copyright © 2023 Kevin Jayne <[email protected]> | |
package cmd | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
"hash/fnv" | ||
"net/url" | ||
|
@@ -65,19 +64,19 @@ func init() { | |
// Check for Required Environment Variables | ||
OPENAI_API_KEY = os.Getenv("OPENAI_API_KEY") | ||
if OPENAI_API_KEY == "" { | ||
catchErr(errors.New("OPENAI_API_KEY environment variable is not set")) | ||
fmt.Println("OPENAI_API_KEY environment variable is not set, continuing without OpenAI API Key") | ||
} | ||
PRINTIFY_API_KEY = os.Getenv("PRINTIFY_API_KEY") | ||
if PRINTIFY_API_KEY == "" { | ||
catchErr(errors.New("PRINTIFY_API_KEY environment variable is not set")) | ||
fmt.Println("PRINTIFY_API_KEY environment variable is not set, continuing without Printify API Key") | ||
} | ||
DISCORD_API_KEY = os.Getenv("DISCORD_API_KEY") | ||
if DISCORD_API_KEY == "" { | ||
catchErr(errors.New("DISCORD_API_KEY environment variable is not set")) | ||
fmt.Println("DISCORD_API_KEY environment variable is not set, continuing without Discord API Key") | ||
} | ||
DISCORD_PUB_KEY = os.Getenv("DISCORD_PUB_KEY") | ||
if DISCORD_PUB_KEY == "" { | ||
catchErr(errors.New("DISCORD_PUB_KEY environment variable is not set")) | ||
fmt.Println("DISCORD_PUB_KEY environment variable is not set, continuing without Discord Public Key") | ||
} | ||
|
||
// Create a unique user for OpenAI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters