https://github.com/n-tdi/music-exmaple
an exmaple discord.js music bot
https://github.com/n-tdi/music-exmaple
Last synced: 3 months ago
JSON representation
an exmaple discord.js music bot
- Host: GitHub
- URL: https://github.com/n-tdi/music-exmaple
- Owner: n-tdi
- Created: 2021-02-17T00:12:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T00:15:15.000Z (over 4 years ago)
- Last Synced: 2025-01-15T12:13:35.345Z (5 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About
> A dedicated music bot example project for Zhycorp Development made by iCrawl
This open sourced project is a dedicated example tutorial for our community's content, feel free to use and modify as good as you like. Written with [discord.js](https://discord.js.org/#/) and [v12 (stable)](https://discordjs.guide/additional-info/changes-in-v12.html) as the version.
## Features
* Full playback control
* Simple queue system
* We're here to help## Required modules
```
"@discordjs/opus": "^0.3.2",
"discord.js": "^12.2.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"node-opus": "^0.3.3",
"opusscript": "0.0.7",
"simple-youtube-api": "^5.2.1",
"ytdl-core": "^3.2.0"
```## Getting started with Glitch
1. Create your bot account at **[Discord Developer Portal](https://discord.com/developers)**, get the token, and invite him to your server
2. Go to **[Glitch.com](https://glitch.com)**, click **New Project**, then choose **`Clone from Git Repo`** button (we recommend you to make a Glitch account before doing this)
3. Fill the pop-up column with **`https://github.com/zhycorp/music-bot-example.git`** at the field, then click **`OK`**
4. Change the project's name to whatever you want (optional)
5. Rename the **`.env_example`** to **`.env`** instead, then specify the Prefix, Bot Token, and the YouTube API v3 Key (watch [this video](https://youtu.be/-5ptk-Klfcw?t=69) for the tutorial of getting the youtube key). Don't forget with the **`PROJECT_DOMAIN`**'s value, match this value with the name of your Glitch bot project
6. And your Discord music bot should be ready to use!_If you have made any changes to the code, don't forget to restart the bot by typing **`refresh`** at the **`Tools > Terminal`** button._
**[Tutorial Video](https://www.youtube.com/watch?v=6CSeovx0nvc)** (For people who usually do watching more than reading)
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am "Add some feature"`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D