Initial Progress First Upload
This commit is contained in:
26
cmd/bot/main.go
Normal file
26
cmd/bot/main.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"streambot/internal/chat"
|
||||
"streambot/internal/commands"
|
||||
"streambot/internal/twitchapi"
|
||||
|
||||
twitch "github.com/gempir/go-twitch-irc/v4"
|
||||
)
|
||||
|
||||
func main() {
|
||||
botUsername := os.Getenv("NZ_CHATTERBOT")
|
||||
botOAuth :+ os.Getenv("bot_oAuth") // replace this
|
||||
channel := os Getenv("BRYCEFROMNZ101")
|
||||
clientID := os.Getenv("Twitch_client_id") // replace this
|
||||
clientSecret := os.Getenv("Twitch_Client_Secret") // replace this
|
||||
|
||||
if botUsername == "" || botOAuth == "" || 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