From 80cbe49f735fd4fe99a85aca3697f444244f5866 Mon Sep 17 00:00:00 2001 From: BraydonKains Date: Sat, 15 Jan 2022 15:52:21 -0500 Subject: [PATCH] fixed go module, changed bot env var --- go.mod | 5 +++++ go.sum | 6 ++++++ main.go | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..3b849a3 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module hubbot + +go 1.16 + +require github.com/bwmarrin/discordgo v0.23.2 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..28dbed2 --- /dev/null +++ b/go.sum @@ -0,0 +1,6 @@ +github.com/bwmarrin/discordgo v0.23.2 h1:BzrtTktixGHIu9Tt7dEE6diysEF9HWnXeHuoJEt2fH4= +github.com/bwmarrin/discordgo v0.23.2/go.mod h1:c1WtWUGN6nREDmzIpyTp/iD3VYt4Fpx+bVyfBG7JE+M= +github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16 h1:y6ce7gCWtnH+m3dCjzQ1PCuwl28DDIc3VNnvY29DlIA= +golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= diff --git a/main.go b/main.go index 6cf9f3e..40bb145 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func main() { } func getBotToken() string { - token := os.Getenv("BOT_TOKEN") + token := os.Getenv("BUB_TOKEN") if token == "" { token = os.Args[1] if token == "" {