Can play YouTube videos(sound only) in discord voice channels, and supports multiple bots at the same time!
- Node.js version 16 or later
Create a config.json
base on config.json.sample
dev{boolean}
: log all errors to console and only updatediscord.devGuildId
slash commandsdiscord{object}
bots{array}
: an array of discord bots to usetoken{string}
: the token for the discord bot (used to login)clientId{string}
: the discord application clientId (used to update slash commands)
devGuildId{string}
: used to only update a guild slash command whendev
istrue
yt{object}
: youtube request settingsheaders{object}
: headers to send when requesting yt videoscookie{string}
: The cookies sent when getting a video, Required for restricted videos, can be found in the network tab in a web browser when loading a video under the cookies headerx-youtube-identity-token{string}
: The user id used when getting a video, Required for restricted videos, can be found in the network tab in a web browser when loading a video under the x-youtube-identity-token
Run npm install
to install dependencies
Run npm run build
* to build a js version of the app in the build
dir
Run npm run start
to run Music Man!
You can also use npm run dev
* to run the Music Man using ts-node
for added type checking
Note: Commands marked with * are not available in builds