Refactor bot command invocation

This commit is contained in:
2018-07-11 00:46:17 +09:00
parent 957de3856b
commit 009449316e
7 changed files with 183 additions and 100 deletions

View File

@ -0,0 +1,15 @@
package commands
import (
"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
}
s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" B-baaaaaaaka! Y..you...you want to...TOUCH MY CODE?!\n\nhttps://github.com/animenotifier/notify.moe/tree/go/bots/discord")
return true
}