halbot 1990.1.3 → 1990.1.5
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/README.md +2 -2
- package/package.json +1 -1
- package/skills/ai-command.mjs +3 -3
- package/skills/ai-select.mjs +6 -6
- package/skills/prompt.mjs +3 -3
package/README.md
CHANGED
|
@@ -184,8 +184,8 @@ const config = {
|
|
|
184
184
|
// OPTIONAL, object.
|
|
185
185
|
// Using customized callback as storage engine.
|
|
186
186
|
session: {
|
|
187
|
-
get: async (
|
|
188
|
-
set: async (
|
|
187
|
+
get: async (key) => { /* return session object by chatId. */ },
|
|
188
|
+
set: async (key, session) => { /* save session object by chatId. */ },
|
|
189
189
|
},
|
|
190
190
|
|
|
191
191
|
};
|
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.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
package/skills/ai-command.mjs
CHANGED
|
@@ -28,9 +28,9 @@ export const { run, priority, func, help, cmds } = {
|
|
|
28
28
|
func: action,
|
|
29
29
|
help: bot.lines([
|
|
30
30
|
'Useful commands for AI conversation.',
|
|
31
|
-
'Example 1:
|
|
32
|
-
'Example 2:
|
|
33
|
-
'Example 3:
|
|
31
|
+
'Example 1: /chatgpt Say hello to ChatGPT!',
|
|
32
|
+
'Example 2: /bing Say hello to Bing!',
|
|
33
|
+
'Example 3: /all Say hello to all AI engines!',
|
|
34
34
|
]),
|
|
35
35
|
cmds: {
|
|
36
36
|
all: 'Use all AI engines simultaneously temporary.',
|
package/skills/ai-select.mjs
CHANGED
|
@@ -35,12 +35,12 @@ export const { run, priority, func, help, args } = {
|
|
|
35
35
|
'Config AI engine.',
|
|
36
36
|
'Set `ai`=`.` to use default AI engine.',
|
|
37
37
|
'Set `ai`=`@` to use all AI engines simultaneously.',
|
|
38
|
-
'Example 1:
|
|
39
|
-
'Example 2:
|
|
40
|
-
'Example 3:
|
|
41
|
-
'Example 4:
|
|
42
|
-
'Example 5:
|
|
43
|
-
'Example 6:
|
|
38
|
+
'Example 1: /set --ai ChatGPT',
|
|
39
|
+
'Example 2: /set --ai Bing',
|
|
40
|
+
'Example 3: /set --ai .',
|
|
41
|
+
'Example 4: /set --ai @',
|
|
42
|
+
'Example 5: /set --render on',
|
|
43
|
+
'Example 6: /set --render off',
|
|
44
44
|
]),
|
|
45
45
|
args: {
|
|
46
46
|
ai: {
|
package/skills/prompt.mjs
CHANGED
|
@@ -66,9 +66,9 @@ export const { run, priority, func, help, cmds } = {
|
|
|
66
66
|
'Example 1: /prompts',
|
|
67
67
|
'Example 2: /add code > Code with me.',
|
|
68
68
|
'Example 3: /del code',
|
|
69
|
-
'Example 4:
|
|
70
|
-
'Example 5:
|
|
71
|
-
'Example 6:
|
|
69
|
+
'Example 4: /acplist',
|
|
70
|
+
'Example 5: /acpdetail',
|
|
71
|
+
'Example 6: /clear',
|
|
72
72
|
]),
|
|
73
73
|
cmds: {
|
|
74
74
|
prompts: 'List custom prompts.',
|