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 and v12 (stable) as the version.
- Full playback control
- Simple queue system
- We're here to help
"@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"
- Create your bot account at Discord Developer Portal, get the token, and invite him to your server
- Go to Glitch.com, click New Project, then choose
Clone from Git Repo
button (we recommend you to make a Glitch account before doing this) - Fill the pop-up column with
https://github.com/zhycorp/music-bot-example.git
at the field, then clickOK
- Change the project's name to whatever you want (optional)
- Rename the
.env_example
to.env
instead, then specify the Prefix, Bot Token, and the YouTube API v3 Key (watch this video for the tutorial of getting the youtube key). Don't forget with thePROJECT_DOMAIN
's value, match this value with the name of your Glitch bot project - 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 (For people who usually do watching more than reading)
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- Discord.js Music Bot © iCrawl
- Authored, maintained by iCrawl. And modified by Zhycorp
- This work is licensed under a GNU Affero General Public License.