- 🚀 High Performance: Built with modern JavaScript
- 💾 Multi-Session: Handle multiple WhatsApp sessions
- 🔒 Secure: Built-in security features
- 🎮 Fun Commands: Games, stickers, and more
- ⚡ Quick Responses: Lightning-fast command execution
- 🛠️ Customizable: Easy to add new features
- Clone the repository
git clone https://github.com/NexusCoders-cyber/NexusCoders-Bot.git
cd NexusCoders-Bot
- Install dependencies
npm install
- Configure environment variables
cp .env.example .env
# Edit .env with your configuration
- Click the Heroku deploy button above
- Fill in the required environment variables
- Deploy and start your bot
- Fork this repository
- Connect your Render account
- Create a new Web Service
- Use the following build command:
npm install && npm run build
- Create a Koyeb account
- Import this repository
- Configure your deployment
- Launch your instance
Visit our session generator to get your WhatsApp session: Session Generator
To create a new command, create a .js
file in the appropriate command directory (./src/commands/general/
). Here's an example:
// ./src/commands/general/commandname.js
// Basic Command Structure
module.exports = {
name: 'commandname', // Command name (required)
description: 'description', // Command description (required)
usage: '!commandname <args>', // How to use the command (required)
category: 'category', // Command category (required)
aliases: ['cmd', 'cm'], // Alternative command names (optional)
cooldown: 5, // Cooldown in seconds (optional)
ownerOnly: true, // Restrict to bot owner (optional)
adminOnly: true, // Restrict to group admins (optional)
groupOnly: true, // Restrict to groups only (optional)
privateOnly: true, // Restrict to private chats (optional)
// Main function that executes when command is called
async execute(sock, message, args) {
// sock: WhatsApp connection object
// message: Message object containing info about the message
// args: Array of arguments passed to the command
// Your command logic here
// Send a reply
await sock.sendMessage(message.key.remoteJid, {
text: 'Your message here',
quoted: message // Makes the message a reply
});
}
};
📦 NexusCoders-WhatsApp-Bot
┣ 📂 src
┃ ┣ 📂 commands
┃ ┃ ┣ 📂 admin # Admin commands
┃ ┃ ┣ 📂 general # General commands
┃ ┃ ┗ 📂 owner # Owner-only commands
┃ ┣ 📂 handlers # Message & command handlers
┃ ┣ 📂 models # Database models
┃ ┣ 📂 utils # Utility functions
┃ ┗ 📜 config.js # Configuration file
┣ 📜 .env # Environment variables
┣ 📜 index.js # Entry point
┗ 📜 package.json # Project metadata
Create a .env
file with the following variables:
BOT_NAME=NexusCoders
OWNER_NUMBER=1234567890
PREFIX=!
DATABASE_URL=your_mongodb_url
Category | Command | Description |
---|---|---|
General | !help | Show command list |
General | !ping | Check bot latency |
Admin | !ban | Ban a user |
Admin | !unban | Unban a user |
Owner | !broadcast | Send message to all users |
- Fork the repository
- Create a new branch (
git checkout -b feature/improvement
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature/improvement
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Nexus Teams - Initial work & development
- All contributors who helped with the project
Join our WhatsApp group for support and updates: Join Support Group
Made with ❤️ by Nexus Teams