Please don’t rely on this Gitea instance being around forever.
If any of your build scripts use my (kageru’s) projects hosted here, check my Github or IEW on Github for encoding projects. If you can’t find what you’re looking for there, tell me to migrate it.
@ -201,3 +201,34 @@ func giveAgeRole(s *discordgo.Session, m *discordgo.MessageCreate) {
}
}
}
funcgetHelpEmbed()*discordgo.MessageEmbed{
commandList:="Im Folgenden findest du eine automatisch generierte Liste aller Commands. Um herauszufinden, was sie tun, probiere sie aus oder lies den Source Code (siehe unten).\n```"
for_,command:=rangecommands{
ifcommand.Type!=CommandTypeRegex{
commandList+="- "+command.Trigger+"\n"
}
}
commandList+="```"
embed:=&discordgo.MessageEmbed{
Author:&discordgo.MessageEmbedAuthor{},
Color:0xffb90f,
Description:"__Hilfe__",
Fields:[]*discordgo.MessageEmbedField{
&discordgo.MessageEmbedField{
Name:"__Commands__",
Value:commandList,
Inline:true,
},
&discordgo.MessageEmbedField{
Name:"__Bugs__",
Value:fmt.Sprintf("Bei Fragen zum Bot, Vorschlägen, Bugs etc. wende dich bitte an <@%s> oder öffne eine Issue auf https://git.kageru.moe/kageru/discord-selphybot.",config.Admins[0]),