':type args: TestConfig'

def write_bot(self, args):

    message = self.format_title()
    output = self.format_block()
    docs = self.find_docs()
    if self.messages:
        verified = all((((m.confidence or 0) >= 50) for m in self.messages))
    else:
        verified = False
    bot_data = dict(verified=verified, docs=docs, results=[dict(message=message, output=output)])
    path = self.create_path('bot', '.json')
    if args.explain:
        return
    with open(path, 'w') as bot_fd:
        json.dump(bot_data, bot_fd, indent=4, sort_keys=True)
        bot_fd.write('\n')
