updat .env.example and README

This commit is contained in:
Ayden Jahola 2024-09-08 20:52:49 +01:00
parent 916f150a5f
commit 088b575f20
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742
2 changed files with 4 additions and 26 deletions

View file

@ -9,6 +9,9 @@ EMAIL_PASS=YOUR_EMAIL_PASS
# Allowed domains for email verification # Allowed domains for email verification
EMAIL_DOMAINS=example@example.com // or it can be a list, example: example.com,example2.com EMAIL_DOMAINS=example@example.com // or it can be a list, example: example.com,example2.com
# API
RAPIDAPI_KEY=YOUR_RAPIDAPI_KEY // grab yours from https://rapidapi.com/community/api/urban-dictionary/playground/53aa4f68e4b07e1f4ebeb2b0
# Discord # Discord
GUILD_ID=YOUR_GUILD_ID GUILD_ID=YOUR_GUILD_ID
VERIFICATION_CHANNEL_NAME=YOUR_VERIFICATION_CHANNEL_NAME VERIFICATION_CHANNEL_NAME=YOUR_VERIFICATION_CHANNEL_NAME

View file

@ -30,32 +30,7 @@ npm install
3. **Set Up Environment Variables** 3. **Set Up Environment Variables**
Create a `.env` file in the root directory and add the following: rename the [`.env.example`](./.env.example) to `.env` and fill in the required environments
```env
# Bot token
BOT_TOKEN=YOUR_BOT_TOKEN
# Nodemailer
EMAIL_NAME="Example"
EMAIL_USER=example@example.com
EMAIL_PASS=YOUR_EMAIL_PASS
# Allowed domains for email verification
EMAIL_DOMAINS=example@example.com // or it can be a list, example: example.com,example2.com
# Discord
GUILD_ID=YOUR_GUILD_ID
VERIFICATION_CHANNEL_NAME=YOUR_VERIFICATION_CHANNEL_NAME
VERIFIED_ROLE_NAME=YOUR_VERIFIED_ROLE_NAME
LOG_CHANNEL_ID=YOUR_LOG_CHANNEL_ID
MOD_ROLE_ID=YOUR_MOD_ROLE_ID
# Database
MONGODB_URI=YOUR_MONGODB_URI
```
this can also be seen in in the [.env.example](./.env.example)
4. **Run the Bot** 4. **Run the Bot**