fixed go module, changed bot env var

main
BraydonKains 3 years ago
parent 14121f675d
commit 80cbe49f73

@ -0,0 +1,5 @@
module hubbot
go 1.16
require github.com/bwmarrin/discordgo v0.23.2

@ -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=

@ -32,7 +32,7 @@ func main() {
} }
func getBotToken() string { func getBotToken() string {
token := os.Getenv("BOT_TOKEN") token := os.Getenv("BUB_TOKEN")
if token == "" { if token == "" {
token = os.Args[1] token = os.Args[1]
if token == "" { if token == "" {

Loading…
Cancel
Save