#!/usr/bin/env python3
"""bullpen-participant <nick> <persona-file> <other,participants>"""
import os
import sys
sys.path[:0] = [p for p in (os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "lib"), "/usr/local/lib/bullpen") if os.path.isdir(p)]
import bullpen_participant as bp
import bullpen_config as cfg
nick = sys.argv[1]
persona = open(sys.argv[2]).read().strip()
others = sys.argv[3].split(",") if len(sys.argv) > 3 and sys.argv[3] else []
bp.run(nick, persona, others, cfg.PROXY, cfg.MODEL)
