Giter VIP home page Giter VIP logo

nimbu's Introduction

nimbu discord bot logo

Music bot for Discord

Nimbu lets you stream or download audio. Features a command handler, queuing system and various playback commands.

Get Nimbu

  1. Clone the github repository.
  2. Open config.json and edit the token, defaultPrefix, admin id and invite link.
  3. Run: npm install and node index.js to get the bot running.

You can create a bot and get a token at the Discord Developer Portal

Screenshots

play demo download demo queue demo

Add or Delete Commands

Using the command handler, it is very easy to add or remove commands.

  • To remove a command just delete the associated javascript file from the commands/ directory.

  • To add a command, duplicate the command/template.js file and add the function within the execute function.

      execute(message) {
      	// function goes here
      }
    
  • Name, description, usage, arguments required, aliases and cooldown duration can be set within the command file.

By default Nimbu uses the ! prefix for commands. Sending !help in Discord will give you a list of its commands and its description.

Playing Music

Play music by supplying a youtube link or search query.

eg. !play Kendrick Lamar - HUMBLE

or !play https://www.youtube.com/watch?v=tvTRZJ-4EyI

Nimbu adds songs to the playback queue and lets you pause, resume, skip or stop the song. You can adjust the volume using the !vol or !volume command.

Downloading Music

You can download music using Nimbu by sending the !download command. You can supply a youtube link or search query.

eg. !download Kendrick Lamar - HUMBLE

or !download https://www.youtube.com/watch?v=tvTRZJ-4EyI

Nimbu uses ytdl download the song in flv to /tmp and uses ffmpeg to transcode the audio to mp3

Extra

Change the prefix from within Discord using the !prefix command. This lets different servers have independent prefixes.

NOTE: THE PREFIX ISN'T PERSISTANT, IT WILL REVERT TO THE DEFAULT PREFIX WHEN THE BOT IS OFFLINE!

To generate an invite link to add the bot, users can use the !invite command.

nimbu's People

Contributors

shaansubbaiah avatar harshshankar avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.