Skip to content

M5Develop/MikuBot-WhatsApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎡 MikuBot β€” WhatsApp AI Bot

Node.js Baileys Groq License

A Hatsune Miku-themed WhatsApp AI chatbot β€” powered by Groq, Baileys, and Supabase Edge Functions.


✨ Features

  • πŸ€– AI Chat β€” Powered by Groq (Llama 4 Scout by default)
  • 🎀 Voice-to-Text β€” Transcribes voice messages via Groq Whisper
  • 🧠 Chat History β€” Per-user conversation memory via Supabase
  • 🚫 Rate Limiting & Blocking β€” Managed through Edge Functions
  • 🌐 Web Dashboard β€” Manage settings via browser
  • πŸ”— Pairing Code Auth β€” No QR scan needed, just a phone number

πŸ› οΈ Tech Stack

Component Technology
WhatsApp @whiskeysockets/baileys
Web Server express
AI Backend Groq API
Database Supabase Edge Functions
STT Groq Whisper

πŸš€ Setup

1. Clone the repo

git clone https://github.com/M5Develop/MikuBot-WhatsApp.git
cd MikuBot-WhatsApp

2. Install dependencies

npm install

3. Configure environment

cp .env.example .env

Fill in your keys in .env.

4. Run

npm start

Dashboard available at http://localhost:3000


πŸ”‘ Environment Variables

Variable Required Description
GROQ_API_KEY βœ… Groq API key β€” free at console.groq.com
SUPABASE_URL βœ… Your Supabase project URL

πŸ“± Connecting to WhatsApp

  1. Open the dashboard at http://localhost:3000
  2. Enter your WhatsApp phone number
  3. Get the pairing code and enter it in WhatsApp β†’ Linked Devices

πŸ—‚οΈ Project Structure

MikuBot-WhatsApp/
β”œβ”€β”€ index.js      # Entry point β€” DB β†’ Bot β†’ Server boot sequence
β”œβ”€β”€ bot.js        # Baileys socket, message handler, STT
β”œβ”€β”€ ai.js         # Groq chat + Whisper transcription
β”œβ”€β”€ db.js         # Supabase Edge Functions client
β”œβ”€β”€ routes.js     # Express dashboard API routes
β”œβ”€β”€ .env.example
└── package.json

πŸ“„ License

MIT β€” free to use, modify, and build on.


Made with πŸ’™ by M5Develop | HuggingFace

About

🎡 Hatsune Miku WhatsApp AI Bot β€” Baileys + Groq + Supabase Edge Functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors