From 7bd82c943cccb4efcf23b98f942a105ca5c87a27 Mon Sep 17 00:00:00 2001 From: Udit Karode Date: Sat, 8 Apr 2023 11:03:30 +0530 Subject: [PATCH] fix: use string instead of `FmtString` --- src/ai.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ai.ts b/src/ai.ts index 7145556..3087b5a 100644 --- a/src/ai.ts +++ b/src/ai.ts @@ -37,11 +37,12 @@ export async function ai(ctx: Context, prompt: string) { ); chats[chatId].res = bingRes; - let tgRes: FmtString; + let tgRes: FmtString | string; if (bingRes.text === prompt) { // Bing Chat often replies with the exact prompt // in case it's unable to continue the conversation. - tgRes = fmt`Something went wrong. Starting a new chat with /newchat is recommended.`; + tgRes = + "Something went wrong. Starting a new chat with /newchat is recommended."; } else { tgRes = transformBingResponse(bingRes); }