aboutsummaryrefslogtreecommitdiff
path: root/commands/credits.go
blob: d5aa42ecb4f8d4f5b3183925676ebaa45f339490 (plain)
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
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.24\nLicence : AGPLv3",
			Color:       utils.Success,
			Fields: []*discordgo.MessageEmbedField{
				{
					Name:   "anhgelus/gokord",
					Value:  "v0.6.3 - MPL 2.0",
					Inline: true,
				},
				{
					Name:   "bwmarrin/discordgo",
					Value:  "v0.28.1 - BSD-3-Clause",
					Inline: true,
				},
				{
					Name:   "redis/go-redis/v9",
					Value:  "v9.8.0 - BSD-2-Clause",
					Inline: true,
				},
			},
		},
	}).Send()
	if err != nil {
		utils.SendAlert("commands/credits.go - Sending credits", err.Error(), "guild_id", i.GuildID)
	}
}