@dallinger.command()<EOL>@click.option("<STR_LIT>", default=None, help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", default=None, help="<STR_LIT>")<EOL>def bot(app, debug):
if debug is None:<EOL><INDENT>verify_id(None, None, app)<EOL><DEDENT>(id, tmp) = setup_experiment(log)<EOL>if debug:<EOL><INDENT>url = debug<EOL><DEDENT>else:<EOL><INDENT>heroku_app = HerokuApp(dallinger_uid=app)<EOL>worker = generate_random_id()<EOL>hit = generate_random_id()<EOL>assignment = generate_random_id()<EOL>ad_url = "<STR_LIT>".format(heroku_app.url)<EOL>ad_parameters = "<STR_LIT>"<EOL>ad_parameters = ad_parameters.format(assignment, hit, worker)<EOL>url = "<STR_LIT>".format(ad_url, ad_parameters)<EOL><DEDENT>bot = bot_factory(url)<EOL>bot.run_experiment()<EOL>
Run the experiment bot.