mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 01:48:54 +01:00
feat: add canvas dependency and implement uptime bar image generation
- Added 'canvas' dependency to package.json and package-lock.json. - Updated getUpdatedContainer method in StatusService to be asynchronous. - Implemented getStatusImageBar method in StatusService to generate a visual representation of uptime data. - Modified live_status.command.ts and statut.command.ts to await the updated container. - Created test.ts to demonstrate uptime bar generation and save it as an image. - Updated tsconfig.json to target ES2024 and include relevant libraries.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/ping": "^0.4.4",
|
||||
"canvas": "^3.2.0",
|
||||
"cron": "^4.3.3",
|
||||
"dayjs": "^1.11.19",
|
||||
"discord.js": "^14.24.2",
|
||||
|
||||
Reference in New Issue
Block a user