utilitas 1998.2.14 → 1998.2.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/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +1 -1
- package/lib/bot.mjs +3 -2
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -968,7 +968,7 @@ const packResult = resp => {
|
|
|
968
968
|
resp.text, { noCode: true, noLink: true }
|
|
969
969
|
).replace(/\[\^\d\^\]/ig, ''),
|
|
970
970
|
};
|
|
971
|
-
log(`Response: ${JSON.stringify(result.text)}`);
|
|
971
|
+
log(`Response (${result.model}): ${JSON.stringify(result.text)}`);
|
|
972
972
|
// log(result);
|
|
973
973
|
return result;
|
|
974
974
|
};
|
package/lib/bot.mjs
CHANGED
|
@@ -341,8 +341,9 @@ const memorize = async (ctx) => {
|
|
|
341
341
|
// https://stackoverflow.com/questions/50204633/allow-bot-to-access-telegram-group-messages
|
|
342
342
|
const subconscious = [{
|
|
343
343
|
run: true, priority: -8960, name: 'broca', func: async (ctx, next) => {
|
|
344
|
-
|
|
345
|
-
process.stdout.write(
|
|
344
|
+
const e = `Event: ${ctx.update.update_id} => ${JSON.stringify(ctx.update)}`;
|
|
345
|
+
process.stdout.write(`[BOT] ${e}\n`);
|
|
346
|
+
log(e);
|
|
346
347
|
ctx.done = [];
|
|
347
348
|
ctx.collected = [];
|
|
348
349
|
ctx.timeout = async () => await timeout(ctx.limit);
|
package/lib/manifest.mjs
CHANGED