add ability to give up

This commit is contained in:
Scott Kiesel 2020-03-26 15:48:06 -04:00
parent 6c27e0cafd
commit 788e6bdb4a
1 changed files with 5 additions and 0 deletions

View File

@ -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