- min. NodeJS v14.15
- a valid Discord Bot-Token (How to get a token)
- ffmpeg
- Optional: Docker
- With Docker:
- Build the image and run the container with the
BOT_TOKENas environment variabledocker run -d --env-file=.env <image-name>
- Build the image and run the container with the
- Without Docker:
- Install node_modules:
npm i --save - Build:
npm run build - Create an .env file based on the .env.example with an valid BOT_TOKEN
- Execute the index.js in dist-Folder:
node dist/index.js
- Install node_modules:
- The default prefix is
/. If you want another prefix, you can change it:
new Bot(<BOT_TOKEN>, {
prefix: '!',
activity: 'some music',
activityType: 'PLAYING', // PLAYING | STREAMING | LISTENING | WATCHING | CUSTOM_STATUS | COMPETING
status: 'online' // online | idle | dnd | invisible | undefined
}).start()- Play music from YouTube by URL
- start adding music to the queue with
<prefix>play <youtube-video-url> skip/stop/pause/resumethe songs in the queueshoworpurgethe songs on the queue
- start adding music to the queue with
- Some more stuff, just ask the bot with
<prefix>help
You want to add an command? Just create a new file in the commands directory, look at the other commands for the basic layout, write your code and don't forgett to import your new file in the index.ts of the commands directory.