Skip to content

Shubhamrawat5/whatsapp-bot-md

Repository files navigation

New Multi Device Whatsapp Bot

Typescipt updated -> https://github.com/Shubhamrawat5/whatsapp-bot-ts

Webpage -> https://shubhamrawat5.github.io/whatsapp-bot-md/

Requirements :

  • Git
  • Node js

Setup:- 🚀

  1. Download and install Git
  2. Download and install Nodejs
  3. Open terminal and run - git clone https://github.com/Shubhamrawat5/whatsapp-bot-md
  4. Open bot folder - cd whatsapp-bot-md
  5. Install all dependencies - npm install

Local Setup

  1. Create account on elephantsql for Database.

  2. After login, get the database URL from details section. It'll be like: postgres://[email protected]/xyz

  3. Create a local .env file with following variables and save the file.

    DATABASE_URL = "postgres://your_DB_URL"
    OWNER_NUMBER = "911234567890"

  4. Start the bot - node index.js

  5. It'll ask for QR code scan, scan it and bot will start working.

Features:- 🚀

  1. It count messages of every member in all the groups in DB. (just the message count, not actual text message), so that we can see stats like top members, top groups, etc.
  2. It also forwards every sticker that is sent to any of the PVX groups to another group i.e. Sticker Only, where members can have access to different different types of stickers 24x7.
  3. It posts tech news to tech group and trending india news to study group every 20 min.
  4. It notifys the birthday in the community group when new day starts.
  5. It welcomes new users when joined with some questions/rules.
  6. It automatically bans any user with a non-Indian number (any number without +91 code).

Default prefix : !

Commands :

Public Commands Description Alias
!help Display public commands
!helpa Display admin commands
!helpo Display bot owner commands
!donation Get Donation details
!alive Check bot is ON or OFF !a
!feedback Get feedback form
!votecommand Get list of vote commands !vc
!pvxlink Get group links of PVX
!dev Get the contact of dev
!cricketcommand Get list of cricket commands !cc
!source Get the bot source
!steal Change sticker name to PVX BOT

Member Commands Description Alias
!tagadmins Tag all admins of group !ta
!sticker Create sticker from different media types !s
!ai Ask questions to AI
!text Create sticker from text
!insta Get insta reels or post videos !i
!ytv Download youtube videos
!yta Download youtube audio
!song Get any song in good quality
!rank Know message count & rank in all PVX groups
!ranks Know ranks list of PVX groups
!count Know message count group wise in PVX groups
!image Create image from sticker
!imagesearch Search image from any name !is
!searchsearch Search sticker from any name !ss
!fb Get facebook videos
!technews Get latest Tech news
!drive Get GDrive files direct link
!quote Give a random quote
!horo Check today's horoscope
!gender Get gender from first name
!score Give Cricket score
!scorecard Give Cricket scorecard !sc, !sb
!startc Start Cricket score updated
!stopc Stop Cricket score updated
!startvote Start voting in group
!vote Vote for a choice
!checkvote Check status of current voting !cv
!stotvote Stop voting and see result
!votepvx Vote for a choice for all PVX groups
!checkvotepvx Check status of current voting for all PVX groups !cvpvx
!rules Get PVX groups rules !r

Admin Commands Description Alias
!add Add member to group
!kick kick member from group !ban
!mute Mute the group
!unmute Unmute the group
!delete Delete anyone message !d
!warning Give warning to user !warn
!warninglist Check warning of all members !warnlist
!warningreduce Reduce warning to user !warnreduce
!warningclear Clear all warning to user !warnclear
!warningcheck Check warning to user !warncheck
!enable Enable command for current group
!disable Disable command for current group
!pvxg Get message count stats of PVX groups
!pvxm Get members message count stats of current PVX group
!pvxtm Get members message count stats with rank of current PVX group !pvxmt
!pvxt Get top members message count stats of PVX groups
!pvxt5 Get top 5 members message count stats of all PVX groups
!zero Get members list with 0 message count
!pvxstats Get stats of PVX groups
!blacklist Get blacklist numbers
!blacklistadd Add number to blacklist !bla
!blacklistremove Remove number from blacklist !blr

Owner Commands Description Alias
!donationadd Add Donation details !da
!countstats Get stats of number of command used
!test execute code with whatsapp directly
!broadcast Broadcast a message to all groups !bc
!tagall Tag all members in group
!gname Save group names to DB
!setlink Save group link in DB !sl
!getlink Get all group links from DB !sl
!tg Make TG to WA stickers
!stg Stop TG to WA stickers
!groupbackup Take group backup in DB
!startvotepvx Start voting for all PVX groups
!stotvotepvx Stop voting and see result for all PVX groups

References:- 🚀