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
- 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 |
GENIUS_ACCESS_TOKEN |
Genius API access token if you want /lyrics to use your own API |
null |
false |
GUILD_ID |
Guild ID to deploy commands to | null |
false if you deploy globally |
DP_FORCE_YTDL_MOD |
Force the use of a specific streaming library | @distube/ytdl-core |
false |
ENABLE_TRACKBOX |
Whether you wish to enable the track box player. | true |
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 |
- 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