From 5a8da1eaeb9434a18e553a5c50490d06b54a6a1d Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 6 Aug 2025 02:22:06 +0200 Subject: build(gokord): upgrade to latest version --- commands/credits.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'commands/credits.go') diff --git a/commands/credits.go b/commands/credits.go index 0943761..cdcfe6e 100644 --- a/commands/credits.go +++ b/commands/credits.go @@ -1,17 +1,18 @@ package commands import ( - "github.com/anhgelus/gokord/utils" + "github.com/anhgelus/gokord/cmd" + "github.com/anhgelus/gokord/logger" "github.com/bwmarrin/discordgo" ) -func Credits(s *discordgo.Session, i *discordgo.InteractionCreate, optMap utils.OptionMap, resp *utils.ResponseBuilder) { +func Credits(_ *discordgo.Session, i *discordgo.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) { err := resp.AddEmbed(&discordgo.MessageEmbed{ Type: discordgo.EmbedTypeRich, Title: "Crédits", Description: "Auteur du bot : @anhgelus (https://github.com/anhgelus)\nLangage : Go 1.24\nLicence : AGPLv3", - Color: utils.Success, + Color: 0x10E6AD, Fields: []*discordgo.MessageEmbedField{ { Name: "anhgelus/gokord", @@ -31,6 +32,6 @@ func Credits(s *discordgo.Session, i *discordgo.InteractionCreate, optMap utils. }, }).Send() if err != nil { - utils.SendAlert("commands/credits.go - Sending credits", err.Error(), "guild_id", i.GuildID) + logger.Alert("commands/credits.go - Sending credits", err.Error(), "guild_id", i.GuildID) } } -- cgit v1.2.3 From d98e5704f9a3d4fd98800bbc4bd48e1b0a442d3f Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 21 Aug 2025 15:07:18 +0200 Subject: feat(credits): better message --- commands/credits.go | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) (limited to 'commands/credits.go') diff --git a/commands/credits.go b/commands/credits.go index cdcfe6e..9682d0e 100644 --- a/commands/credits.go +++ b/commands/credits.go @@ -1,36 +1,18 @@ package commands import ( + "github.com/anhgelus/gokord" "github.com/anhgelus/gokord/cmd" "github.com/anhgelus/gokord/logger" "github.com/bwmarrin/discordgo" ) func Credits(_ *discordgo.Session, i *discordgo.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) { - err := resp.AddEmbed(&discordgo.MessageEmbed{ - - Type: discordgo.EmbedTypeRich, - Title: "Crédits", - Description: "Auteur du bot : @anhgelus (https://github.com/anhgelus)\nLangage : Go 1.24\nLicence : AGPLv3", - Color: 0x10E6AD, - Fields: []*discordgo.MessageEmbedField{ - { - Name: "anhgelus/gokord", - Value: "v0.10.0 - MPL 2.0", - Inline: true, - }, - { - Name: "bwmarrin/discordgo", - Value: "v0.29.0 - BSD-3-Clause", - Inline: true, - }, - { - Name: "gorm", - Value: "v1.30.0 - MIT", - Inline: true, - }, - }, - }).Send() + msg := "**Les Copaings**, le bot gérant les serveurs privés de [anhgelus]().\n" + msg += "Code source : \n\n" + msg += "Host du bot : " + gokord.BaseCfg.GetAuthor() + "\n\n" + msg += "Utilise :\n- [anhgelus/gokord]()" + err := resp.SetMessage(msg).Send() if err != nil { logger.Alert("commands/credits.go - Sending credits", err.Error(), "guild_id", i.GuildID) } -- cgit v1.2.3 From e00f05d7c636f9a1b7a10930402cfeb9331f6631 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 21 Aug 2025 15:41:40 +0200 Subject: feat(command): fetch stats --- commands/credits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/credits.go') diff --git a/commands/credits.go b/commands/credits.go index 9682d0e..5c3c4bd 100644 --- a/commands/credits.go +++ b/commands/credits.go @@ -10,7 +10,7 @@ import ( func Credits(_ *discordgo.Session, i *discordgo.InteractionCreate, _ cmd.OptionMap, resp *cmd.ResponseBuilder) { msg := "**Les Copaings**, le bot gérant les serveurs privés de [anhgelus]().\n" msg += "Code source : \n\n" - msg += "Host du bot : " + gokord.BaseCfg.GetAuthor() + "\n\n" + msg += "Host du bot : " + gokord.BaseCfg.GetAuthor() + ".\n\n" msg += "Utilise :\n- [anhgelus/gokord]()" err := resp.SetMessage(msg).Send() if err != nil { -- cgit v1.2.3 From 30ecd60b041398390f11fccdf46444fa28690bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Thu, 4 Sep 2025 16:25:59 +0200 Subject: build(gokord): upgrade to latest nightly still use discordgo name before merging anhgelus/gokord with nyttikord/gokord --- commands/credits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/credits.go') 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) { -- cgit v1.2.3