GiveawayBot reads its configuration from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/resynceddesign/giveawaybot/llms.txt
Use this file to discover all available pages before exploring further.
.env file in the project root. There are exactly two required variables. The bot will fail to start if either is missing or invalid. Copy .env.example to .env and fill in both values before running the bot for the first time.
.env template
.env
Variables
Your Discord bot token. Used to authenticate the bot process with the Discord API via
client.login() in src/index.ts. A token is tied to a specific bot user — if you regenerate it, you must update this value and restart the bot.Your Discord application’s client ID (also called the Application ID). Used by the
Command.ts handler when registering slash commands with the Discord REST API. This value never changes for a given application.How to find each value
TOKEN- Go to the Discord Developer Portal.
- Select your application.
- Open the Bot page from the left sidebar.
- Click Reset Token (you may need to enter your 2FA code).
- Copy the token immediately — it is only shown once.
- Go to the Discord Developer Portal.
- Select your application.
- Open the General Information page from the left sidebar.
- Copy the Application ID field.
Security
TypeScript type safety
src/types.d.ts extends the Node.js ProcessEnv interface to declare TOKEN and CLIENT_ID as typed string properties:
src/types.d.ts
process.env.TOKEN and process.env.CLIENT_ID at compile time rather than at runtime.