utilitas 1995.3.13 → 1995.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/bot.mjs +3 -3
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/bot.mjs
CHANGED
|
@@ -821,9 +821,9 @@ const subconscious = [{
|
|
|
821
821
|
}
|
|
822
822
|
}, {
|
|
823
823
|
run: true, priority: 8960, name: 'text-to-speech', func: async (ctx, next) => {
|
|
824
|
-
if (!ctx._.speech?.tts || !ctx.tts || (ctx.
|
|
825
|
-
|
|
826
|
-
|
|
824
|
+
if (!ctx._.speech?.tts || !ctx.tts || (ctx.chatType === PRIVATE
|
|
825
|
+
? (ctx.session.config?.tts === false)
|
|
826
|
+
: (ctx.session.config?.tts !== true))) { return await next(); }
|
|
827
827
|
await ctx.speech(ctx.tts);
|
|
828
828
|
await next();
|
|
829
829
|
}, help: lines([
|
package/lib/manifest.mjs
CHANGED