Added !source command

This commit is contained in:
Eduard Urbach 2018-03-15 18:01:17 +01:00
parent 3bab260551
commit 6fedad7475

View File

@ -55,6 +55,11 @@ func OnMessageCreate(s *discordgo.Session, msg *discordgo.MessageCreate) {
return
}
if msg.Content == "!source" {
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
}
if strings.HasPrefix(msg.Content, "!s ") {
term := msg.Content[len("!s "):]
users, animes, posts, threads, tracks, characters := arn.Search(term, 3, 3, 3, 3, 3, 3)