From d6eb1c79dc85189b69b445ffa9d1e35d63a0a859 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 23 May 2021 03:07:57 +0100 Subject: [PATCH] Misc: Create go module --- cmd/main.go | 2 +- features/bot.go | 2 +- features/customroles.go | 2 +- features/handlers.go | 2 +- features/helpers.go | 2 +- features/misc.go | 2 +- features/moderation.go | 2 +- features/usercolor.go | 2 +- go.mod | 5 +++++ go.sum | 6 ++++++ permissions/permissions.go | 2 +- 11 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/cmd/main.go b/cmd/main.go index 2de2315..c2ce4c0 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -13,7 +13,7 @@ import ( "syscall" "time" - "github.com/bwmarrin/discord.go" + "github.com/bwmarrin/discordgo" ) // Core Bot Properties diff --git a/features/bot.go b/features/bot.go index 3e2c45d..5c75f9c 100644 --- a/features/bot.go +++ b/features/bot.go @@ -2,7 +2,7 @@ package features import ( "errors" - discordgo "github.com/bwmarrin/discord.go" + discordgo "github.com/bwmarrin/discordgo" "log" "os" "strings" diff --git a/features/customroles.go b/features/customroles.go index 341b83e..63f20a4 100644 --- a/features/customroles.go +++ b/features/customroles.go @@ -2,7 +2,7 @@ package features import ( "errors" - discordgo "github.com/bwmarrin/discord.go" + discordgo "github.com/bwmarrin/discordgo" "github.com/foxtrot/scuzzy/models" "strings" ) diff --git a/features/handlers.go b/features/handlers.go index c94ea13..ff12043 100644 --- a/features/handlers.go +++ b/features/handlers.go @@ -2,7 +2,7 @@ package features import ( "errors" - "github.com/bwmarrin/discord.go" + "github.com/bwmarrin/discordgo" "log" "strconv" "strings" diff --git a/features/helpers.go b/features/helpers.go index b6d3dde..b169c1c 100644 --- a/features/helpers.go +++ b/features/helpers.go @@ -1,7 +1,7 @@ package features import ( - "github.com/bwmarrin/discord.go" + "github.com/bwmarrin/discordgo" "github.com/foxtrot/scuzzy/models" "time" ) diff --git a/features/misc.go b/features/misc.go index dbd5afd..619b13c 100644 --- a/features/misc.go +++ b/features/misc.go @@ -4,7 +4,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/bwmarrin/discord.go" + "github.com/bwmarrin/discordgo" "github.com/foxtrot/scuzzy/models" "io/ioutil" "os" diff --git a/features/moderation.go b/features/moderation.go index 64245bc..bb64bcc 100644 --- a/features/moderation.go +++ b/features/moderation.go @@ -2,7 +2,7 @@ package features import ( "errors" - "github.com/bwmarrin/discord.go" + "github.com/bwmarrin/discordgo" "strconv" "strings" "time" diff --git a/features/usercolor.go b/features/usercolor.go index 074a10f..56a57da 100644 --- a/features/usercolor.go +++ b/features/usercolor.go @@ -2,7 +2,7 @@ package features import ( "errors" - "github.com/bwmarrin/discord.go" + "github.com/bwmarrin/discordgo" "strings" ) diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..64cbc68 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/foxtrot/scuzzy + +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/permissions/permissions.go b/permissions/permissions.go index eda603a..a017859 100644 --- a/permissions/permissions.go +++ b/permissions/permissions.go @@ -1,7 +1,7 @@ package permissions import ( - "github.com/bwmarrin/discord.go" + "github.com/bwmarrin/discordgo" "github.com/foxtrot/scuzzy/models" "strings" )