From 788e6bdb4aa8a9595c59c4ae2dbd3301dd856e47 Mon Sep 17 00:00:00 2001 From: Scott Kiesel Date: Thu, 26 Mar 2020 15:48:06 -0400 Subject: [PATCH] add ability to give up --- plugins/impossible/impossible.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/impossible/impossible.go b/plugins/impossible/impossible.go index a508b97..488a69b 100644 --- a/plugins/impossible/impossible.go +++ b/plugins/impossible/impossible.go @@ -90,6 +90,11 @@ func (p *Impossible) message(c bot.Connector, kind bot.Kind, message msg.Message p.b.Send(c, bot.Message, message.Channel, fmt.Sprintf("You guessed the last impossible wikipedia article: \"%s\"", p.title)) for !p.refreshImpossible() { } + } else if strings.Contains(lowercase, "i friggin give up") { + messaged = true + p.b.Send(c, bot.Message, message.Channel, fmt.Sprintf("You're a failure the last impossible wikipedia article: \"%s\"", p.title)) + for !p.refreshImpossible() { + } } return messaged