working on botTokens
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
@@ -20,16 +20,21 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
_ = godotenv.Load()
|
||||
|
||||
log.Println("OAuth server started on port 8080")
|
||||
|
||||
botUsername := os.Getenv("nz_chatterbot")
|
||||
botOAuth := os.Getenv("BOT_OAUTH")
|
||||
channel := os Getenv("brycefromnz101")
|
||||
botUsername := os.Getenv("BOT_USERNAME")
|
||||
botAccess := os.Getenv("BOT_ACCESS_TOKEN")
|
||||
botRefresh := os.Getenv("BOT_REFRESH_TOKEN")
|
||||
channel := os Getenv("CHANNEL")
|
||||
clientID := os.Getenv("TWITCH_CLIENT_ID")
|
||||
clientSecret := os.Getenv("TWITCH_CLIENT_SECRET")
|
||||
clientSecret := os.Getenv("TWITCH_CLIENT_SECRET")
|
||||
channelAccess := os.Getenv("STREAMER_ACCESS_TOKEN")
|
||||
channelRefresh := os.Getenv("STREAMER_REFRESH_TOKEN")
|
||||
botChannel := botUsername
|
||||
|
||||
if botUsername == "" || botOAuth == "" || channel == "" || clientID == "" || clientSecret == "" {
|
||||
if botUsername == "" || botAccess == "" || channel == "" || clientID == "" || clientSecret == "" {
|
||||
log.Fatal("Please set Bot_Username, Bot_OAuth, Channel, Twitch_Client_ID, and Twitch_Client_Secret env vars")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user