The bot has 4 majors commands:
You have to add your prefix before each command (e.g. &p [music])
play [music url or music name]is used to start playing music (orp).redois used to replay the last music played.skipis used to skip the current music (ors).pauseis used to pause the current music (orpa).resumeis used to resume the current music (orre).fuckoffdisconnects the bot and stops the music playing (orfo).queuedisplay the current music queue (orq).currentdisplays the music currently playing (orc).
You will need a Discord Developper Application !!
- Clone the repository
- Rename the file
.env.distto.envand fill it with the corrects informations. - Then simply pull the repository and run
docker-compose up -din the root folder.
- Clone the repository
- Rename the file
.env.distto.envand fill it with the corrects informations. - Create your own
docker-compose.yml. - Then simply pull the repository and run
docker-compose up -din the root folder.
You will need a mongodb server You can start this project in a few steps :
- Clone this directory,
- run the command npm install,
- Then rename the file '.env.dist' into '.env',
- Once you have your accounts and the keys, replace the variables in the '.env' with your own.
You can now launch it with the command:
npm run buildto compile the bot thennpm run startto start the botnpm run devto start the bot in watch mode
| VARIABLE | REQUIRED | DEFAULT | USED ONLY FOR DOCKER | DESCRIPTION |
|---|---|---|---|---|
| DISCORD_TOKEN | TRUE | FALSE | string - Your discord app token | |
| DISCORD_CLIENT_ID | TRUE | FALSE | string - Your discord client id | |
| PREFIX | FALSE | & | FALSE | string - Your bot prefix |
| DETECT_FROM_ALL_MESSAGES | FALSE | false | FALSE | boolean - Used to directly detect and play a youtube link |
| -------------------------- | -------- | ------------ | -------------------- | ------------------------------------------ |
| DATABASE_CONNECTION_STRING | TRUE | FALSE | string - Your mongodb uri string | |
| DATABASE_USER | TRUE | FALSE | string - Your mongodb user name | |
| DATABASE_PASSWORD | TRUE | FALSE | string - Your mongodb user password | |
| DATABASE_NAME | FALSE | stroycord | FALSE | string - Your mongodb database name |
| STROYCORD_LOGO | FALSE | StroyCord Logo | FALSE | string - The avatar url you want to give to the bot |
| LANGUAGE | FALSE | en-US | FALSE | string - The bot language |
| -------------------------- | -------- | ------------ | -------------------- | ------------------------------------------ |
| LOG_DIR | FALSE | /log | TRUE | string - Your logging directory path use for docker |
| TIMEZONE | FALSE | Europe/Paris | TRUE | string - Your container timezone |
services:
stroycord:
container_name: stroycord
image: destcom/stroycord:latest
build:
context: .
dockerfile: StroyCord.Dockerfile
environment:
DISCORD_TOKEN: ${DISCORD_TOKEN}
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID}
PREFIX: ${PREFIX}
LANGUAGE: ${LANGUAGE}
LOG_DIR: ${LOG_DIR:-./logs}
TIMEZONE: ${TIMEZONE:-Europe/Paris}
DATABASE_CONNECTION_STRING: ${DATABASE_CONNECTION_STRING}
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_NAME: ${DATABASE_NAME}
restart: on-failure
volumes:
- ${LOG_DIR:-./logs}:/app/logs
networks:
- default
depends_on:
- mongodb
mongodb:
container_name: mongodb
image: mongo:latest
restart: on-failure
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD:-root}
ports:
- ${MONGO_PORT:-27017}:27017
volumes:
- ${MONGO_DATA_DIR:-./mongo/data/db}:/data/db
networks:
- defaultThis repo was previously JE REVIENS OF DEVILKING