1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
package commands
import (
"github.com/anhgelus/gokord/utils"
"github.com/bwmarrin/discordgo"
)
func Credits(s *discordgo.Session, i *discordgo.InteractionCreate) {
resp := utils.ResponseBuilder{C: s, I: i}
err := resp.Embeds([]*discordgo.MessageEmbed{
{
Type: discordgo.EmbedTypeRich,
Title: "Crédits",
Description: "Auteur du bot : @anhgelus (https://github.com/anhgelus)\nLangage : Go 1.22\nLicence : AGPLv3",
Color: utils.Success,
Fields: []*discordgo.MessageEmbedField{
{
Name: "anhgelus/gokord",
Value: "v0.3.0 - MPL 2.0",
Inline: true,
},
{
Name: "bwmarrin/discordgo",
Value: "v0.28.1 - BSD-3-Clause",
Inline: true,
},
{
Name: "pelletier/go-toml/v2",
Value: "v2.2.1 - MIT",
Inline: true,
},
{
Name: "redis/go-redis/v9",
Value: "v9.5.1 - BSD-2-Clause",
Inline: true,
},
{
Name: "gorm.io/gorm",
Value: "v1.25.9 - MIT",
Inline: true,
},
{
Name: "gorm.io/driver/postgres",
Value: "v1.5.7 - MIT",
Inline: true,
},
{
Name: "other",
Value: "Et leurs dépendances !",
Inline: true,
},
},
},
}).Send()
if err != nil {
utils.SendAlert("commands/credits.go - Sending credits", err.Error(), "guild_id", i.GuildID)
}
}
|