Git Product home page Git Product logo

simplediscordmusicbot's Introduction

โœจ Henwy | A Simple Discord Music Bot

Henwy is a simple bot made in discord.js, I have made this one to be easily hosted through Replit!


Requirements

  1. Discord Bot Token Guide
  2. YouTube Data API v3 Key Guide
    2.1 (Optional) Soundcloud Client ID Guide
  3. Node.js v12.0.0 or newer

๐Ÿš€ Getting Started

If you are going to be Hosting through repl.it then follow these steps!

Select Create new Repl Then select "Import from Github" and paste this repo's link KingRain/SimpleDiscordMusicBot image Then Select Import from Github Add your token and API in the config.json File in the correct lines The click the "Run" Button on top, and you'll get a screen like this

image

Copy the top link, Now we are going to host it 24/7 by using UptimeRobot Login and set up and account over there, then click add monitor and make your settings like this image

After creating a monitor, UptimeRobot would come and wake your website every 5 minitues. Which would make your repl hosted 24/7


If deploying to Heroku make sure to create config variables Deploy

heroku

git clone https://github.com/KingRain/SimpleDiscordMusicBot.git
cd henwy
npm install

After installation finishes you can use node index.js to start the bot.

โš™๏ธ Configuration

Go to the config.json file, then add the token and API key

โš ๏ธ Note: Make sure you don't share your Token or Api Key with anyone else, Avoid uploeding them in public repo's โš ๏ธ

{
  "TOKEN": "",
  "YOUTUBE_API_KEY": "",
  "SOUNDCLOUD_CLIENT_ID": "",
  "MAX_PLAYLIST_SIZE": 10,
  "PREFIX": "/",
  "PRUNING": false,
  "STAY_TIME": 30
}

๐Ÿ“ Features & Commands

Note: The default prefix is '/'

  • ๐ŸŽถ Play music from YouTube via url

/play https://www.youtube.com/watch?v=GLvohMXgcBo

  • ๐Ÿ”Ž Play music from YouTube via search query

/play under the bridge red hot chili peppers

  • ๐ŸŽถ Play music from Soundcloud via url

/play https://soundcloud.com/blackhorsebrigade/pearl-jam-alive

  • ๐Ÿ”Ž Search and select music to play

/search Pearl Jam

Reply with song number or numbers seperated by comma that you wish to play

Examples: 1 or 1,2,3

  • ๐Ÿ“ƒ Play youtube playlists via url

/playlist https://www.youtube.com/watch?v=YlUKcNNmywk&list=PL5RNCwK3GIO13SR_o57bGJCEmqFAwq82c

  • ๐Ÿ”Ž Play youtube playlists via search query

/playlist linkin park meteora

  • Now Playing (/np)
  • Queue system (/queue, /q)
  • Loop / Repeat (/loop)
  • Shuffle (/shuffle)
  • Volume control (/volume, /v)
  • Lyrics (/lyrics, /ly)
  • Pause (/pause)
  • Resume (/resume, /r)
  • Skip (/skip, /s)
  • Skip to song # in queue (/skipto, /st)
  • Remove song # from queue (/remove, /rm)
  • Toggle pruning of bot messages (/pruning)
  • Help (/help, /h)
  • Command Handler from discordjs.guide
  • Media Controls via Reactions

image


๐Ÿค Contributions

Feel Free to fork this repo and make changes! :D Also you can contribute or fix issues if any Just git-pull after making changes, your help is greatly appreciated

๐Ÿ“ Credits and Thanks

This was inspired heavily by @eritislami! A lot of credit goes towards him, make sure you go and check out his version

๐Ÿ’™ Donate

If you like my work and would like to Donate then feel free to go here and donate through whichever meathod you want ๐Ÿ’™

Coindrop.to RainBoi

simplediscordmusicbot's People

Contributors

kingrain 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.