halbot 1990.1.51 → 1990.1.52

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "halbot",
3
3
  "description": "Just another ChatGPT/Bing Chat Telegram bob, which is simple design, easy to use, extendable and fun.",
4
- "version": "1990.1.51",
4
+ "version": "1990.1.52",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "jsdom": "^21.1.1",
40
40
  "mysql2": "^3.2.0",
41
41
  "telegraf": "^4.12.2",
42
- "utilitas": "^1993.3.36",
42
+ "utilitas": "^1993.3.38",
43
43
  "youtube-transcript": "^1.0.5"
44
44
  }
45
45
  }
package/skills/prompt.mjs CHANGED
@@ -9,7 +9,7 @@ const action = async (ctx, next) => {
9
9
  const prompts = bot.lines2(Object.keys(ctx.session.prompts || {}).map(
10
10
  x => bot.lines([`- /${x}`, ctx.session.prompts[x]])
11
11
  ));
12
- await ctx.paging(prompts || 'No custom prompts.');
12
+ await ctx.ok(prompts || 'No custom prompts.');
13
13
  break;
14
14
  case 'add':
15
15
  const arrText = (ctx.cmd.args || '').split('\n');
@@ -37,7 +37,7 @@ const action = async (ctx, next) => {
37
37
  const list = bot.uList(Object.keys(ctx._.prompts || {}).map(
38
38
  x => `/${ctx._.prompts[x].command}: ${ctx._.prompts[x].act}`
39
39
  ));
40
- await ctx.paging(list || 'Data not found.');
40
+ await ctx.ok(list || 'Data not found.');
41
41
  break;
42
42
  case 'acpdetail':
43
43
  const details = bot.lines2(Object.keys(ctx._.prompts || {}).map(
@@ -46,7 +46,7 @@ const action = async (ctx, next) => {
46
46
  ctx._.prompts[x].prompt
47
47
  ])
48
48
  ));
49
- await ctx.paging(details || 'Data not found.');
49
+ await ctx.ok(details || 'Data not found.');
50
50
  break;
51
51
  case 'clear':
52
52
  ctx.clear();