mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
many things
This commit is contained in:
parent
483591f633
commit
5fbff785bf
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue