A powerful, feature-rich WhatsApp bot built with Baileys
Features โข Installation โข Commands โข Configuration โข Contributing
- Auto Group Division - Randomly divide members into balanced groups
- Links Manager - Store & categorize important links (Zoom, Drive, Forms, etc.)
- Quick Polls - Create instant polls for class decisions
- Assignment Tracker - Track deadlines with visual countdowns
- Schedule Manager - Manage class schedules with reminders
- Anti-Toxic System - Auto-detect & warn toxic language (3-strike system)
- Anti-Link Protection - Auto-kick users posting WhatsApp group links
- Ban System - Ban/unban users with persistent storage
- Dynamic Word Filter - Add/remove toxic words on the fly
- Admin Management - Multi-level admin system with owner protection
- Games - Tebak angka and more
- Quote Generator - Daily motivational quotes
- AI Chat - Conversational AI assistant
- Instagram Downloader - Download IG photos & videos
- TikTok Downloader - Download TikTok videos without watermark
- YouTube Music - Search & download music
- Wikipedia Search - Quick wiki lookups
- Translator - Multi-language translation
- Text-to-Speech - Convert text to voice messages
- GitHub Stats - View GitHub user statistics
- Lyrics Finder - Search song lyrics
- Kick/Promote/Demote - Member management
- Tag All - Mention all members
- Hidden Tag - Send messages with hidden mentions
- Open/Close Group - Control group settings
- Get Link - Retrieve group invitation link
- Node.js v16 or higher
- npm or yarn
- Git (optional)
# Clone repository
git clone https://github.com/sntdashi/bot-p3verse-1.0.git
cd bot-p3verse-1.0
# Install dependencies
npm install
# Configure bot (edit len.js)
nano len.js
# Run bot
npm start-
Configure Owner & Admins
Edit
len.js:global.owner = '628YOURPHONE@s.whatsapp.net' global.admin = ['628YOURPHONE@s.whatsapp.net']
-
Run the Bot
npm start
-
Scan QR Code
- QR code will appear in terminal
- Open WhatsApp โ โฎ โ Linked Devices
- Tap Link a Device
- Scan the QR code
- Done! โ
Note: All commands support both mobile-friendly comma (,) and desktop pipe (|) delimiters
| Command | Description | Example |
|---|---|---|
/addadmin |
Add new admin (owner only) | /addadmin @user |
/deladmin |
Remove admin (owner only) | /deladmin @user |
/listadmin |
View all bot admins | /listadmin |
/ban |
Ban user from bot | /ban @user |
/unban |
Unban user | /unban @user |
/listban |
View banned users | /listban |
/addtoxic |
Add word to filter (owner) | /addtoxic word1 word2 |
/deltoxic |
Remove filtered word (owner) | /deltoxic word1 |
/listtoxic |
View filtered words | /listtoxic |
| Command | Description | Example |
|---|---|---|
/bagikelompok jumlah <N> |
Divide into N groups | /bagikelompok jumlah 5 |
/bagikelompok max <N> |
Max N members per group | /bagikelompok max 4 |
/setlink |
Save link | /setlink Zoom, https://zoom.us/xxx |
/links |
View all saved links | /links |
/dellink <N> |
Delete link #N | /dellink 1 |
/poll |
Create poll | /poll Question, A, B, C |
/jadwal [day] |
View schedule | /jadwal or /jadwal senin |
/setjadwal |
Set schedule (admin) | /setjadwal senin 08:00 ... |
/addpr |
Add assignment | /addpr Math, Page 50, Tomorrow |
/listpr |
View assignments | /listpr |
/delpr <N> |
Delete assignment #N | /delpr 1 |
| Command | Description | Example |
|---|---|---|
/tebakangka |
Start number guessing game | /tebakangka |
/tebak <N> |
Guess the number | /tebak 50 |
/quote |
Get random quote | /quote |
| Command | Description | Example |
|---|---|---|
/ai |
Ask AI anything | /ai What is JavaScript? |
/wiki |
Wikipedia search | /wiki Python programming |
/translate |
Translate text | /translate en Hello World |
/tts |
Text to speech | /tts Hello everyone |
| Command | Description | Example |
|---|---|---|
/igdl |
Download Instagram | /igdl https://instagram.com/p/xxx |
/ttdl |
Download TikTok | /ttdl https://tiktok.com/@xxx |
/play |
Download music | /play Imagine - John Lennon |
/lirik |
Get song lyrics | /lirik Imagine |
| Command | Description | Example |
|---|---|---|
/kick |
Kick member | /kick @user |
/promote |
Make admin | /promote @user |
/demote |
Remove admin | /demote @user |
/tagall |
Tag all members | /tagall Important! |
/hidetag |
Hidden tag | /hidetag Message |
/open |
Open group | /open |
/close |
Close group | /close |
/linkgroup |
Get group link | /linkgroup |
// Bot Owner (Full Control)
global.owner = '628XXXXXXXXXX@s.whatsapp.net'
// Bot Admins (Can use admin commands)
global.admin = [
'628XXXXXXXXXX@s.whatsapp.net', // Owner
'628YYYYYYYYYY@s.whatsapp.net' // Additional admin
]
// Command Prefix
global.prefix = '/'
// Bot Image
global.image = './database/image/KucingLucu.jpeg'- Run
npm start - QR code appears in terminal
- Scan with WhatsApp
- Edit
index.js:const usePairingCode = true - Run
npm start - Enter phone number
- Use pairing code in WhatsApp
Cause: Corrupted session
Solution:
# Delete session folder
rm -rf LenwySesi
# Or on Windows
rmdir /s LenwySesi
# Restart bot
npm start- Check if bot is online in WhatsApp
- Verify command prefix matches (
/by default) - Check if user is banned
- Ensure bot is admin (for group features)
- Bot will auto-reconnect
- If fails repeatedly, delete
LenwySesiand re-pair
bot-p3verse-1.0/
โโโ index.js # Main entry point
โโโ lenwy.js # Command handler
โโโ len.js # Configuration
โโโ package.json # Dependencies
โโโ utils/ # Utility functions
โ โโโ helpers.js # Helper functions
โโโ database/ # Data storage
โ โโโ users.json # User database
โ โโโ banned.json # Banned users
โ โโโ links.json # Saved links
โ โโโ toxic_words.json # Filtered words
โ โโโ jadwal.json # Schedules
โ โโโ pr.json # Assignments
โโโ scrape/ # Web scrapers
โ โโโ Ai4Chat.js # AI scraper
โ โโโ Tiktok.js # TikTok scraper
โโโ LenwySesi/ # WhatsApp session (auto-generated)
- โ
Session files in
.gitignore - โ No data sent to external servers (except API calls)
- โ Local database storage
- โ Owner-only sensitive commands
- โ Per-group data isolation
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Use ES Module syntax
- Follow existing code style
- Add comments for complex logic
- Test before submitting
This project is licensed under the MIT License - see the LICENSE file for details.
Lenwy
- Instagram: @rawrznf
- Baileys - WhatsApp Web API
- qrcode-terminal - QR code display
- All contributors and users!
If this project helped you, please give it a โญ!
Made with โค๏ธ by Lenwy