Updated discord bot

This commit is contained in:
Eduard Urbach 2017-10-21 20:49:14 +02:00
parent 066ce01c12
commit 79ab2daee7

View File

@ -95,6 +95,11 @@ func onMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
return
}
if strings.HasPrefix(m.Content, "!play ") {
s.UpdateStatus(0, strings.Split(m.Content, " ")[1])
return
}
if strings.HasPrefix(m.Content, "!s ") {
term := m.Content[len("!s "):]
users, animes, posts, threads := arn.Search(term, 3, 3, 3, 3)