Merge branch 'master' of moriya.zapto.org:PDBA/bot-base
This commit is contained in:
commit
c8922cddca
5
main.py
5
main.py
@ -8,6 +8,7 @@ import locale
|
|||||||
import logging
|
import logging
|
||||||
import logging.config
|
import logging.config
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
@ -491,6 +492,8 @@ if __name__ == "__main__":
|
|||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
t = loop.create_unix_server(Communication,
|
t = loop.create_unix_server(Communication,
|
||||||
path=os.path.join("/tmp", os.path.dirname(os.path.realpath(__file__)) + ".sock"))
|
path=os.path.join("/tmp", os.path.dirname(os.path.realpath(__file__)) + ".sock"))
|
||||||
loop.run_until_complete(t)
|
if not sys.platform == "win32":
|
||||||
|
loop.run_until_complete(t)
|
||||||
|
|
||||||
loop.create_task(start_bot())
|
loop.create_task(start_bot())
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
|
Loading…
Reference in New Issue
Block a user