1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +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 return
try: try:
_, first_word = update.message.text.split(" ", 1) _, first_word = update.message.text.split(" ", 1)
except IndexError: except ValueError:
sentence = model.make_sentence(tries=1000) sentence = model.make_sentence(tries=1000)
if sentence is None: if sentence is None:
bot.send_message(update.message.chat.id, "⚠ Complimenti! Hai vinto la lotteria di Markov!\n" bot.send_message(update.message.chat.id, "⚠ Complimenti! Hai vinto la lotteria di Markov!\n"