From 79ab2daee78129edd84f8f3233f8d482005159b0 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 21 Oct 2017 20:49:14 +0200 Subject: [PATCH] Updated discord bot --- bots/discord/discord.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bots/discord/discord.go b/bots/discord/discord.go index f656a56f..4c9c974a 100644 --- a/bots/discord/discord.go +++ b/bots/discord/discord.go @@ -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)