GreenBotDevelopment / Green-bot

🎧 Green-bot is a powerfull discord music bot used in 700k servers!
https://green-bot.app
Apache License 2.0
186 stars 90 forks source link
bot discord discord-bot discord-js discord-music-bot discordjs green-bot music-bot nodejs open-source
Green bot
<h3>Green-bot</h3>
    If you liked this repository, feel free to leave a star ⭐ and follow me, it supports me a lot! Thanks you!
<br><br>
<p>Green-bot is a Free Discord Music bot that can play music right into your discord server! The bot does not support youtube, deezer or spotiy.



🧷 Links


πŸš€ Bot features

πŸ“ Installation

Note:

Before you start, please consider that if you want to self-host this bot for personal use you should purchase a custom bot. Installation is not beginner friendly.

And yes, it's same for replit.

You are looking for the All-in-One bot? Click here

Before starting, make you sure you have a mongoDB database (it's free) and nodejs v16.

You will need to start a lavalink server and complete the informations in the config.js files.

Guide: How to start and create a lavalink server

Once your server is ready go in the config.js file and add a node.

lavalink: [
        { name: "node", url: "IP:PORT", auth: "LAVALINK_PASSWORD" },
 ],

⚠ Please make sure that you are using the same informations as provided in the application.yml file

Step 1.

Install NodeJS on your computer or on your vps. https://nodejs.org. You MUST have NodeJs 16 or an higher version. Then, download the files and open them with Visual Studio code (code.visualstudio.com). Then press Crtl + shift + ΓΉ or click on "new terminal", on the top bar.

Step 2. When your terminal is created, write npm install in your terminal to download all the modules. ⚠ the bot won't work if you don't italian the modules! If you encounter any error, make you sure that you have the latest version of nodejs or ask in the discord server.

Step 3. When the modules have been downloaded and a node_modules directory has been created, go to the config.ts file in the src folder and setup the bot. You can find some comments about every setting.

Step 4.

Re-open your terminal and write tsc --build to build the files, you need to do it for every change.

Now, you can start the bot by pressing F5 or putting npm run start in the terminal.

Step 5. Enjoy your bot !