liven up the rejection replies
This commit is contained in:
parent
6d10fae743
commit
186450d1c7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue