|
@@ -6,6 +6,7 @@ import requests
|
|
|
import json
|
|
|
import sys
|
|
|
import os
|
|
|
+import asyncio
|
|
|
|
|
|
logging.basicConfig(filename=config.log_file, level=logging.INFO)
|
|
|
|
|
@@ -63,7 +64,7 @@ try:
|
|
|
if __name__ == '__main__':
|
|
|
xmpp = CommandBot(config.user, config.passwd)
|
|
|
xmpp.connect()
|
|
|
- xmpp.process(forever=True)
|
|
|
+ asyncio.get_event_loop().run_forever()
|
|
|
except KeyboardInterrupt: # Catch ctrl-alt-del
|
|
|
print('\nExiting program...')
|
|
|
sys.exit()
|