make stream salt change on every server start

This commit is contained in:
wukko
2023-04-29 17:40:08 +06:00
parent 8f27876aee
commit d8e9fc16d0
3 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,3 @@
import { randomBytes } from "crypto";
import { existsSync, unlinkSync, appendFileSync } from "fs";
import { createInterface } from "readline";
import { Cyan, Bright, Green } from "./sub/consoleText.js";
@@ -6,7 +5,7 @@ import { execSync } from "child_process";
let envPath = './.env';
let q = `${Cyan('?')} \x1b[1m`;
let ob = { streamSalt: randomBytes(64).toString('hex') }
let ob = {}
let rl = createInterface({ input: process.stdin, output: process.stdout });
let final = () => {