halbot 1992.1.4 → 1992.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/package.json +1 -1
- package/skills/-8845_thread.mjs +8 -6
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": "1992.1.
|
|
4
|
+
"version": "1992.1.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
package/skills/-8845_thread.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const action = async (ctx, next) => {
|
|
|
69
69
|
createdAt: now, touchedAt: now, context: {},
|
|
70
70
|
});
|
|
71
71
|
ctx.carry.threadInfo.push(CREATED
|
|
72
|
-
+ getLabel(findSession(ctx.session.sessionId)));
|
|
72
|
+
+ `\`${getLabel(findSession(ctx.session.sessionId))}\``);
|
|
73
73
|
await ctx.clear();
|
|
74
74
|
}
|
|
75
75
|
ctx.carry.sessionId = ctx.session.sessionId;
|
|
@@ -106,17 +106,19 @@ const action = async (ctx, next) => {
|
|
|
106
106
|
});
|
|
107
107
|
return await ok(message, { lastMessageId: lastMsgId, buttons });
|
|
108
108
|
};
|
|
109
|
-
const switched = async (preTitle, newThread) => await ok(
|
|
110
|
-
? `${END} Thread ended: \`${preTitle}\`\n\n` : ''}`
|
|
109
|
+
const switched = async (preTitle, newThread) => await ok(
|
|
110
|
+
`${preTitle ? `${END} Thread ended: \`${preTitle}\`\n\n` : ''}`
|
|
111
111
|
+ (newThread ? CREATED : SWITCHED)
|
|
112
|
-
+ getLabel(findSession(ctx.session.sessionId))
|
|
112
|
+
+ `\`${getLabel(findSession(ctx.session.sessionId))}\``,
|
|
113
|
+
{ pageBreak: true }
|
|
114
|
+
);
|
|
113
115
|
// handle commands
|
|
114
116
|
switch (ctx.cmd?.cmd) {
|
|
115
117
|
case 'clearkb':
|
|
116
118
|
return await ok(EMIJI_FINISH, { keyboards: [] });
|
|
117
119
|
case 'clear':
|
|
118
|
-
ctx.carry.threadInfo.push(`${CLR} Thread cleared:
|
|
119
|
-
+ getLabel(findSession(ctx.session.sessionId)));
|
|
120
|
+
ctx.carry.threadInfo.push(`${CLR} Thread cleared: \``
|
|
121
|
+
+ `${getLabel(findSession(ctx.session.sessionId))}\``);
|
|
120
122
|
await ctx.clear();
|
|
121
123
|
break;
|
|
122
124
|
case 'clearall':
|