Skip to content

Latest commit

 

History

History
187 lines (155 loc) · 6.91 KB

README.md

File metadata and controls

187 lines (155 loc) · 6.91 KB
Akeno

Anuvab Bot

Anuvab is a multipurpose WhatsApp bot using wa-automate-nodejs library!

RequirementsInstallationFeaturesThanks to

Requirements

Installation

📝 Cloning this repo

> git clone https://github.com/Jazzboy-12/Anuvab-Whatsapp-Bot.git
> cd Anuvab-Whatsapp-Bot

✍️ Editing the file

Edit config.json to customize the bot as needed

{
    "botadmins": ["[email protected]"],
    "prefix": "~",
    "uaOverride": "WhatsApp/2.2037.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36",
    "botname": "Anuvab"
}

botadmins: Put the array of contactIds of the people who you want be bot admins
prefix: The prefix of the bot
uaOverride: Your user Agent
botname: The name of your bot

Edit help.js for bot name and display messages

🧾 Installing the Tesseract

  • Download the file here.
  • After that, run downloaded file as Administrator.
  • Complete the installation.
  • Run Command Prompt as Administrator.
  • Run this command:
> setx /m PATH "C:\Program Files\Tesseract-OCR;%PATH%"

It will give us a callback like SUCCESS: specified value was saved.

  • Now that you've Tesseract installed, verify that it's working by running this command to see version number (may need to restart Command Prompt):
> tesseract -version

🛠️ Installing the FFmpeg

  • Download one of the available versions of FFmpeg by clicking this link.
  • Extract the file to C:\ path.
  • Rename the extracted folder to ffmpeg.
  • Run Command Prompt as Administrator.
  • Run this command:
> setx /m PATH "C:\ffmpeg\bin;%PATH%"

It will give us a callback like SUCCESS: specified value was saved.

  • Now that you've FFmpeg installed, verify that it's working by running this command to see version number (may need to restart Command Prompt):
> ffmpeg -version

🕸 Installing the gif2webp

  • Download one of the available versions of gif2webp by clicking this link.
  • Extract the file to C:\ path.
  • Rename the extracted folder to libwebp.
  • Run Command Prompt as Administrator.
  • Run this command:
> setx /m PATH "C:\libwebp\bin;%PATH%"

It will give us a callback like SUCCESS: specified value was saved.

  • Now that you've gif2webp installed, verify that it's working by running this command to see version number (may need to restart Command Prompt):
> gif2webp -version

🔍 Installing the dependencies

> npm install

🆗 Running the bot

Regular node:

> npm start

PM2:

> pm2 start index.js
> pm2 monit

PM2 with cron job (restart after 5 hours):

> pm2 start index.js --cron "* */5 * * *"
> pm2 monit

After that scan the QR code using your WhatsApp in your phone!

Features

Prefix = !

Features Command Acces
Convert Images/Gifs into stickers !sticker Everyone
Gives Caption to Images and converts them into stickers !stickermeme Everyone
Triggers Images and converts them into stickers !triggered Everyone
Converts stickers to images !toimg Everyone
GTA styled wasted caption to images !wasted Everyone
Display anime info !anime Everyone
Display Group info !groupinfo Everyone
Return anime wallpapers !wallpaper Everyone
Scrap Subreddits [image based] !sr subreddit Everyone
Display Covid 19 Info !covid country Everyone
Don't know why I did that !kissu Everyone
Returns pornhub styled comment !phcomment <Name comment>
Toggle NSFW !act nsfw Admins
Greet new members !act welcome Admins
Mention all group members !ping text Admins
Promote members !promote @user Admins
Demote admins !demote @user Admins
Display User profile !profile / !profile @user Everyone
Kicks the user !snap @user Admins
Bot leaves the group !leave Admins
Bot joins using group invite link !join Bot Admin
Sets status of Anuvab !setstatus Bot Admin
Gives english text from image !ocr Everyone
Broadcasts messages to all chats of Anuvab !bc Bot Admin

Random results

Command Result
!pokemon Displays a random pokemon
!rpaper Displays a random Wallpaper
!waifu Displays a random waifu and the info
!husbu / !husbando Displays a random husbando and info
!animeneko Displays a random animeneko
!cat Displays a random cat
!doggo Displays a random dog
!dogesticker Displays a random doge sticker
!wholesome Displays a random wholesome sticker
!animesticker Displays a random anime character sticker
!tod Truth or dare game
!pickup Pickup lines

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Anuvab-Whatsapp-Bot