From 8755225e4f8390d841e8658f34b703093f0f3376 Mon Sep 17 00:00:00 2001 From: Zane Whitfield Date: Thu, 30 Nov 2023 20:02:54 -0800 Subject: [PATCH] WIP add json logic --- packages/cli/src/commands/doctor/ask.ts | 5 ++++- .../{BentonSans Regular Regular.otf => heroku.otf} | Bin 2 files changed, 4 insertions(+), 1 deletion(-) rename packages/cli/src/lib/doctor/font/{BentonSans Regular Regular.otf => heroku.otf} (100%) diff --git a/packages/cli/src/commands/doctor/ask.ts b/packages/cli/src/commands/doctor/ask.ts index b4f947c609..6860f64147 100644 --- a/packages/cli/src/commands/doctor/ask.ts +++ b/packages/cli/src/commands/doctor/ask.ts @@ -2,6 +2,8 @@ import color from '@heroku-cli/color' import {Command, flags} from '@heroku-cli/command' import * as Heroku from '@heroku-cli/schema' import {Args, ux} from '@oclif/core' +// const Font = require('ascii-art-font') +// Font.fontPath = '../../../lib/doctor/font' export default class DoctorAsk extends Command { static description = 'recieve responses from HerokAI' @@ -21,10 +23,11 @@ export default class DoctorAsk extends Command { const {body: user} = await this.heroku.get('/account', {retryAuth: false}) const userName = (user && user.name) ? ` ${user.name}` : '' const herokAIResponse = `${color.heroku(`Hi${userName},`)} \n\nI'm just a concept right now. Remember?` + const herokAIJsonResponse = `Hi${userName}, I'm just a concept right now. Remember?` const dialogue = { question: args.question, - response: herokAIResponse, + response: herokAIJsonResponse, } if (flags.json) { diff --git a/packages/cli/src/lib/doctor/font/BentonSans Regular Regular.otf b/packages/cli/src/lib/doctor/font/heroku.otf similarity index 100% rename from packages/cli/src/lib/doctor/font/BentonSans Regular Regular.otf rename to packages/cli/src/lib/doctor/font/heroku.otf