<p align="center">
<img src="https://raw.githubusercontent.com/mhankbarbar/whatsapp-bot/master/media/img/Kaguya.png" width="128" height="128"/>
</p>
<p align="center">
<a href="#"><img title="Whatsapp-Bot" src="https://img.shields.io/badge/Whatsapp Bot-green?colorA=%23ff0000&colorB=%23017e40&style=for-the-badge"></a>
</p>
<p align="center">
<a href="https://github.com/mhankbarbar"><img title="Author" src="https://img.shields.io/badge/Author-mhankbarbar-red.svg?style=for-the-badge&logo=github"></a>
</p>
<p align="center">
<a href="https://github.com/mhankbarbar/followers"><img title="Followers" src="https://img.shields.io/github/followers/mhankbarbar?color=blue&style=flat-square"></a>
<a href="https://github.com/mhankbarbar/whatsapp-bot/stargazers/"><img title="Stars" src="https://img.shields.io/github/stars/mhankbarbar/whatsapp-bot?color=red&style=flat-square"></a>
<a href="https://github.com/mhankbarbar/whatsapp-bot/network/members"><img title="Forks" src="https://img.shields.io/github/forks/mhankbarbar/whatsapp-bot?color=red&style=flat-square"></a>
<a href="https://github.com/mhankbarbar/whatsapp-bot/watchers"><img title="Watching" src="https://img.shields.io/github/watchers/mhankbarbar/whatsapp-bot?label=Watchers&color=blue&style=flat-square"></a>
<a href="#"><img title="UNMAINTENED" src="https://img.shields.io/badge/UNMAINTENED-YES-blue.svg"</a>
</p>

## Clone this project

```bash
> git clone https://github.com/MhankBarBar/whatsapp-bot
```

## Install the dependencies:
Before running the below command, make sure you're in the project directory that
you've just cloned!!

```bash
> npm install gify-cli -g
> npm i
```

### Usage
Before running this script, first edit [this section](https://github.com/MhankBarBar/whatsapp-bot/blob/master/msgHndlr.js#L67) with your WhatsApp number, remember your WhatsApp number!  Not a bot number, then
```bash
> npm start
```

## Features

| Sticker Creator |                Feature           |
| :-----------: | :--------------------------------: |
|       ✅       | Send Photo with Caption          |
|       ✅       | Reply A Photo                    |
|       ✅       | Image Url                        |
|       ✅       | Send Video or GIF with Caption   |


| Downloader |                     Feature                |
| :------------: | :---------------------------------------------: |
|       ✅        |   YouTube mp3/mp4 Downloader                    |
|       ❌        |   Doujin Downloader         |
|       ✅        |   Instagram Video/Image Downloader                  |
|       ✅        |   Facebook Video Downloader                  |


| Other  |                     Feature                     |
| :------------: | :---------------------------------------------: |
|       ✅        |   Get a random meme             |
|       ✅        |   Text to speech                |
|       ✅        |   Get a random waifu images     |
|       ✅        |   Get a random quotes           |
|       ✅        |   Get a random anime quotes     |
|       ✅        |   Get info gempa from BMKG      |
|       ✅        |   Weather's report's     |
|       ✅        |   Wikipedia                 |
|       ✅        |   Anime searcher    |
|       ✅        |   Get a random cat images       |
|       ✅        |   Get a random dog images       |
|      And        |   Others...                     |


| Group Only  |                     Feature                     |
| :------------: | :---------------------------------------------: |
|       ✅        |   Promote User                  |
|       ✅        |   Demote User                   |
|       ✅        |   Kick User                     |
|       ✅        |   Add User                      |
|       ✅        |   Mention All User              |
|       ✅        |   Get link group                |
|       ✅        |   Get Admin list                |
|       ✅        |   Get owner group               |
|       ✅        |   enable or disable nsfw command|
|       ✅        |   enable or disable welcome feature|


| Owner Group Only  |              Feature                |
| :------------: | :---------------------------------------------: |
|       ✅        |   Kick All Member Group                 |

| Owner Bot Only  |              Feature                |
| :------------: | :---------------------------------------------: |
|       ✅        |   leave all group                   |
|       ✅        |   clear all message                 |
|       ✅        |   Broadcast                      |


### Troubleshooting
Make sure all the necessary dependencies are installed.
https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

Fix Stuck on linux, install google chrome stable:
```bash
> wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
> sudo apt install ./google-chrome-stable_current_amd64.deb
```
## Special Thanks to
* [`open-wa/wa-automate-nodejs`](https://github.com/open-wa/wa-automate-nodejs)
* [`YogaSakti/imageToSticker`](https://github.com/YogaSakti/imageToSticker)
* [`SomnathDas/Whatsapp-Botto-Re`](https://github.com/SomnathDas/Whatsapp-Botto-Re)

### Donate
* [`Saweria`](https://saweria.co/donate/mhankbarbar)
