Skip to content

NightClover-code/discord-music-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord music bot - Featuring Lavalink and Discord.js

Discord music bot preview image

The Challenge ⚡️

My friends challenged me to build a music discord bot for our server, and I thought it would be a very fun side project!

There are many options to fetch music with node.js such as using ffmpeg and the youtube API - but I went with Lavalink as it offers a more performant service.

Here was the challenge:

  • Integrating typescript for bug-free code
  • Installing lavalink server
  • Using erela.js as a client for Lavalink
  • Building a music command from scratch
  • Building a playlist command from scratch

Project Structure 📁

├───public
├───src/
    │   Bot.ts
    │   Client.ts
    │   index.ts
    │   Listener.ts
    │   types.d.ts
    ├───commands/
    ├───embeds/
    ├───handlers/
    │   └───playlist/
    ├───helpers/
    ├───interfaces/
    ├───models/
    └───utils
        │   index.ts
        └───music/

Built With ✨

  • Node.js - JS runtime
  • Dicsord.js - JS library
  • Erela.js - Lavalink client
  • MongoDB - Document database
  • Typescript

Deployment 🚀

Author

Thanks for sharing 🚀

About

Music bot w/ a playlist feature - discord.js and Lavalink.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published