1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

many things

This commit is contained in:
Steffo 2018-08-08 22:13:12 +02:00
parent 483591f633
commit 5fbff785bf

View file

@ -577,7 +577,7 @@ def cmd_markov(bot: Bot, update: Update):
return
try:
_, first_word = update.message.text.split(" ", 1)
except IndexError:
except ValueError:
sentence = model.make_sentence(tries=1000)
if sentence is None:
bot.send_message(update.message.chat.id, "⚠ Complimenti! Hai vinto la lotteria di Markov!\n"