A discord music bot build with lavalink.
Hopeless Bot 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.
✉️ Invite Hopeless • 🆘 Support Server • 📝 Bug & Request Feature
Before you get started, you need to have the following:
pnpm
if you don’t have it installednpm install -g pnpm
git clone https://github.com/rafisarkar0128/hopeless-bot.git
cd hopeless-bot
pnpm install # you can also use npm if you want
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:
# You can also use npm if you want
pnpm start
pnpm run dev # if you want to run in dev mode
/ping
or /botinfo
commands.By default, the bot doesn’t load slash commands globally. To load slash commands globally, go to .env
, change the value of GLOBAL_COMMANDS
to true
. This will make sure that the slash commands are available globally.
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:
pnpm run shard
pnpm 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. |
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: