Skip to content

Create a Bot for your Whatsapp to play Music, send memes and much more! Integrate it on your mobile and enjoy it together with friends.

License

Notifications You must be signed in to change notification settings

Nialled69/whatsapp-musician

Repository files navigation

🎵 Whatsapp musician 🎵

A whatsapp bot to play music seamlessly , whether for your personal use or for friends.

Simply type in !play and then the name of the song you want to play . Example - !play Humble by Kendrick Lamar

(or if you want to watch a music video)

Type in !stream and then the name of the music-video you want to play . Example - !stream Fuji Opener by Skrillex

How to use the Bot ? 🤖

1. Download the Requirements first. ⚓

2. FFmpeg setup 🤡

After downloading the Ffmpeg latest version from here
  • Extract it in D:\ and rename it to ffmpeg (or other disc drives of your choice)

Set Ffmpeg in the Environment Variable (Here's how to do it in windows - ) (You can similarly do this for other OS)

  • Press 🪟+s (windows key + s) and type in Environment Variables and press ENTER
  • Go to Environment variables and then click on path row of the "System Variables" section and click on Edit...
  • click on New and type in D:\ffmpeg\bin this address and click on OK and apply and ffmpeg is all set
  • Now that you've FFmpeg installed, verify that it's working by running the command
ffmpeg -version

If it gives the version number then all good otherwise refer to Sensei for further help :D

3. Cloning the Repository 🫦

git clone https://github.com/Nialled69/whatsapp-musician.git
cd whatsapp_musician

Run the below line to initiate a node project

npm init

4. Downloading the Node Modules ☣️

type in cd in the terminal. If the path ends with \whatsapp_musician , then run the below line -

npm i axios qrcode-terminal ytdl-core yt-search whatsapp-web.js 

5. Running the Bot 🥸

Make sure that your ffmpeg path is set at D:\ffmpeg\bin . If not, open the song_finder.js , go to line no. 17 and update the FFmpeg path. After making sure of all the above factors, type in -

npm start

Scan the QR code in the terminal from your mobile whatsapp and it will start working. Make sure that your current whatsapp version supports Multi Device Beta

Extra Features 🎃

Tag Everyone 🥊

Tag Everyone in the group chat with !everyone command . (Important when you need to announce something for everyone in the chat)

Get Memes ⛓️

Get unlimited memes with the command !meme , freshly scraped from the most popular communities on Reddit with the lastest Web-Scraping Technology .

This might take some time. If you want very fast responses , then reduce the delay by clicking on this link

Watch videos (Latest Feature) 📹

Watch any video from youtube (music videos are mostly preferrable) directly in your whatsapp chat.

Simply type in !stream and then the name of the music-video you want to play . Example - !stream Enter Sandman by Metallica and the video file wil be sent to the user.

Note - This takes a huge time since video size may vary and this feature greatly depends on your internet speed and bandwidth. If you want to fix this issue , click in here

About

Create a Bot for your Whatsapp to play Music, send memes and much more! Integrate it on your mobile and enjoy it together with friends.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published