Add auto sell feature

This commit is contained in:
OneRobotBoii
2024-02-14 20:06:15 +07:00
parent 5bc7cec9bd
commit 71b02470cb
5 changed files with 251 additions and 27 deletions

View File

@ -3,10 +3,10 @@ import dotenv from 'dotenv';
dotenv.config();
export const retrieveEnvVariable = (variableName: string, logger: Logger) => {
const variable = process.env[variableName] || '';
if (!variable) {
logger.error(`${variableName} is not set`);
process.exit(1);
}
return variable;
const variable = process.env[variableName] || '';
if (!variable) {
logger.error(`${variableName} is not set`);
process.exit(1);
}
return variable;
}