Install the dependencies:
npm install
If you want to test the changes against a real voice channel, you need a real Discord server.
- Register an application at the Discord developer portal.
- Afterwards, copy the secret token which you find in the bot tab
- Create a
.env
file in the root folder of this application with the content listed below
TOKEN=<TOKEN from step 2>
PREFIX=!
- Go-to the OAuth2 tab in the developer portal and generate an invite link for your
bot
. Select the following privileges:Send Messages
Manage Messages
Connect
Speak
- With the generated link, invite the bot to one of your servers
- Now, when you start the application with
npm run start:dev
, the bot is able to connect to your server