- Open the
config.json
and add your mongodb url, youtube api & spotify [ You can get them from our Sever ].
- Go to your preferred hosting service. For this guide, we use Render.
- In the Build & Deploy section, paste your repository URL.
Run the following commands to install dependencies and start your bot:
npm install node index.js
Navigate to the Discord Developer Portal. Find your application, and retrieve the bot token from the "Bot" section.
Create an environment variable with the following details: Key: TOKEN Value: [your bot token] Deploy your application using your hosting service’s deployment process.
Wait approximately five minutes for your bot to deploy and start up.
Test your bot by sending commands to ensure it is operational.