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 == "" {