txlyre 6 months ago
parent
commit
ed1bbd303a
1 changed files with 5 additions and 4 deletions
  1. 5 4
      commands.py

+ 5 - 4
commands.py

@@ -38,6 +38,7 @@ from actions import (
     disable_markov,
     set_markov_options,
     get_markov_option,
+    markov_say,
 )
 from utils import (
     make_temporary_filename,
@@ -289,13 +290,13 @@ async def markov_handler(bot, event, command):
         except:
             await event.reply("Ошибка!!!!!")
     elif command.args[0] == "say":
-        await bot.__markov_say(bot, peer_id)
+        await markov_say(bot, peer_id)
     elif command.args[0] == "reply":
-        await bot.__markov_say(bot, peer_id, reply_to=peer_id)
+        await markov_say(bot, peer_id, reply_to=peer_id)
     elif command.args[0] == "is_ready":
-        await event.reply(str(bot.__markov.is_ready))
+        await event.reply(str(bot.markov.is_ready))
     elif command.args[0] == "corpus_size":
-        await event.reply(str(len(bot.__markov.corpus)))
+        await event.reply(str(len(bot.markov.corpus)))
     else:
         await event.reply("Некорректный синтаксис команды!!!")