Updated discord bot
This commit is contained in:
parent
066ce01c12
commit
79ab2daee7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user