Skip to content

WhatsApp bot powered by wweb.js + AI (Gemini) no need for ! or / commands. Just chat like a human. Smart enough to access and use JSON data, flexible enough to adapt to any use case.

License

Notifications You must be signed in to change notification settings

Roti18/bot-wwebjs-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 SixFussion WhatsApp Bot

Bot WhatsApp cerdas yang membantu pelanggan dalam layanan top-up game seperti Mobile Legends, Free Fire, dan lainnya.
Dibangun dengan whatsapp-web.js dan Gemini API.


🛠️ Fitur Utama

  • Cek harga diamond atau item dalam game 💎
  • Panduan/tutorial top-up otomatis 📚
  • Info developer dan deskripsi game 📝
  • Smart reply menggunakan AI Gemini
  • Pencarian nama game dengan fuzzy search
  • Interaksi responsif dan ramah

📦 Dependencies

Pastikan kamu sudah menginstal Node.js.
Instal semua dependency dengan:

npm install

Library yang digunakan:

  • whatsapp-web.js – integrasi dengan WhatsApp Web
  • dotenv – untuk menyimpan API Key di file .env
  • fs, path – untuk membaca file JSON lokal
  • qrcode-terminal – menampilkan QR login WhatsApp di terminal
  • @google/generative-ai – koneksi ke Gemini AI
  • fuse.js – pencarian fuzzy nama game

📁 Struktur Folder

.
├── index.js               // File utama bot
├── .env                   // Menyimpan API Key
├── /json
│   └── game.json          // Data game dan harga/item

🔐 Konfigurasi .env

Buka file .env di root proyek dan isi:

GEMINI_API_KEY=ISI_DENGAN_KUNCI_API_KAMU

⚙️ Konfigurasi Grup

Anda dapat mengatur bagaimana bot berinteraksi di dalam grup dengan mengubah variabel public di dalam file index.js.

const public = false;

Bot hanya akan merespons di grup jika di-tag (@mention). Ini adalah mode default untuk menghindari spam.

const public = true;

Bot akan merespons setiap pesan yang masuk di grup, tanpa perlu di-tag.

🚀 Menjalankan Bot

  1. Install dependencies:
npm install
  1. Jalankan bot:
node index.js

atau

npm run dev
  1. Scan QR code yang muncul di terminal dengan WhatsApp kamu

📊 Format Pertanyaan yang Didukung

Contoh pertanyaan yang bisa kamu kirim ke bot:

  • harga diamond mlbb
  • item ff
  • tutorial top-up genshin
  • tentang PUBG
  • game by Moonton

📌 Catatan

  • Bot akan merespon otomatis hanya jika disebut di grup
  • Semua data diambil dari file JSON (bisa diupdate manual)
  • Jika pertanyaan tidak dikenal, Gemini AI akan mencoba menjawab

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License

About

WhatsApp bot powered by wweb.js + AI (Gemini) no need for ! or / commands. Just chat like a human. Smart enough to access and use JSON data, flexible enough to adapt to any use case.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published