halbot 1990.1.43 → 1990.1.44
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 +15 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -183,9 +183,21 @@ const config = {
|
|
|
183
183
|
|
|
184
184
|
// OPTIONAL, string.
|
|
185
185
|
// Path to your own middlewares.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
// ./skills
|
|
187
|
+
// |- skill_a.mjs
|
|
188
|
+
// | const action = async (bot) => {
|
|
189
|
+
// | bot.use(async (ctx, next) => {
|
|
190
|
+
// | ctx.reply('42');
|
|
191
|
+
// | await next();
|
|
192
|
+
// | });
|
|
193
|
+
// | };
|
|
194
|
+
// |
|
|
195
|
+
// | export const { run, priority, func } = {
|
|
196
|
+
// | run: true,
|
|
197
|
+
// | priority: 100,
|
|
198
|
+
// | func: action,
|
|
199
|
+
// | };
|
|
200
|
+
skillPath: "./skills",
|
|
189
201
|
|
|
190
202
|
// OPTIONAL, object.
|
|
191
203
|
// Using customized callback as storage engine.
|
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.44",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|