aboutsummaryrefslogtreecommitdiff
path: root/commands/credits.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/credits.go')
-rw-r--r--commands/credits.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/credits.go b/commands/credits.go
index 21dd8c7..a27d2cc 100644
--- a/commands/credits.go
+++ b/commands/credits.go
@@ -3,7 +3,7 @@ package commands
import (
"context"
- "github.com/anhgelus/gokord"
+ "git.anhgelus.world/anhgelus/les-copaings-bot/common"
"github.com/nyttikord/gokord/bot"
"github.com/nyttikord/gokord/interaction"
)
@@ -11,8 +11,8 @@ import (
func Credits(ctx context.Context, dg bot.Session, i *interaction.ApplicationCommand) {
msg := "**Les Copaings**, le bot gérant les serveurs privés de [anhgelus](<https://anhgelus.world/>).\n"
msg += "Code source : <https://git.anhgelus.world/anhgelus/les-copaings-bot>\n\n"
- msg += "Host du bot : " + gokord.BaseCfg.GetAuthor() + ".\n\n"
- msg += "Utilise :\n- [anhgelus/gokord](<https://github.com/anhgelus/gokord>)\n"
+ msg += "Host du bot : " + common.GetAuthor(ctx) + ".\n\n"
+ msg += "Utilise :\n- [nyttikord/gokord](<https://github.com/nyttikord/gokord>)\n"
msg += "- [Inter](<https://github.com/rsms/inter>)"
resp := interaction.NewMessageResponse().Message(msg).Response()
err := dg.InteractionAPI().Respond(i.Interaction, resp).Do(ctx)