halbot 1993.2.92 → 1993.2.94

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.
Files changed (2) hide show
  1. package/lib/hal.mjs +1 -1
  2. package/package.json +2 -2
package/lib/hal.mjs CHANGED
@@ -256,7 +256,7 @@ const memorize = async (ctx) => {
256
256
  const received = ctx.update;
257
257
  const received_text = ctx.txt || ''; // ATTACHMENTS
258
258
  const id = received.update_id;
259
- const response = utilitas.lastItem(ctx.done.filter(x => x.text)) || {};
259
+ const response = utilitas.lastItem(ctx.done.filter(x => x?.text)) || {};
260
260
  const response_text = response?.text || '';
261
261
  const collected = ctx.collected.filter(x => String.isString(x.content));
262
262
  const distilled = compact(bot.lines([
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "halbot",
3
3
  "description": "Just another `ChatGPT` / `Gemini` / `Claude` / `Azure` / `Jina` / `Ollama` Telegram bob, which is simple design, easy to use, extendable and fun.",
4
- "version": "1993.2.92",
4
+ "version": "1993.2.94",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -51,7 +51,7 @@
51
51
  "pgvector": "^0.2.0",
52
52
  "telegraf": "^4.16.3",
53
53
  "tesseract.js": "^6.0.1",
54
- "utilitas": "^1999.1.63",
54
+ "utilitas": "^1999.1.64",
55
55
  "youtube-transcript": "^1.2.1"
56
56
  }
57
57
  }