|
@@ -290,9 +290,15 @@ async def markov_handler(bot, event, command):
|
|
|
except:
|
|
|
await event.reply("Ошибка!!!!!")
|
|
|
elif command.args[0] == "say":
|
|
|
- await markov_say(bot, peer_id)
|
|
|
+ if not bot.markov.is_ready:
|
|
|
+ await event.reply("Not ready:(")
|
|
|
+ else:
|
|
|
+ await markov_say(bot, peer_id)
|
|
|
elif command.args[0] == "reply":
|
|
|
- await markov_say(bot, peer_id, reply_to=peer_id)
|
|
|
+ if not bot.markov.is_ready:
|
|
|
+ await event.reply("Not ready:(")
|
|
|
+ else:
|
|
|
+ await markov_say(bot, peer_id, reply_to=peer_id)
|
|
|
elif command.args[0] == "is_ready":
|
|
|
await event.reply(str(bot.markov.is_ready))
|
|
|
elif command.args[0] == "corpus_size":
|