diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-22 21:53:29 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-22 21:53:29 +0100 |
| commit | 3e65b4f6281ddc4039a27a62428db8a95ffc3677 (patch) | |
| tree | b1005f908be45aa47da48b604f3863ef23a3d7ea /commands/credits.go | |
| parent | 8255a2e51454049f3ac1532f6e1125f528691c37 (diff) | |
refactor(): completely remove old gokord and finish to update everything to use contexts
Diffstat (limited to 'commands/credits.go')
| -rw-r--r-- | commands/credits.go | 6 |
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) |
