halbot 1991.2.18 → 1991.2.19

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { alan, bot, dbio, image, shot, speech, utilitas, vision } from 'utilitas';
1
+ import { alan, bot, image, shot, speech, utilitas, vision } from 'utilitas';
2
2
  import { parse } from 'csv-parse/sync';
3
3
 
4
4
  await utilitas.locate(utilitas.__(import.meta.url, 'package.json'));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "halbot",
3
3
  "description": "Just another `ChatGPT` / `Gemini` / `Mistral (by ollama)` Telegram bob, which is simple design, easy to use, extendable and fun.",
4
- "version": "1991.2.18",
4
+ "version": "1991.2.19",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -33,9 +33,9 @@ const action = async (ctx, next) => {
33
33
  )) { return; }
34
34
  [lastSent, lastMsg] = [curTime, curMsg];
35
35
  const cmd = ctx.session.context?.cmd;
36
- if (options?.final && cmd) {
37
- extra.buttons = [{ label: `End context: \`${cmd}\``, text: '/clear' }];
38
- };
36
+ options?.final && cmd && (extra.buttons = [{
37
+ label: `❎ End context: \`${cmd}\``, text: '/clear',
38
+ }]);
39
39
  return await ctx.ok(curMsg, { md: true, ...options || {}, ...extra });
40
40
  };
41
41
  await ok(onProgress);