diff options
| author | William Hergès <william@herges.fr> | 2025-09-27 18:23:27 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-27 18:23:27 +0200 |
| commit | b1d3bca64702e66b5ecfe5c9ea5f43aa9dc1d1e6 (patch) | |
| tree | 67474ed704f529fe4941c179b7697b54099cc326 /commands/credits.go | |
| parent | c46d1c34a29b10dac2a059b9d78e99a3d5d76f96 (diff) | |
| parent | cfdba5f417bb31aac564d13becc09874f17d075d (diff) | |
Merge branch 'main' into feat/xp-boostfeat/xp-boost
Diffstat (limited to 'commands/credits.go')
| -rw-r--r-- | commands/credits.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/commands/credits.go b/commands/credits.go index f0a8c46..340ea57 100644 --- a/commands/credits.go +++ b/commands/credits.go @@ -3,17 +3,18 @@ package commands import ( "github.com/anhgelus/gokord" "github.com/anhgelus/gokord/cmd" - "github.com/anhgelus/gokord/logger" - discordgo "github.com/nyttikord/gokord" + "github.com/nyttikord/gokord/bot" + "github.com/nyttikord/gokord/event" ) -func Credits(_ *discordgo.Session, i *discordgo.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) { +func Credits(s bot.Session, _ *event.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) { 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>)" + msg += "Utilise :\n- [anhgelus/gokord](<https://github.com/anhgelus/gokord>)\n" + msg += "- [Inter](<https://github.com/rsms/inter>)" err := resp.SetMessage(msg).Send() if err != nil { - logger.Alert("commands/credits.go - Sending credits", err.Error(), "guild_id", i.GuildID) + s.Logger().Error("sending credits", "error", err) } } |
