https://github.com/rafisarkar0128/hopeless-bot
A discord bot for your every need.
https://github.com/rafisarkar0128/hopeless-bot
bot discord discord-bot discordjs javascript
Last synced: 8 months ago
JSON representation
A discord bot for your every need.
- Host: GitHub
- URL: https://github.com/rafisarkar0128/hopeless-bot
- Owner: theassassin0128
- License: mit
- Created: 2024-08-04T04:12:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-30T01:41:58.000Z (over 1 year ago)
- Last Synced: 2025-02-02T04:51:16.326Z (over 1 year ago)
- Topics: bot, discord, discord-bot, discordjs, javascript
- Language: JavaScript
- Homepage: https://theassassin0128.github.io/hopeless-bot/
- Size: 72.4 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# βΌοΈREBUILD PHASEβΌοΈ
[![Version][version-shield]][version-shield-link]
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![Support Server][support-shield]][support-server]
[![MIT License][license-shield]][license-url]
[![CodeQL][codeql]][codeql-url]
[![Dependency Review][dependency-review]][dependency-review-url]
[![CodeFactor][code-factor]][code-factor-url]
## π Hopeless - A Discord Music Bot
**Hopeless Bot** is a discord bot, specially made for **Music Streaming**. It is built along with [discord.js](https://github.com/discordjs/discord.js), a powerful [Node.js](https://nodejs.org) module that allows you to easily interact with the [Discord API](https://discord.com/developers/docs/intro), and [Lavalink](https://github.com/lavalink-devs/lavalink), a powerful audio streaming server.
[βοΈ Invite Hopeless][bot-invite] β’ [π Support Server][support-server] β’ [π Bug & Request Feature][issues-url]
## π Road Map
- [x] **Basic Bot**
- [x] **Music Bot**
- [x] **Information Bot**
- [x] **Website**
- [ ] **Dashboard**
- [ ] **Documentation**
## π‘ Features
- **Advanced Logger**
- **Music Streaming**
- **Highly Customizable**
- **Multi-Language Support**
- **Advanced Error Handler**
- **Basic Sharding**
- **Advanced Validation**
## π§ Requirements
Before you get started, you need to have the following:
- [](https://nodejs.org/en/download/) (Recommend LTS or Higher)
- [](https://github.com/lavalink-devs/lavalink) (V4 or Higher)
- [](https://www.mongodb.com/try/download/community) (Required for MongoDB database)
## π Get Started
0. Install `pnpm` if you don't have it installed
```bash
npm install -g pnpm
```
1. First clone the repository:
```bash
git clone https://github.com/rafisarkar0128/hopeless-bot.git
```
2. Change to the directory:
```bash
cd hopeless-bot
```
3. Install the required packages:
```bash
pnpm install # you can also use npm if you want
```
4. Copy `example.lavalink-nodes.js` to `lavalink-nodes.js` and add your external nodes here if you are going to use any.
5. Copy `.env.example` to `.env` and fill in all the required values.
6. Now go to [Discord Developer Page](https://discord.com/developers/applications) 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.
7. Start the bot:
```bash
# You can also use npm if you want
pnpm start
pnpm run dev # if you want to run in dev mode
```
8. Start using the bot. Use `/ping` or `/botinfo` commands.
### NOTE
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
**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:
```bash
pnpm run shard
pnpm run devShard # if you want to run in dev mode
```
## π Commands
> 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. |
## π€ Contributing
Please check the [issues page](https://github.com/rafisarkar0128/hopeless-bot/issues) for open issues and feature requests.
Thank you for your interest in contributing to this project! Remember to follow these guidelines when contributing:
1. Fork the repository and create a new branch for your feature or bug fix.
2. Write clean and concise code that follows the established coding style.
3. Create detailed and thorough documentation for any new features or changes.
4. Write and run tests for your code.
5. Submit a pull request with your changes. Your contribution will be reviewed, and any necessary feedback or changes will be discussed with you.
π I appreciate your help in making this project better!
## π License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## π₯ Contributors
Thanks go to these wonderful people for their contributions:
[bot-invite]: https://discord.com/oauth2/authorize?client_id=1272259032098275358
[version-shield]: https://img.shields.io/github/package-json/v/rafisarkar0128/hopeless-bot?style=for-the-badge
[version-shield-link]: https://github.com/rafisarkar0128/hopeless-bot
[contributors-shield]: https://img.shields.io/github/contributors/rafisarkar0128/hopeless-bot?style=for-the-badge
[contributors-url]: https://github.com/rafisarkar0128/hopeless-bot/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/rafisarkar0128/hopeless-bot?style=for-the-badge
[forks-url]: https://github.com/rafisarkar0128/hopeless-bot/network/members
[stars-shield]: https://img.shields.io/github/stars/rafisarkar0128/hopeless-bot?style=for-the-badge
[stars-url]: https://github.com/rafisarkar0128/hopeless-bot/stargazers
[issues-shield]: https://img.shields.io/github/issues/rafisarkar0128/hopeless-bot?style=for-the-badge
[issues-url]: https://github.com/rafisarkar0128/hopeless-bot/issues
[support-shield]: https://img.shields.io/discord/1054284394791178291?logo=discord&colorB=7289DA&style=for-the-badge
[support-server]: https://discord.gg/E6H9VvBdTk
[license-shield]: https://img.shields.io/github/license/rafisarkar0128/hopeless-bot?style=for-the-badge
[license-url]: https://github.com/rafisarkar0128/hopeless-bot/blob/master/LICENSE
[codeql]: https://img.shields.io/github/actions/workflow/status/rafisarkar0128/hopeless-bot/codeql.yml?style=for-the-badge&logo=github&label=Codeql
[codeql-url]: https://github.com/rafisarkar0128/hopeless-bot/actions/workflows/codeql.yml
[dependency-review]: https://img.shields.io/github/actions/workflow/status/rafisarkar0128/hopeless-bot/dependency-review.yml?style=for-the-badge&label=Dependency%20Review&logo=github
[dependency-review-url]: https://github.com/rafisarkar0128/hopeless-bot/actions?query=workflow%3A%22Dependency+Review%22
[code-factor]: https://img.shields.io/codefactor/grade/github/rafisarkar0128/node?logo=codefactor&logoColor=%23F44A6A&style=for-the-badge
[code-factor-url]: https://www.codefactor.io/repository/github/rafisarkar0128/node