When running the application, the only environment variable that really shows issues when running the application is the BOT_TOKEN. All of them should provide some kind of error message/log that should display the issue in the console.
Solution
Implement some kind of environment variable checker to make sure that env variables provided are not the defaults from .env.sample and non-empty.
Issue
BOT_TOKEN
. All of them should provide some kind of error message/log that should display the issue in the console.Solution
.env.sample
and non-empty.References
src/keys.ts
export const Keys = { clientToken: getEnvVar('CLIENT_TOKEN'), model: getEnvVar('MODEL'), clientUid: getEnvVar('CLIENT_UID'), ipAddress: getEnvVar('OLLAMA_IP'), portAddress: getEnvVar('OLLAMA_PORT'), } as const // readonly keys
export default Keys