Skip to content

Commit

Permalink
fixed a bug in tts
Browse files Browse the repository at this point in the history
  • Loading branch information
Leask committed Jun 1, 2024
1 parent d136513 commit 1fcadc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ const subconscious = [{
return should;
};
ctx.shouldSpeech = async text => {
text = isSet(text, true) ? (text || '') : ctx.txt;
text = isSet(text, true) ? (text || '') : ctx.tts;
const should = ctx._.speech?.tts && (ctx.chatType === PRIVATE
? ctx.session.config?.tts !== false
: ctx.session.config?.tts === true
Expand Down

0 comments on commit 1fcadc5

Please sign in to comment.