utilitas 2001.1.76 → 2001.1.78

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/alan.mjs CHANGED
@@ -1316,7 +1316,7 @@ const talk = async (request, options = {}) => {
1316
1316
  request && response && session.messages.push(chat);
1317
1317
  await setSession(sessionId, session, options);
1318
1318
  // tts
1319
- if ((options?.tts || session?.config?.tts)
1319
+ if ((options?.tts || session?.config?.tts) && response
1320
1320
  && Object.values(msgs).find(x => !x.audio?.length)) {
1321
1321
  await ignoreErrFunc(async () => {
1322
1322
  const ttsAi = await getAi(null, { select: { audio: true, fast: true } });
package/lib/bot.mjs CHANGED
@@ -99,6 +99,7 @@ export {
99
99
  _NEED,
100
100
  EMOJI_THINKING,
101
101
  MESSAGE_LENGTH_LIMIT,
102
+ BOT,
102
103
  end,
103
104
  init,
104
105
  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": "2001.1.76",
4
+ "version": "2001.1.78",
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": "2001.1.76",
4
+ "version": "2001.1.78",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",