Added !source command
This commit is contained in:
parent
3bab260551
commit
6fedad7475
@ -55,6 +55,11 @@ func OnMessageCreate(s *discordgo.Session, msg *discordgo.MessageCreate) {
|
|||||||
return
|
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 ") {
|
if strings.HasPrefix(msg.Content, "!s ") {
|
||||||
term := msg.Content[len("!s "):]
|
term := msg.Content[len("!s "):]
|
||||||
users, animes, posts, threads, tracks, characters := arn.Search(term, 3, 3, 3, 3, 3, 3)
|
users, animes, posts, threads, tracks, characters := arn.Search(term, 3, 3, 3, 3, 3, 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user