-
Notifications
You must be signed in to change notification settings - Fork 0
/
contribute.go
47 lines (42 loc) · 2.06 KB
/
contribute.go
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
package main
import "github.com/bwmarrin/discordgo"
var ContributeCommand = &discordgo.ApplicationCommand{
Name: "contribute",
Description: "Display contribute information",
}
func Contribute(s *discordgo.Session, i *discordgo.InteractionCreate) {
log.Info("command executed", "command", ContributeCommand.Name)
embed := discordgo.MessageEmbed{
Title: "Contribute",
Description: `This bot is open source with the [GPL-3.0 License](https://github.com/JasperSurmont/rs-drop-simulator/blob/main/LICENSE) on [GitHub](https://github.com/JasperSurmont/rs-drop-simulator).
You can file an issue or suggest a feature [here](https://github.com/JasperSurmont/rs-drop-simulator/issues).
Below is some extra info about me, the creator.`,
Fields: []*discordgo.MessageEmbedField{
{
Name: "Who I am",
Value: `I am Jasper, a computer science student from Belgium. I've been playing Runescape on-off for quite some time now, with username **Pai Sho**.`,
},
{
Name: "Why I made this bot",
Value: `I actually just wanted to increase my knowledge in the **Go** programming language. However, I never knew what to make.
Then I saw the discordgo package, and this simulator was the first thing that popped in my head. Hence, this bot was born.`,
},
{
Name: "My experience",
Value: `I've worked on many different projects (both for school and personal). These were mostly in JS/TS, Python, C(++) and Java.
This is my first _big_ Go project. That is also why an experienced Go developer might look at my code and start to vomit.
However, I'm open for any feedback or contributions, as long as we keep it civil :).`,
},
{
Name: "Contact information",
Value: `You can contact me via my email [[email protected]](mailto:[email protected]), or by opening an issue on GitHub.`,
},
},
}
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Embeds: []*discordgo.MessageEmbed{&embed},
},
})
}