Skip to content

Commit

Permalink
Frozen @ Thu Dec 28 04:09:14 EST 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
Leask committed Dec 28, 2023
1 parent 7c2dab4 commit c4d644b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skills/70_chat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const action = async (ctx, next) => {
});
msgs[n] = ctx.session.config?.render === false
? resp.text : resp.rendered;
tts[n] = msgs[n].split('\n').some(x => /^```/.test(x)) ? '' : resp.spoken;
tts[n] = ctx.selectedAi.length === 1
&& !msgs[n].split('\n').some(x => /^```/.test(x))
? resp.spoken : '';
// extra.buttons = resp?.suggestedResponses?.map?.(label => ({
// label, text: `/bing@${ctx.botInfo.username} ${label}`,
// }));
Expand Down

0 comments on commit c4d644b

Please sign in to comment.