Add version info in logs on startup, clean up MPP config, include package.json in tsconfig, add version to package.json

This commit is contained in:
Hri7566 2023-12-06 01:27:53 -05:00
parent 72d2316b33
commit e90446afda
5 changed files with 53 additions and 46 deletions

View File

@ -4,3 +4,4 @@ desiredUser:
agents:
wss://mppclone.com:
- id: "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧"
- id: "test/awkward"

View File

@ -1,4 +1,4 @@
enableConsole: true
enableMPP: false
enableMPP: true
enableDiscord: true
enableSwitchChat: false

View File

@ -1,5 +1,6 @@
{
"name": "supercosmic",
"version": "0.1.0",
"module": "src/index.ts",
"type": "module",
"devDependencies": {

View File

@ -1,5 +1,6 @@
import { loadConfig } from "./config";
import { readFileSync } from "fs";
import pkg from "../../package.json";
const config = loadConfig("config/ascii.yml", {
path: "config/ascii.txt"
@ -15,4 +16,7 @@ export function printStartupASCII() {
for (const line of data.toString().split("\n")) {
process.stdout.write(`\x1b[35m${line}\x1b[0m\n`);
}
// Print version info
process.stdout.write(`\x1b[35mv${pkg.version}\x1b[0m\n`);
}

View File

@ -18,5 +18,6 @@
"types": [
"bun-types" // add Bun global
]
}
},
"include": ["package.json"]
}