Nimbu lets you stream or download audio. Features a command handler, queuing system and various playback commands.
- Clone the github repository.
- Open
config.json
and edit thetoken
,defaultPrefix
,admin id
andinvite link
. - Run:
npm install
andnode index.js
to get the bot running.
You can create a bot and get a token at the Discord Developer Portal
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
andcooldown 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.
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.
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
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.