2018-07-10 15:46:17 +00:00
|
|
|
package commands
|
|
|
|
|
|
|
|
import (
|
2019-06-05 05:56:12 +00:00
|
|
|
"github.com/akyoto/color"
|
2018-07-10 15:46:17 +00:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
|
2024-03-12 11:40:01 +00:00
|
|
|
_, 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")
|
2019-06-05 05:56:12 +00:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
color.Red(err.Error())
|
|
|
|
}
|
|
|
|
|
2018-07-10 15:46:17 +00:00
|
|
|
return true
|
|
|
|
}
|