notify.moe/bots/discord/commands/Source.go
2024-03-12 12:40:01 +01:00

22 lines
528 B
Go

package commands
import (
"github.com/akyoto/color"
"github.com/bwmarrin/discordgo"
)
// Source shows the link for the Discord bot's source code.
func Source(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
if msg.Content != "!source" {
return false
}
_, err := s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" B-baaaaaaaka! Y..you...you want to...TOUCH MY CODE?!\n\nhttps://git.akyoto.dev/web/notify.moe/src/branch/main/bots/discord")
if err != nil {
color.Red(err.Error())
}
return true
}