def py_user_login(login, password, eula=None): if login is None: login = config.get("login") status = connection.authorize(login, password, eula) if type(status) is str: config.set("login", login) return login, status return status
def py_get_collect_key(): return config.get("collect_key", FishEvent.collect_key)
def py_get_action_key(): return config.get("action_key", FishEvent.action_key)
def py_get_user_login(): return config.get("login")
def py_get_https(): return config.get("https", 1)
def py_get_port(): return config.get("port")
def py_get_host(): return config.get("host")
def init(): FishEvent.subscribe() FishEvent.jitter = config.get("jitter", True) FishEvent.action_key = config.get("action_key", 'e') FishEvent.collect_key = config.get("collect_key", 'r')