liven up the rejection replies

feature-unify_handlers
Tomáš Mládek 2019-05-18 14:33:06 +02:00
parent 6d10fae743
commit 186450d1c7
1 changed files with 4 additions and 1 deletions

View File

@ -265,7 +265,10 @@ class DelojzaBot:
if message.chat.title not in self.protected_chats:
self.logger.info("Ignoring {} in chat {} due to protected hashtags: {}..."
.format(urls, message.chat.title, hashtags))
message.reply_text(choice(["No.", "Nein", "Nope", ":(", "Error: Cannot.", "Fail."]))
replies = ["Nein", "Nope", ":(", "Error: Cannot.",
"Error: {}".format(self.markov.make_sentence() if self.markov else "Cannot."),
"Failed: {}".format(self.markov.make_sentence() if self.markov else "Cannot.")]
message.reply_text(choice(replies))
return
self.last_hashtags = None