From f4149cabd47df39e451f16cd7119158d6d465465 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 27 Nov 2019 23:34:08 +0300 Subject: [PATCH] generate 3 markov sentences (fix) --- bots/modules/cyberlina.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/cyberlina.py b/bots/modules/cyberlina.py index 4a9f8b5..1d11e32 100644 --- a/bots/modules/cyberlina.py +++ b/bots/modules/cyberlina.py @@ -96,7 +96,7 @@ class CyberLinaBotModuleConfig(TelegramBotModuleConfig): seed(os.urandom(128)) markov_msg = '' for i in range(3): - markov_msg += self.markovify.make_short_sentence(tries=100) + ' ' + markov_msg += (self.markovify.make_sentence(tries=100) or '') + ' ' results = [ InlineQueryResultArticle( id=uuid4(),