aboutsummaryrefslogtreecommitdiff
path: root/commands/credits.go
blob: 21dd8c7ed42e58d0402e99cc18ada7b5bc5765ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package commands

import (
	"context"

	"github.com/anhgelus/gokord"
	"github.com/nyttikord/gokord/bot"
	"github.com/nyttikord/gokord/interaction"
)

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 += "- [Inter](<https://github.com/rsms/inter>)"
	resp := interaction.NewMessageResponse().Message(msg).Response()
	err := dg.InteractionAPI().Respond(i.Interaction, resp).Do(ctx)
	if err != nil {
		bot.Logger(ctx).Error("sending credits", "error", err)
	}
}