mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-19 19:21:10 +10:00
Add auto sell feature
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user