Warning This project is still in development.
A Discord bot that plays music.
Node.js v20.12.1 or newer is required.
- Copy
.env.example
to.env
and configure the values. See Environment variables for more information. - Install dependencies:
npm install
- Install FFmpeg on your system: FFmpeg
- Build the project:
npm run build
- Deploy commands. See Deploy commands for more information.
- Start the bot:
npm start
Variable | Description | Default value | Required |
---|---|---|---|
DISCORD_BOT_TOKEN |
Discord bot token | null |
true |
APPLICATION_ID |
Discord application ID | null |
true |
GUILD_ID |
Guild ID to deploy commands to | null |
false if you deploy globally |
APPLICATION_NAME |
Application name | null |
false |
ENABLE_TRACKBOX |
Whether you wish to enable the track box player. | true |
false |
YT_EXTRACTOR_AUTH |
YouTube AUTH tokens for the extractor. View Docs | null |
false |
ENABLE_IP_ROTATION |
Whether you wish to enable IP rotation for YouTube. | false |
false |
IPV6_BLOCKS |
A space-separated list of IPv6 blocks to use for IP rotation. | null |
false if ENABLE_IP_ROTATION is false |
NODE_ENV |
Node environment. Use development or production |
development |
true |
- For a specific guild:
npm run deploy
(must have set theGUILD_ID
variable in.env
) - For all guilds:
npm run deploy-global
(will take a while for discord to deploy)
Undeploy
- For a specific guild:
npm run undeploy
(must have set theGUILD_ID
variable in.env
) - For all guilds:
npm run undeploy-global