aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands/config.go2
-rw-r--r--commands/credits.go2
-rw-r--r--commands/rank.go2
-rw-r--r--commands/reset.go2
-rw-r--r--commands/stats.go2
-rw-r--r--commands/top.go2
-rw-r--r--config/channel.go2
-rw-r--r--config/xp_reduce.go2
-rw-r--r--config/xp_role.go2
-rw-r--r--events.go2
-rw-r--r--go.mod8
-rw-r--r--go.sum8
-rw-r--r--main.go2
-rw-r--r--user/level.go2
-rw-r--r--user/xp.go2
15 files changed, 25 insertions, 17 deletions
diff --git a/commands/config.go b/commands/config.go
index 41fb60e..c4644bc 100644
--- a/commands/config.go
+++ b/commands/config.go
@@ -9,7 +9,7 @@ import (
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/component"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
const (
diff --git a/commands/credits.go b/commands/credits.go
index 5c3c4bd..f0a8c46 100644
--- a/commands/credits.go
+++ b/commands/credits.go
@@ -4,7 +4,7 @@ import (
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
func Credits(_ *discordgo.Session, i *discordgo.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) {
diff --git a/commands/rank.go b/commands/rank.go
index 48a893f..94dabf2 100644
--- a/commands/rank.go
+++ b/commands/rank.go
@@ -7,7 +7,7 @@ import (
"git.anhgelus.world/anhgelus/les-copaings-bot/user"
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
func Rank(s *discordgo.Session, i *discordgo.InteractionCreate, optMap cmd.OptionMap, resp *cmd.ResponseBuilder) {
diff --git a/commands/reset.go b/commands/reset.go
index 128354f..07e3ba3 100644
--- a/commands/reset.go
+++ b/commands/reset.go
@@ -5,7 +5,7 @@ import (
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
func Reset(_ *discordgo.Session, i *discordgo.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) {
diff --git a/commands/stats.go b/commands/stats.go
index 0114918..f93f6a0 100644
--- a/commands/stats.go
+++ b/commands/stats.go
@@ -17,8 +17,8 @@ import (
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
"github.com/jackc/pgx/v5/pgtype"
+ discordgo "github.com/nyttikord/gokord"
"gonum.org/v1/plot"
"gonum.org/v1/plot/plotter"
"gonum.org/v1/plot/vg"
diff --git a/commands/top.go b/commands/top.go
index fedea45..ecbf6f4 100644
--- a/commands/top.go
+++ b/commands/top.go
@@ -9,7 +9,7 @@ import (
"git.anhgelus.world/anhgelus/les-copaings-bot/user"
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
func Top(_ *discordgo.Session, i *discordgo.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) {
diff --git a/config/channel.go b/config/channel.go
index 7c70443..537d586 100644
--- a/config/channel.go
+++ b/config/channel.go
@@ -6,7 +6,7 @@ import (
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/component"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
const (
diff --git a/config/xp_reduce.go b/config/xp_reduce.go
index ce5f23c..defc54b 100644
--- a/config/xp_reduce.go
+++ b/config/xp_reduce.go
@@ -6,7 +6,7 @@ import (
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/component"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
const (
diff --git a/config/xp_role.go b/config/xp_role.go
index a0bef71..97de8be 100644
--- a/config/xp_role.go
+++ b/config/xp_role.go
@@ -10,7 +10,7 @@ import (
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/component"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
type XpRole struct {
diff --git a/events.go b/events.go
index 17a83a0..6f15fd8 100644
--- a/events.go
+++ b/events.go
@@ -9,7 +9,7 @@ import (
"git.anhgelus.world/anhgelus/les-copaings-bot/exp"
"git.anhgelus.world/anhgelus/les-copaings-bot/user"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
const (
diff --git a/go.mod b/go.mod
index 8d3de69..5a9a1fb 100644
--- a/go.mod
+++ b/go.mod
@@ -3,12 +3,12 @@ module git.anhgelus.world/anhgelus/les-copaings-bot
go 1.24
require (
- github.com/anhgelus/gokord v0.11.1-0.20250821122244-0aee6c37eef6
- github.com/bwmarrin/discordgo v0.29.0
+ github.com/anhgelus/gokord v0.11.1-0.20250904142107-2d0e3c982bc3
+ github.com/nyttikord/gokord v0.30.0
github.com/joho/godotenv v1.5.1
github.com/pelletier/go-toml/v2 v2.2.4
gorm.io/driver/postgres v1.6.0
- gorm.io/gorm v1.30.1
+ gorm.io/gorm v1.30.3
)
require (
@@ -29,7 +29,7 @@ require (
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
- github.com/redis/go-redis/v9 v9.12.1 // indirect
+ github.com/redis/go-redis/v9 v9.13.0 // indirect
golang.org/x/crypto v0.41.0 // indirect
golang.org/x/image v0.30.0 // indirect
golang.org/x/sync v0.16.0 // indirect
diff --git a/go.sum b/go.sum
index 86aabdb..ea40119 100644
--- a/go.sum
+++ b/go.sum
@@ -29,6 +29,8 @@ github.com/anhgelus/gokord v0.11.1-0.20250821115246-50e5f7d17717 h1:KfcBHUpwbffR
github.com/anhgelus/gokord v0.11.1-0.20250821115246-50e5f7d17717/go.mod h1:4xpwLzIG34/XG9QZiPsnYScQhckiCpQMAI0CjP0Nc2k=
github.com/anhgelus/gokord v0.11.1-0.20250821122244-0aee6c37eef6 h1:4eO/9UqTPfrKyss2CeLafeKeR06bgoFihudKOdLpWpI=
github.com/anhgelus/gokord v0.11.1-0.20250821122244-0aee6c37eef6/go.mod h1:4xpwLzIG34/XG9QZiPsnYScQhckiCpQMAI0CjP0Nc2k=
+github.com/anhgelus/gokord v0.11.1-0.20250904142107-2d0e3c982bc3 h1:j7Im8+Vd7BIhBPQKsK5Hs2BsyO71Q3/XVxgZntNJa5M=
+github.com/anhgelus/gokord v0.11.1-0.20250904142107-2d0e3c982bc3/go.mod h1:Tw1djmUOTFCIRhEUI7eG2onnreJbVGA40EWYQgj20bE=
github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c=
github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=
@@ -64,6 +66,8 @@ github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/nyttikord/gokord v0.30.0 h1:O4LhpCMyfWcgLqziPXQgMCopb9VO7kwcZG3phblOaTA=
+github.com/nyttikord/gokord v0.30.0/go.mod h1:Lhk268VlZ1W6Pb3kYnlU9bIuTCioaumedjHdtw1sxck=
github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=
github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
@@ -72,6 +76,8 @@ github.com/redis/go-redis/v9 v9.12.0 h1:XlVPGlflh4nxfhsNXPA8Qp6EmEfTo0rp8oaBzPip
github.com/redis/go-redis/v9 v9.12.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=
github.com/redis/go-redis/v9 v9.12.1 h1:k5iquqv27aBtnTm2tIkROUDp8JBXhXZIVu1InSgvovg=
github.com/redis/go-redis/v9 v9.12.1/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=
+github.com/redis/go-redis/v9 v9.13.0 h1:PpmlVykE0ODh8P43U0HqC+2NXHXwG+GUtQyz+MPKGRg=
+github.com/redis/go-redis/v9 v9.13.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
@@ -131,4 +137,6 @@ gorm.io/driver/postgres v1.6.0 h1:2dxzU8xJ+ivvqTRph34QX+WrRaJlmfyPqXmoGVjMBa4=
gorm.io/driver/postgres v1.6.0/go.mod h1:vUw0mrGgrTK+uPHEhAdV4sfFELrByKVGnaVRkXDhtWo=
gorm.io/gorm v1.30.1 h1:lSHg33jJTBxs2mgJRfRZeLDG+WZaHYCk3Wtfl6Ngzo4=
gorm.io/gorm v1.30.1/go.mod h1:8Z33v652h4//uMA76KjeDH8mJXPm1QNCYrMeatR0DOE=
+gorm.io/gorm v1.30.3 h1:QiG8upl0Sg9ba2Zatfjy0fy4It2iNBL2/eMdvEkdXNs=
+gorm.io/gorm v1.30.3/go.mod h1:8Z33v652h4//uMA76KjeDH8mJXPm1QNCYrMeatR0DOE=
honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las=
diff --git a/main.go b/main.go
index 93b75d7..facf243 100644
--- a/main.go
+++ b/main.go
@@ -13,8 +13,8 @@ import (
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/cmd"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
"github.com/joho/godotenv"
+ discordgo "github.com/nyttikord/gokord"
)
var (
diff --git a/user/level.go b/user/level.go
index b859268..be7d212 100644
--- a/user/level.go
+++ b/user/level.go
@@ -9,7 +9,7 @@ import (
"git.anhgelus.world/anhgelus/les-copaings-bot/exp"
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
func onNewLevel(dg *discordgo.Session, m *discordgo.Member, level uint) {
diff --git a/user/xp.go b/user/xp.go
index d116c56..45080ea 100644
--- a/user/xp.go
+++ b/user/xp.go
@@ -8,7 +8,7 @@ import (
"git.anhgelus.world/anhgelus/les-copaings-bot/exp"
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/logger"
- "github.com/bwmarrin/discordgo"
+ discordgo "github.com/nyttikord/gokord"
)
type cXP struct {