Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nialled69/whatsapp-musician
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.
https://github.com/nialled69/whatsapp-musician
ffmpeg javascript node-js node-module qrcode-generator typescript whatsapp-bot whatsapp-web
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/nialled69/whatsapp-musician
- Owner: Nialled69
- License: mit
- Created: 2024-05-03T16:43:16.000Z (7 months ago)
- Default Branch: Main
- Last Pushed: 2024-05-21T12:22:31.000Z (6 months ago)
- Last Synced: 2024-10-14T00:03:01.824Z (about 1 month ago)
- Topics: ffmpeg, javascript, node-js, node-module, qrcode-generator, typescript, whatsapp-bot, whatsapp-web
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎵 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. ⚓
* [Node.js](https://nodejs.org/en/download)
* [Git](https://git-scm.com/downloads)
* [FFmpeg](https://www.gyan.dev/ffmpeg/builds/)
* Any Code Editors (I used VS code) [Download Visual Studio code](https://code.visualstudio.com/Download)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
```cmd
ffmpeg -version
```
If it gives the version number then all good otherwise refer to [Sensei](https://chat.openai.com) for further help :D3. Cloning the Repository 🫦
```cmd
git clone https://github.com/Nialled69/whatsapp-musician.git
```
```cmd
cd whatsapp_musician
```
Run the below line to initiate a node project
```cmd
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 -
```cmd
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 -```cmd
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](https://www.google.com/search?q=wifi&oq=wifi&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQABiPAjIHCAIQABiPAjIHCAMQABiPAjIGCAQQRRg80gEIMzI4N2owajeoAgCwAgA&sourceid=chrome&ie=UTF-8)
## 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](https://www.google.com/search?q=wifi&oq=wifi&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQABiPAjIHCAIQABiPAjIHCAMQABiPAjIGCAQQRRg80gEIMzI4N2owajeoAgCwAgA&sourceid=chrome&ie=UTF-8)