Guru

GURU Ai

Installation

git clone https://github.com/Guru322/GURU-Ai.git
cd GURU-Ai
npm install

Configuration

Create a .env file in the project root or set the following environment variables:

MONGODB_URI=<Your MongoDB connection URI>
PHONE_NUMBER=<Your WhatsApp phone number with country code>
BOTNAME=<Bot display name (optional)>
OWNERS="<owner1;john;owner2;doe>"

You can also edit config.js for additional settings like botname, packname, author, owners list, and sticker watermark.

Running the Bot

npm start
# or
node index.js

By default, the server listens on port 5000 (or the port defined in the PORT environment variable). Open your browser at http://localhost:5000 to access the pairing interface where the pairing code and connection status are displayed.

Usage

After starting, the bot will print a pairing code. Open WhatsApp > Linked Devices > Link a Device > Link with phone number and enter the pairing code to connect.

Commands are invoked with a prefix (default is .). For example:

.ping      # Check bot response time
.menu      # Display command menu and help
.list      # List all available commands
.alive     # Show bot status

Type .help or .list in chat to view all commands and descriptions.

Star History

Star History Chart