How to use the octobot.disclaimer.DISCLAIMER function in OctoBot

To help you get started, we’ve selected a few OctoBot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Drakkar-Software / OctoBot-Tentacles / Services / Interfaces / web_interface / controllers / terms.py View on Github external
def terms():
    return render_template("terms.html",
                           disclaimer=DISCLAIMER,
                           accepted_terms=accepted_terms())
github Drakkar-Software / OctoBot-Tentacles / Services / Interfaces / web_interface / controllers / commands.py View on Github external
def commands(cmd=None):
    if cmd == "restart":
        restart_bot()
        return jsonify("Success")

    elif cmd == "stop":
        stop_bot()
        return jsonify("Success")

    return render_template('commands.html',
                           cmd=cmd,
                           metrics_enabled=get_metrics_enabled(),
                           disclaimer=DISCLAIMER)
github Drakkar-Software / OctoBot / octobot / cli.py View on Github external
def _log_terms_if_unaccepted(config, logger):
    if not accepted_terms(config):
        logger.info("*** Disclaimer ***")
        for line in DISCLAIMER:
            logger.info(line)
        logger.info("... Disclaimer ...")
    else:
        logger.info("Disclaimer accepted by user.")