Skip to content

Commit

Permalink
Update .env.example and README.md files
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Dec 25, 2023
1 parent 3cb1899 commit 83b4132
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TOKEN="." # Your bot token

PREFIX= "!" # Your prefix

OWNER_IDS= "859640640640640640, 859640640640640640" # Your id
OWNER_IDS=["959276033683628122","859640640640640640"] # Your discord id, you can add multiple ids

CLIENT_ID= "960072976412340254" # Your bot client id

Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ npm i
4. Set up your environment variables:

Create a `.env` file in the root directory of your project with the following variables:
or you can use the [.env.example](https://raw.githubusercontent.com/brblacky/lavamusic/main/.env.example) file

```bash
TOKEN="." # Your bot token
PREFIX= "!" # Your prefix
OWNER_IDS= "" # Your id
OWNER_IDS=["859640640640640640","859640640640640640"] # Your discord id, you can add multiple ids
CLIENT_ID= "960072976412340254" # Your bot client id
GUILD_ID= "859640640640640640" # Your server Id if you want to use the for single server
PRODUCTION="true" # true for production
Expand Down Expand Up @@ -195,10 +196,13 @@ Download the [docker-compose.yml file](https://raw.githubusercontent.com/brblack

Edit docker-compose.yml and make sure to set the following variables:

your .env file should look like this or you can use the [.env.example](https://raw.githubusercontent.com/brblacky/lavamusic/main/.env.example) file


```yaml
TOKEN="." # Your bot token and remember, don't show everyone your bot token
PREFIX="!" # Your prefix
OWNER_IDS="859640640640640640, 859640640640640640" # Your ID
OWNER_IDS=["859640640640640640","859640640640640640"] # Your discord id, you can add multiple ids
CLIENT_ID="960072976412340254" # Your bot client ID
GUILD_ID="859640640640640640" # Your server ID (if you want to use it for a single server)
PRODUCTION="true" # "true" for production
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "npm run start:bot",
"prisma:generate": "npx prisma generate",
"start:bot": "npm run build && node dist/index.js",
"dev": "nodemon --watch src --exec npm run start:bot",
"build": "tsc --project tsconfig.json",
"clean": "rm -rf dist",
"lint": "eslint . --cache --ext .js,.jsx,.ts,.tsx",
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
botActivity: process.env.BOT_ACTIVITY || 'Lavamusic', // set the bot activity
botActivityType: parseInt(process.env.BOT_ACTIVITY_TYPE || '2'), // 0 to 5 get more info - https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
maxQueueSize: parseInt(process.env.MAX_QUEUE_SIZE) || 100,
owners: process.env.OWNERS?.split(','),
owners: JSON.parse(process.env.OWNER_IDS || '[]'),
database: process.env.DATABASE_URL,
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET || '',
Expand Down

0 comments on commit 83b4132

Please sign in to comment.