liven up the rejection replies

This commit is contained in:
Tomáš Mládek 2019-05-18 14:33:06 +02:00
parent 6d10fae743
commit 186450d1c7

View file

@ -265,7 +265,10 @@ class DelojzaBot:
if message.chat.title not in self.protected_chats: if message.chat.title not in self.protected_chats:
self.logger.info("Ignoring {} in chat {} due to protected hashtags: {}..." self.logger.info("Ignoring {} in chat {} due to protected hashtags: {}..."
.format(urls, message.chat.title, 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 return
self.last_hashtags = None self.last_hashtags = None