If you want to try the bot before self-hosting him, you can add already hosted version of the bot, by clicking here!
To set up the self-hosted version of the bot, the following are required:
- Node.js v16.9.0 or higher
- Discord.js v14
To start, clone the git repository and install all required dependencies:
git clone https://github.com/richardscull/RichardsMusicBot
cd RichardsMusicBot
npm install
After that, create and fill in the .env file with the required information:
# Bot information
DISCORD_TOKEN= Discord application token
DISCORD_ID= Discord application ID
# Yours GitHub working branch
GITHUB_BRANCH_URL= #By default is /master
# Spotify client information
SPOTIFY_ID= Spotify client id
SPOTIFY_SECRET= Spotify client secret
SPOTIFY_REFRESH_TOKEN= Spotify client refrsh token
SPOTIFY_MARKET= Spotify client market
After that, you can successfully run bot by typing npm run build:start
or yarn build:start
!