A simple WhatsApp bot that automates message sending and responds to commands like !ping, !menu, and more using whatsapp-web.js. Ideal for managing and automating group messages.
WhatsApp Auto Sender Bot is a simple automation bot built using the whatsapp-web.js library. This bot allows you to automate messaging tasks in WhatsApp, including responding to specific commands and sending messages to all members of a selected group.
!ping
, halo
, and !menu
.!listgroup
command.!send
command.Command | Description |
---|---|
!ping |
Check if the bot is online, responds with Pong! . |
halo |
Greet the bot, and it responds with Halo juga! Ada yang bisa dibantu? . |
!menu |
Displays the bot's available commands. |
!listgroup |
List all the WhatsApp groups the bot is currently in. |
!send |
Select a group to send a message to all its members. |
Clone the repository:
https://github.com/Wisyam/WaAuto-Sender.git
cd whatsapp-auto-sender-bot
Instal dependensi yang diperlukan:
npm install
Jalankan bot:
node index.js
Autentikasi dengan WhatsApp:
Proses Command:
Bot mendengarkan pesan yang diterima dan memproses perintah seperti !ping
, halo
, !menu
, !listgroup
, dan !send
.
Pengiriman Pesan ke Anggota Grup:
Setelah perintah !send
digunakan, bot akan menampilkan daftar grup dan meminta pengguna untuk memilih grup. Setelah memilih, bot akan mengirim pesan yang ditentukan ke semua anggota grup.
Bot ini menggunakan beberapa library eksternal, antara lain:
whatsapp-web.js
qrcode-terminal
figlet
: Digunakan untuk menampilkan teks ASCII art di terminal.Kontribusi untuk proyek ini sangat diterima! Silakan fork repository ini dan buat pull request dengan fitur atau perbaikan yang ingin ditambahkan.