Skip to content

[Bug]: Bot startup does not validate required environment variables #137

@KGFCH2

Description

@KGFCH2

Problem

The Discord bot starts without verifying required env vars are present.

Current Behavior

Missing DISCORD_TOKEN, DISCORD_CLIENT_ID, API_URL, or BOT_API_KEY may lead to runtime failure or confusing errors.

Why This Improvement Is Needed

Failing fast on misconfiguration makes bot setup clearer and safer.

Proposed Solution

Add required env var validation in bot/index.js and exit with a clear error message when missing.

Expected Outcome

Bot startup fails early with a helpful message when configuration is incomplete.

Additional Notes

This is a backend startup validation improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions