/Rin

A Fun Music Bot Made In discord.js

Primary LanguageJavaScriptMIT LicenseMIT

THIS CODE IS FROM 2020, WHEN I AM A BIT BETTER AT CODING BUT STILL BAD, DO NOT USE

Rin

A Fun Music Bot Made In discord.js

Support me!

Help me!

Feature

  • Play music.
  • Play live music.
  • Play a playlist.
  • Easy to host yourself.
  • Power Level customizable.

Bot Information

TODO

  • Clean up the code [Not Done].
  • Fix major issue [Not Done].
  • Optimise the bot if possible. [Not Done].
  • Make it play a playlist [Finished \o/].
  • Add more feature.

Known Major Bug

Future Command

  • rin$shuffle - Shuffle the queue

Power Levels

Name Power Level Permissions Default?
All 0 Anything Yes
Admin 2 Administrator No
Bot Owner 4 Bot Owner No
  • You can't change These Power Level, It's permenant.

Command-List

  • [] = Required, () = Optinal, / = or, & = and.

Category

Information
Command Name Power Level Argument Description Example
rin$help 0 None Show you all of the commands rin$help
rin$info 0 None Show you the information of the bot rin$info
Music
Command Name Power Level Argument Description Example
rin$play 0 [Youtube Video URL/Youtube Video ID/Search String] Play/Add a video to the queue. rin$play https://www.youtube.com/watch?v=dQw4w9WgXcQ
rin$play dQw4w9WgXcQ
rin$play Rick Astley - Never Gonna Give You Up
rin$play 0 [Youtube Playlist URL/Youtube Playlist ID] Play/Add a playlist. (Same command as above) rin$play https://www.youtube.com/watch?v=9C7IdIwUSMU&list=PLv3TTBr1W_9tppikBxAE_G6qjWdBljBHJ
rin$play PLv3TTBr1W_9tppikBxAE_G6qjWdBljBHJ
rin$skip 0 None Skip a song rin$skip
rin$stop 0 None Stop the song. (Clear the queue) rin$stop
rin$queue 0 None See the current queue rin$queue
rin$volume 0 (Number {0-100}) Set the volume, or get current volume rin$volume, rin$volume 100
rin$loop 0 None Loop current queue rin$loop

Packages

bufferutil
zlib-sync
discord.js
dotenv
glob
libsodium-wrappers
@discordjs/opus
ffmpeg-static
ytdl-core
yt-search
ytpl
@isolution/youtube-audio-stream
moment
utf-8-validate
@discordapp/erlpack

How to host?

  • Download the source, Unzip it in your desktop
  • Then rename config.json.example to config.json and edit the file data
  • Do the same with .env.example
  • Open Command Prompt, Then type cd "C:\Users\%username%\Desktop\Rin-rin-master\src" or change directory to the bot folder.
  • Then type npm install (Only do it once)`
  • Then type node main.js

FAQ

  • Help! It said 'npm' is not recognized as an internal or external command. or 'node' is not recognized as an internal or external command.
    A : Install Node.JS.

  • Help! It said Error : Cannot find module 'node-gyp'
    A : Install node-gyp and windows-build-tools.

  • Help! It said Error: Invalid converter command
    A: Install FFMPEG, Then put the file path in PATH's System Environment Variable, Then restart your computer.