def __init__(self):
try:
with open(self.AQBOT_CONF) as f:
config = json.load(f)
except IOError:
exit(1)
except:
exit(1)
try:
for network in config['networks']:
for channel in network['channels']:
worker = mp.Process(target=self._connect, args=(network, channel,))
worker.start()
except:
exit(1)
评论列表
文章目录