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:
parent
72d2316b33
commit
e90446afda
|
@ -4,3 +4,4 @@ desiredUser:
|
||||||
agents:
|
agents:
|
||||||
wss://mppclone.com:
|
wss://mppclone.com:
|
||||||
- id: "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧"
|
- id: "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧"
|
||||||
|
- id: "test/awkward"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
enableConsole: true
|
enableConsole: true
|
||||||
enableMPP: false
|
enableMPP: true
|
||||||
enableDiscord: true
|
enableDiscord: true
|
||||||
enableSwitchChat: false
|
enableSwitchChat: false
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "supercosmic",
|
"name": "supercosmic",
|
||||||
|
"version": "0.1.0",
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { loadConfig } from "./config";
|
import { loadConfig } from "./config";
|
||||||
import { readFileSync } from "fs";
|
import { readFileSync } from "fs";
|
||||||
|
import pkg from "../../package.json";
|
||||||
|
|
||||||
const config = loadConfig("config/ascii.yml", {
|
const config = loadConfig("config/ascii.yml", {
|
||||||
path: "config/ascii.txt"
|
path: "config/ascii.txt"
|
||||||
|
@ -15,4 +16,7 @@ export function printStartupASCII() {
|
||||||
for (const line of data.toString().split("\n")) {
|
for (const line of data.toString().split("\n")) {
|
||||||
process.stdout.write(`\x1b[35m${line}\x1b[0m\n`);
|
process.stdout.write(`\x1b[35m${line}\x1b[0m\n`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print version info
|
||||||
|
process.stdout.write(`\x1b[35mv${pkg.version}\x1b[0m\n`);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,5 +18,6 @@
|
||||||
"types": [
|
"types": [
|
||||||
"bun-types" // add Bun global
|
"bun-types" // add Bun global
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"include": ["package.json"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue