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/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.session.config?.tts === false)) {
825
- return await next();
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
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1995.3.13",
4
+ "version": "1995.3.14",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1995.3.13",
4
+ "version": "1995.3.14",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",