Improved answers

This commit is contained in:
Eduard Urbach 2019-11-23 16:54:40 +09:00
parent e50ce4da89
commit 7d72ddb79a
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -62,8 +62,9 @@ func Did(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
anime := results[0]
animeList := user.AnimeList()
listItem := animeList.Find(anime.ID)
if animeList.Contains(anime.ID) {
if listItem != nil && listItem.Status == arn.AnimeListStatusCompleted {
_, err := s.ChannelMessageSend(msg.ChannelID, fmt.Sprintf("Yes, %s has watched %s.", user.Nick, anime.Title.Canonical))
if err != nil {