halbot 1995.1.53 → 1995.1.55
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/web/ogimage.mjs +2 -8
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.55",
|
|
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 {
|
|
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;
|
|
@@ -82,7 +76,7 @@ const process = async (ctx, next) => {
|
|
|
82
76
|
backgroundColor: '#0a0a0c', // HAL9000 Dark bg
|
|
83
77
|
backgroundImage: 'radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.05) 2%, transparent 0%), radial-gradient(circle at 75px 75px, rgba(255, 255, 255, 0.05) 2%, transparent 0%)',
|
|
84
78
|
backgroundSize: '100px 100px',
|
|
85
|
-
padding: '60px',
|
|
79
|
+
padding: '35px 60px 95px 60px',
|
|
86
80
|
fontFamily: '"Inter"',
|
|
87
81
|
color: '#ffffff',
|
|
88
82
|
},
|