generate 3 markov sentences (fix)

This commit is contained in:
bakatrouble 2019-11-27 23:34:08 +03:00
parent 13456f5e0d
commit f4149cabd4

View File

@ -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(),