Skip to content
Open

O #46

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@
## ⚡ Quick Start

```bash
git clone https://github.com/GlobalTechInfo/MEGA-MD.git
git clone https://github.com/maddix123/MEGA-MD.git
cd MEGA-MD
npm install
cp sample.env .env
# Edit .env → add SESSION_ID and OWNER_NUMBER
npm start

npm i -g pm2 && pm2 start index.js -f && pm2 save && pm2 logs
```

---
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
"BOT_NAME": {
"description": "Your bot name",
"required": false,
"value": "MEGA-MD"
"value": "MADDIX BOT MD"
},
"BOT_OWNER": {
"description": "Owner display name",
"required": false,
"value": "GlobalTech"
"value": "MaddixPro"
},
"PREFIXES": {
"description": "Command prefixes separated by comma (e.g. .,!,/)",
Expand Down
14 changes: 7 additions & 7 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const _prefixes = process.env.PREFIXES ? process.env.PREFIXES.split(',') : ['.',
const config = {
// Bot Identity
botName: process.env.BOT_NAME || 'MEGA-MD',
botOwner: process.env.BOT_OWNER || 'Qasim Ali',
ownerNumber: process.env.OWNER_NUMBER || '923051391007',
author: process.env.AUTHOR || 'GlobalTechInfo',
botOwner: process.env.BOT_OWNER || 'MADDIX PRO',
ownerNumber: process.env.OWNER_NUMBER || '256752972945',
author: process.env.AUTHOR || 'MADDIX PRO',
packname: process.env.PACKNAME || 'MEGA-MD',
description: process.env.DESCRIPTION || 'High performance multi-device WhatsApp bot',
version: '6.0.0',
Expand All @@ -15,15 +15,15 @@ const config = {
commandMode: process.env.COMMAND_MODE || 'public',
timeZone: process.env.TIMEZONE || 'Asia/Karachi',
// Links
channelLink: process.env.CHANNEL_LINK || 'https://whatsapp.com/channel/0029VagJIAr3bbVBCpEkAM07',
updateZipUrl: process.env.UPDATE_URL || 'https://github.com/GlobalTechInfo/MEGA-MD/archive/refs/heads/main.zip',
channelLink: process.env.CHANNEL_LINK ||`https://whatsapp.com/channel/0029VbASniaBA1etGsQJvp3X',
updateZipUrl: process.env.UPDATE_URL || 'https://github.com/maddix123/MEGA-MD/archive/refs/heads/main.zip',
ytChannel: process.env.YT_CHANNEL || 'GlobalTechInfo',
// Session
sessionId: process.env.SESSION_ID || '',
pairingNumber: process.env.PAIRING_NUMBER || '',
// Performance
port: Number(process.env.PORT) || 5000,
maxStoreMessages: Number(process.env.MAX_STORE_MESSAGES) || 20,
port: Number(process.env.PORT) || 7200,
maxStoreMessages: Number(process.env.MAX_STORE_MESSAGES) || 200,
tempCleanupInterval: Number(process.env.CLEANUP_INTERVAL) || 1 * 60 * 60 * 1000,
storeWriteInterval: Number(process.env.STORE_WRITE_INTERVAL) || 10000,
// API Keys
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ setInterval(() => {
process.exit(1);
}
}, 30000);
const phoneNumber = config.pairingNumber || config.ownerNumber || "923051391005";
const phoneNumber = config.pairingNumber || config.ownerNumber || "256752972945";
// Auto-create data directory and default files on startup
const DATA_DEFAULTS = {
'owner.json': [],
Expand Down Expand Up @@ -356,7 +356,7 @@ async function startQasimDev() {
phoneNumberInput = process.env.PAIRING_NUMBER;
}
else if (rl && !rlClosed) {
phoneNumberInput = await question(chalk.bgBlack(chalk.greenBright(`Please type your WhatsApp number 😍\nFormat: 923001234567 (without + or spaces) : `)));
phoneNumberInput = await question(chalk.bgBlack(chalk.greenBright(`Please type your WhatsApp number 😍\nFormat: 256752972945 (without + or spaces) : `)));
}
else {
phoneNumberInput = phoneNumber;
Expand Down Expand Up @@ -484,7 +484,7 @@ async function startQasimDev() {
}
if (shouldReconnect) {
printLog('connection', 'Reconnecting in 5 seconds...');
await delay(5000);
await delay(500000);
startQasimDev();
}
}
Expand Down