18 lines
412 B
Go
Raw Normal View History

2018-07-10 15:46:17 +00:00
package commands
import (
"strings"
"github.com/bwmarrin/discordgo"
)
// AnimeList shows the link for the anime list of a user.
func AnimeList(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
2018-07-10 16:04:58 +00:00
if !strings.HasPrefix(msg.Content, "!animelist ") {
2018-07-10 15:46:17 +00:00
return false
}
s.ChannelMessageSend(msg.ChannelID, "https://notify.moe/+"+strings.Split(msg.Content, " ")[1]+"/animelist/watching")
return true
}