Skip to content
Open
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
28 changes: 28 additions & 0 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: NodeJS with Webpack

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npx webpack
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# 🚀 Malvin-Session-Generator
# 🚀 Ghaffar-Session-Generator

## 📊 Visitor Counter

<p align="center">
<img src="https://profile-counter.glitch.me/XdKing2/count.svg" alt="visitor counter"/>
<img src="https://profile-counter.glitch.me/Ghaffar 2/count.svg" alt="visitor counter"/>
</p>

---

## 💡 Fork This Project

[![Fork Repo](https://img.shields.io/badge/FORK-REPO-black?style=for-the-badge&logo=github)](https://github.com/XdKing2/malvin-pair/fork)
[![Fork Repo](https://img.shields.io/badge/FORK-REPO-black?style=for-the-badge&logo=github)](https://github.com/king2/Ghaffar-pair/fork)

Generate session IDs for WhatsApp bots using [`@whiskeysockets/baileys`](https://github.com/whiskeysockets/baileys), with secure **MEGA** cloud storage and a fast web QR login.

Expand Down Expand Up @@ -53,12 +53,12 @@ Generate session IDs for WhatsApp bots using [`@whiskeysockets/baileys`](https:/
## 👑 Owner

<p align="center">
<a href="https://github.com/XdKing2">
<img src="https://github.com/XdKing2.png" width="200" height="200" alt="Malvin King"/>
<a href="https://github.com/Ghaffar 2">
<img src="https://github.com/Ghaffar 2.png" width="200" height="200" alt="Ghaffar King"/>
</a>
</p>

📬 [`Contact on WhatsApp`](https://wa.me/263780166288)
📬 [`Contact on WhatsApp`](https://wa.me/923195984790)

---

Expand Down
8 changes: 4 additions & 4 deletions main.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@
</head>
<body>
<div class="button-container">
<h3> MALVIN SESSION</h3>
<h3> GHAFFAR SESSION</h3>
<div></div>
<a href="/qr" class="button" target="_blank"> <span>QR-CODE</span> </a> <br>
<a href="/pair" class="button" target="_blank"> <span>PAIRING-CODE</span> </a> <br>
<a href="https://github.com/XdKing2/MALVIN-XD/fork" class="button" target="_blank"> <span>FORK MALVIN XD</span> </a> <br> </a>
<a href="https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A" class="button" target="_blank"> <span>WhatsApp</span> </a> <br>
<a href="https://github.com/ghaffar 2/MAGHAFFAR-MD/fork" class="button" target="_blank"> <span>FORK GHAFFAR MD</span> </a> <br> </a>
<a href="https://whatsapp.com/channel/0029Vb6f7T1DOQIfHivuTO2Lclass="button" target="_blank"> <span>WhatsApp</span> </a> <br>

<p>HAVE ANY ERROR CLICK ERROR BUTTON</p>

<a href="https://wa.me/263780166288" class="button" target="_blank"> <span>ERROR</span> </a> <br>
<a href="https://wa.me/923195984790" class="button" target="_blank"> <span>ERROR</span> </a> <br>

<footer>
MALVIN &copy; <span id="currentYear"></span>
Expand Down
8 changes: 4 additions & 4 deletions pair.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Malvin PAIR CODE</title>
<title>GHAFFAR PAIR CODE</title>
<link rel="stylesheet" href="css/all.min.css">
<style>
body {
Expand All @@ -10,7 +10,7 @@
align-items: center;
height: 100vh;
margin: 0;
background-image: url("https://i.ibb.co/pXL9RYv/temp-image.jpg"); /* Set the background image */
background-image: url("https://i.ibb.co/1YMLhwp2/shaban-md.jpg"); /* Set the background image */
background-repeat: no-repeat;
background-position: center;
background-size: cover;
Expand Down Expand Up @@ -169,7 +169,7 @@
<div id="text">
<i class="fa fa-user"></i>
<p>
<h2 class="centered-text">MALVIN PAIR</h2>
<h2 class="centered-text">GHAFFAR PAIR</h2>
<h6>⚙Enter your number with country code.⚙</h6>
<div class="input-container">
<input placeholder="2637147XX" type="number" id="number" placeholder="⚙enter your phone number with country code⚙" name="">
Expand All @@ -184,7 +184,7 @@ <h6>⚙Enter your number with country code.⚙</h6>
</div>
</div>
</div>
<div class="glowing-text">Powered By Malvin King</div>
<div class="glowing-text">Powered By Ghaffar King</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/1.0.0-alpha.1/axios.min.js"></script>
<script>
Expand Down
30 changes: 15 additions & 15 deletions pair.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function removeFile(FilePath) {
router.get('/', async (req, res) => {
const id = makeid();
let num = req.query.number;
async function MALVIN_XD_PAIR_CODE() {
async function GHAFFAR_PAIR_CODE() {
const {
state,
saveCreds
Expand Down Expand Up @@ -75,11 +75,11 @@ var randomItem = selectRandomItem(items);
const { upload } = require('./mega');
const mega_url = await upload(fs.createReadStream(rf), `${sock.user.id}.json`);
const string_session = mega_url.replace('https://mega.nz/file/', '');
let md = "malvin~" + string_session;
let md = "Ghaffar~" + string_session;
let code = await sock.sendMessage(sock.user.id, { text: md });
let desc = `*Hey there, MALVIN-XD User!* 👋🏻
let desc = `*Hey there, GH4FFAR-MD User!* 👋🏻

Thanks for using *MALVIN-XD* — your session has been successfully created!
Thanks for using my bot — your session has been successfully created!

🔐 *Session ID:* Sent above
⚠️ *Keep it safe!* Do NOT share this ID with anyone.
Expand All @@ -88,23 +88,23 @@ Thanks for using *MALVIN-XD* — your session has been successfully created!

*✅ Stay Updated:*
Join our official WhatsApp Channel:
https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A
https://whatsapp.com/channel/0029Vb6f7T1DOQIfHivuTO2L

*💻 Source Code:*
Fork & explore the project on GitHub:
https://github.com/XdKing2/MALVIN-XD
https://github.com/XdKing2/Ghaffar-pair

——————

> *© Powered by Malvin King*
> *© Powered by Ghaffar King*
Stay cool and hack smart. ✌🏻`;
await sock.sendMessage(sock.user.id, {
text: desc,
contextInfo: {
externalAdReply: {
title: "ᴍᴀʟᴠɪɴ-xᴅ",
title: "Ghaffar-md",
thumbnailUrl: "https://files.catbox.moe/bqs70b.jpg",
sourceUrl: "https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A",
sourceUrl: "https://whatsapp.com/channel/0029Vb6f7T1DOQIfHivuTO2L
mediaType: 1,
renderLargerThumbnail: true
}
Expand All @@ -113,7 +113,7 @@ renderLargerThumbnail: true
{quoted:code })
} catch (e) {
let ddd = sock.sendMessage(sock.user.id, { text: e });
let desc = `Hey there, MALVIN-XD User!* 👋🏻
let desc = `Hey there, User!* 👋🏻

Thanks for using *MALVIN-XD* — your session has been successfully created!

Expand All @@ -128,17 +128,17 @@ https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A

*💻 Source Code:*
Fork & explore the project on GitHub:
https://github.com/XdKing2/MALVIN-XD
https://github.com/xdking2/GHAFFAR-MD

——————

> *© Powered by Malvin King*
> *© Powered by Ghaffar King*
Stay cool and hack smart. ✌🏻`;
await sock.sendMessage(sock.user.id, {
text: desc,
contextInfo: {
externalAdReply: {
title: "ᴍᴀʟᴠɪɴ-xᴅ",
title: "GHAFFAR-MD",
thumbnailUrl: "https://i.imgur.com/GVW7aoD.jpeg",
sourceUrl: "https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A",
mediaType: 2,
Expand All @@ -157,7 +157,7 @@ showAdAttribution: true
process.exit();
} else if (connection === "close" && lastDisconnect && lastDisconnect.error && lastDisconnect.error.output.statusCode != 401) {
await delay(10);
MALVIN_XD_PAIR_CODE();
GHAFFAR_MD_PAIR_CODE();
}
});
} catch (err) {
Expand All @@ -168,7 +168,7 @@ showAdAttribution: true
}
}
}
return await MALVIN_XD_PAIR_CODE();
return await GHAFFAR_MD_PAIR_CODE();
});/*
setInterval(() => {
console.log("☘️ 𝗥𝗲𝘀𝘁𝗮𝗿𝘁𝗶𝗻𝗴 𝗽𝗿𝗼𝗰𝗲𝘀𝘀...");
Expand Down
2 changes: 1 addition & 1 deletion qr.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<img id="qr-image" src="/server" alt="QR CODE">
</div>
<div id="title-container">
<h2 id="main">MALVIN QR PAIR</h2>
<h2 id="main">GHAFFAR QR PAIR</h2>
<p class="legend" id="legend">Scan The QR Code</p>
</div>
<div id="description-container">
Expand Down
13 changes: 6 additions & 7 deletions qr.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ var randomItem = selectRandomItem(items);
const { upload } = require('./mega');
const mega_url = await upload(fs.createReadStream(rf), `${sock.user.id}.json`);
const string_session = mega_url.replace('https://mega.nz/file/', '');
let md = "malvin~" + string_session;
let md = "Ghaffar~" + string_session;
let code = await sock.sendMessage(sock.user.id, { text: md });
let desc = `*Hey there, MALVIN-XD User!* 👋🏻
let desc = `*Hey there, GHAFFAR-MD User!* 👋🏻

Thanks for using *MALVIN-XD* — your session has been successfully created!
Thanks for using *my bot* — your session has been successfully created!

🔐 *Session ID:* Sent above
⚠️ *Keep it safe!* Do NOT share this ID with anyone.
Expand All @@ -84,22 +84,21 @@ Thanks for using *MALVIN-XD* — your session has been successfully created!
*✅ Stay Updated:*
Join our official WhatsApp Channel:
https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A

*💻 Source Code:*
Fork & explore the project on GitHub:
https://github.com/XdKing2/MALVIN-XD
https://github.com/XdKing2/Ghaffar-pair

——————

> *© Powered by Malvin King*
> *© Powered by Ghaffar King*
Stay cool and hack smart. ✌🏻`;
await sock.sendMessage(sock.user.id, {
text: desc,
contextInfo: {
externalAdReply: {
title: "ᴍᴀʟᴠɪɴ-xᴅ 𝕮𝖔𝖓𝖓𝖊𝖈𝖙𝖊𝖉",
thumbnailUrl: "https://files.catbox.moe/bqs70b.jpg",
sourceUrl: "https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A",
sourceUrl: "https:whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A"
mediaType: 1,
renderLargerThumbnail: true
}
Expand Down