halbot 1990.1.11 → 1990.1.13
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 +2 -2
- package/skills/engine.mjs +8 -6
- package/skills/prompt.mjs +6 -6
- package/skills/wording.mjs +6 -4
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.
|
|
4
|
+
"version": "1990.1.13",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"ioredis": "^5.3.1",
|
|
37
37
|
"mysql2": "^3.2.0",
|
|
38
38
|
"telegraf": "^4.12.2",
|
|
39
|
-
"utilitas": "^1993.0.
|
|
39
|
+
"utilitas": "^1993.0.9"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/skills/engine.mjs
CHANGED
|
@@ -32,12 +32,14 @@ export const { run, priority, func, help, args } = {
|
|
|
32
32
|
priority: 10,
|
|
33
33
|
func: action,
|
|
34
34
|
help: bot.lines([
|
|
35
|
-
'Set initial prompt to the AI engine.',
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
"Tip
|
|
39
|
-
|
|
40
|
-
'
|
|
35
|
+
'¶ Set initial prompt to the AI engine.',
|
|
36
|
+
"Tip 1: Set `hello=''` to reset to default initial prompt.",
|
|
37
|
+
'¶ Select between AI engines.',
|
|
38
|
+
"Tip 2: Set `ai=''` to use default AI engine.",
|
|
39
|
+
'Tip 3: Set `ai=@` to use all AI engines simultaneously.',
|
|
40
|
+
'¶ Tweak enhanced output rendering.',
|
|
41
|
+
'Example 1: /set --render on',
|
|
42
|
+
'Example 2: /set --render off',
|
|
41
43
|
]),
|
|
42
44
|
args: {
|
|
43
45
|
hello: {
|
package/skills/prompt.mjs
CHANGED
|
@@ -60,15 +60,15 @@ export const { run, priority, func, help, cmds } = {
|
|
|
60
60
|
priority: 30,
|
|
61
61
|
func: action,
|
|
62
62
|
help: bot.lines([
|
|
63
|
-
'Maintain custom prompts.',
|
|
64
|
-
'Example 1: /add code > Code with me
|
|
65
|
-
'Example 2: /del code',
|
|
66
|
-
|
|
63
|
+
'¶ Maintain custom prompts.',
|
|
64
|
+
'Example 1: /add `code` > `Code with me.`',
|
|
65
|
+
'Example 2: /del `code`',
|
|
66
|
+
`¶ Get interesting prompts from ${ACP}.`,
|
|
67
67
|
]),
|
|
68
68
|
cmds: {
|
|
69
69
|
prompts: 'List all custom prompts.',
|
|
70
|
-
add: 'Add or edit a custom prompt:
|
|
71
|
-
del: 'Delete a custom prompt:
|
|
70
|
+
add: 'Add or edit a custom prompt: /add `COMMAND` > `PROMPT`.',
|
|
71
|
+
del: 'Delete a custom prompt: /del `COMMAND`.',
|
|
72
72
|
acplist: `List prompts from ${ACP}.`,
|
|
73
73
|
acpdetail: `Show details of ${ACP}.`,
|
|
74
74
|
clear: 'Clear current AI conversation session and start a new one.',
|
package/skills/wording.mjs
CHANGED
|
@@ -58,15 +58,17 @@ export const { run, priority, func, cmds, help } = {
|
|
|
58
58
|
priority: 50,
|
|
59
59
|
func: action,
|
|
60
60
|
help: bot.lines([
|
|
61
|
-
'Set your default language.',
|
|
62
|
-
'Prompt the AI engine to translate or polish your text.',
|
|
63
|
-
'If `LANG` is not specified, English is used by default.',
|
|
61
|
+
'¶ Set your default language.',
|
|
64
62
|
'Example 1: /lang Français',
|
|
63
|
+
'¶ Prompt the AI engine to translate or polish your text.',
|
|
64
|
+
'If `TO_LANG` is not specified, `config.lang` is used by default.',
|
|
65
|
+
"If `config.lang` not found, the bot's default language is used.",
|
|
66
|
+
'If bot has no default language, English is used by default.',
|
|
65
67
|
'Example 2: /translate Chinese',
|
|
66
68
|
]),
|
|
67
69
|
cmds: {
|
|
68
70
|
lang: 'Set your default language: /lang `LANG`',
|
|
69
|
-
translate: 'Translate your text to any language: /translate `
|
|
71
|
+
translate: 'Translate your text to any language: /translate `TO_LANG`',
|
|
70
72
|
polish: 'Polish your text.',
|
|
71
73
|
toen: 'Translate your text to English.',
|
|
72
74
|
tofr: 'Translate your text to French.',
|