halbot 1995.1.14 → 1995.1.16
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/lib/hal.mjs +1 -1
- package/package.json +1 -1
- package/pipeline/020_cmd.mjs +1 -1
package/lib/hal.mjs
CHANGED
|
@@ -263,7 +263,7 @@ const extendSessionStorage = storage => storage && storage.client && {
|
|
|
263
263
|
|
|
264
264
|
const subconscious = {
|
|
265
265
|
name: 'Subconscious', run: true, priority: 0,
|
|
266
|
-
func: async (_, next) => ignoreErrFunc(next, logOptions),
|
|
266
|
+
func: async (_, next) => { ignoreErrFunc(next, logOptions) }, // non-blocking
|
|
267
267
|
};
|
|
268
268
|
|
|
269
269
|
const init = async (options) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halbot",
|
|
3
3
|
"description": "Just another AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
|
|
4
|
-
"version": "1995.1.
|
|
4
|
+
"version": "1995.1.16",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
package/pipeline/020_cmd.mjs
CHANGED
|
@@ -11,7 +11,7 @@ const keyboards = [[
|
|
|
11
11
|
{ text: '/set --tts=🔊' }, { text: '/set --tts=🔇' },
|
|
12
12
|
]];
|
|
13
13
|
|
|
14
|
-
const getKeyboard = ctx => ctx.
|
|
14
|
+
const getKeyboard = ctx => ctx.update?.message?.chat?.type === hal.GROUP ? [
|
|
15
15
|
...keyboards, [{ text: '/set --chatty=🐵' }, { text: '/set --chatty=🙊' }]
|
|
16
16
|
] : keyboards;
|
|
17
17
|
|