You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
"audioLengthSeconds": "How long the audio file should look like when sent (in seconds)",
}
const beginConfiguring = async () => {
let cfg = {...config};
for(const key of Object.keys(cfg)){
console.clear();
console.log(`\n\n[Leave blank to continue]\n${key} - ${configDocs[key]} (current value: ${cfg[key]})`);
const value = await promptQ(`\nNew value for ${key}: `);
if(value === "") continue;
cfg[key] = value;
}
if(JSON.stringify(cfg) == JSON.stringify(config)) return console.log("No changes were made, exiting.");
console.clear();
writeFileSync("./config.js", `${`// THIS FILE IS AUTOGENERATED. IF YOU WANT TO SETUP CONFIG USE BUILTIN EDITOR\n`.repeat(3)}\nexport default ${JSON.stringify(cfg, null, 4)}`);