A discord music bot build with lavalink.
Hopeless is a discord bot, specially made for Music Streaming. It is built along with discord.js, a powerful Node.js module that allows you to easily interact with the Discord API, and Lavalink, a powerful audio streaming server.
Before you get started, you need to have the following:
git clone https://github.com/rafisarkar0128/hopeless-bot.git
cd hopeless-bot
npm install
Copy example.lavalink-nodes.js to lavalink-nodes.js and add your external nodes here (if you are going to use any).
Copy .env.example to .env and fill in all the required values.
Now go to Discord Developer Page select your application and head to OAuth2 tab. In OAuth2 URL Generator select โbotโ and โapplication.commandsโ scopes, scroll down select โAdministratorโ permission, copy the URL, open the URL and invite the bot to your server.
Start the bot:
npm start
npm run dev # if you want to run in dev mode
/ping or /play commands.By default, the bot loads slash commands globally. To load slash commands only in specified guild, go to .env, change the value of GLOBAL_COMMANDS to false. This will make sure that the slash commands are available only in the specified guild.
Sharding is not recommended for bots that are in less than 2,000 servers. By default the bot runs without sharding. To enable sharding, start the bot like this:
npm run shard
npm run devShard # if you want to run in dev mode
There will be a dedicated markdown file for commands in future. For now here are some public commands of the bot.
| Name | Description |
|---|---|
| ping | ๐ Pong! Replies with botโs response time. |
| botinfo | ๐ View botโs information. |
| invite | returns a link button with botโs invite URL. |
| language | ๐ Change your language for the bot. |
| play | โถ Play songs or tracks from available sources. |
Here are some examples of how to use the bot effectively:
/play <song name> to start streaming a song.Checking Bot Status:
Use the command /ping to check if the bot is online and responsive.
Changing Language:
Use the command /language <language> to change the botโs language settings.
/botinfo to retrieve information about the bot and its features.Please check the issues page for open issues and feature requests.
Thank you for your interest in contributing to this project! Remember to follow these guidelines when contributing:
๐ I appreciate your help in making this project better!
This project is licensed under the MIT License. See the LICENSE file for details.
Thanks go to these wonderful people for their contributions: