From 7d72ddb79a53eb817ee2ce300a8ec7bedc2ce486 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 23 Nov 2019 16:54:40 +0900 Subject: [PATCH] Improved answers --- bots/discord/commands/Did.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bots/discord/commands/Did.go b/bots/discord/commands/Did.go index 4a3173a0..7f4962da 100644 --- a/bots/discord/commands/Did.go +++ b/bots/discord/commands/Did.go @@ -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 {