mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +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
|
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"
|
||||||
|
|
Loading…
Reference in a new issue