Browse Source

disable forever running

blezz-tech 4 weeks ago
parent
commit
0fb27be4ae
1 changed files with 1 additions and 3 deletions
  1. 1 3
      handlers/main.py

+ 1 - 3
handlers/main.py

@@ -3,7 +3,6 @@ from EchoBot import JabberBot
 import logging
 from argparse import ArgumentParser
 import importlib
-import asyncio
 
 if __name__ == '__main__':
     # Setup the command line arguments.
@@ -54,8 +53,7 @@ if __name__ == '__main__':
         # Ctrl+C, Ctrl+Z
         # systemctl stop с последующей отправкой кодов и корректной остановкой программы
 
-        # bot.stop()
-        asyncio.get_event_loop().run_forever()
+        bot.stop()
     else:
         print("Select using -n flag for select availible bot from botlist:\n")
         for botname in config.BOTLIST: