txlyre hace 1 mes
padre
commit
e787f3d626
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      commands.py

+ 5 - 0
commands.py

@@ -667,6 +667,11 @@ async def say_handler(bot, event, command):
           init_state = command.args_string
 
         try:
+            try:
+                await event.delete()
+            except:
+                pass
+
             await markov_say(bot, get_peer_id(event.peer_id), init_state=init_state)
         except:
             await event.reply("Ошибка :(")