halbot 1995.1.53 → 1995.1.54

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 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.53",
4
+ "version": "1995.1.54",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
package/web/ogimage.mjs CHANGED
@@ -1,12 +1,6 @@
1
- import { callosum, dbio, hal } from '../index.mjs';
1
+ import { dbio, hal } from '../index.mjs';
2
2
  import satori from 'satori';
3
3
  import { Resvg } from '@resvg/resvg-js';
4
- import { readFile } from 'fs/promises';
5
- import { fileURLToPath } from 'url';
6
- import path from 'path';
7
-
8
- const __filename = fileURLToPath(import.meta.url);
9
- const __dirname = path.dirname(__filename);
10
4
 
11
5
  // Pre-load font
12
6
  let interFontBuffer;
package/web/turn.mjs CHANGED
@@ -113,7 +113,7 @@ const process = async (ctx, next) => {
113
113
  const ogImageUrl = `https://${ctx.host}/og-image/${ctx.params.token}`;
114
114
 
115
115
  // Construct dynamic meta tags
116
- const pageTitle = `HAL9000 Chat: ${result.chat_id}`;
116
+ const pageTitle = `Chat ID: ${result.chat_id}`;
117
117
  const escapedDesc = previewText.replace(/"/g, '"');
118
118
  const escapedTitle = pageTitle.replace(/"/g, '"');
119
119