Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hah #50

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Hah #50

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
14 changes: 7 additions & 7 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "X-BOT-MD",
"name": "𝚇𝙴𝙽𝙰-𝙼𝙳💌🪻",
"version": "3.0.0",
"description": "X-BOT-MD Simple WhatsApp Bot",
"logo": "https://i.imgur.com/Q2UNwXR.jpg",
"description": "𝚇𝙴𝙽𝙰-𝙼𝙳 Simple WhatsApp Bot",
"logo": "https://i.imgur.com/3PqqACp.jpeg",
"keywords": ["whatsapp", "bot", "md", "multi-device"],
"repository": "https://github.com/A-S-W-I-N-S-P-A-R-K-Y/X-BOT-MD",
"repository": "https://github.com/Unnifx/X-BOT-MD",
"stack": "container",
"env": {
"SESSION_ID": {
Expand All @@ -19,7 +19,7 @@
"SUDO": {
"description": "Enter Numbers With Country Code Without + Separated With , To Add More Numbers",
"required": true,
"value": "917012984396"
"value": "919074403240"
},
"HEROKU_APP_NAME": {
"description": "Enter Your Heroku App Name Same As Above You Entered",
Expand All @@ -32,7 +32,7 @@
"STICKER_DATA": {
"description": "Enter Your Sticker PackName And Author Name",
"required": false,
"value": "X BOT MD;ASWIN SPARKY"
"value": "𝚇𝙴𝙽𝙰-𝙼𝙳 𝙱𝙾𝚃💌🪻;ᴀᴅᴜʟ ᴠꜱ"
},
"AUDIO_DATA": {
"description": "Enter Your Owner Name",
Expand All @@ -42,7 +42,7 @@
"BOT_INFO": {
"description": "Enter Your Owner Number",
"required": false,
"value": "X-BOT-MD;ASWIN SPARKY;https://i.imgur.com/r3GZeiX.jpeg"
"value": "𝚇𝙴𝙽𝙰-𝙼𝙳🪻💌;𝙰𝙳𝚄𝙻 𝚅𝚂;https://i.imgur.com/3PqqACp.jpeg"
},
"ALWAYS_ONLINE": {
"description": "Enter Your Bot Name",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "X-BOT-MD",
"name": "𝚇𝙴𝙽𝙰-𝙼𝙳💌🪻",
"version": "3.2.0",
"description": "WhatsApp Helper Bot",
"description": "𝚇𝙴𝙽𝙰 𝙼𝚄𝙻𝚃𝙸 𝙳𝙴𝚅𝙸𝙲𝙴 Bot",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand All @@ -10,13 +10,13 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/A-S-W-I-N-S-P-A-R-K-Y/X-BOT-MD.git"
"url": "git+https://github.com/Unnifx/X-BOT-MD"
},
"keywords": [
"bot",
"whatsapp"
],
"author": "ASWIN SPARKY",
"author": "ᴀᴅᴜʟ ᴠ ꜱ",
"license": "ISC",
"dependencies": {
"@types/node": "^18.0.6",
Expand Down
20 changes: 10 additions & 10 deletions plugins/_menu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const {
Sparky,
𝙰𝙳𝚄𝙻𝚅𝚂,
commands,
isPublic
} = require("../lib/plugins.js");
Expand Down Expand Up @@ -51,28 +51,28 @@ Sparky(
• uptime : ${await m.uptime()}
• plugins : ${commands.length}\n ${readMore}\n\n`
let cmnd = [];
let Sparky;
let 𝙰𝙳𝚄𝙻𝚅𝚂;
let type = [];
commands.map((command, num) => {

if (command.name) {
let SparkyName = command.name
let 𝙰𝙳𝚄𝙻𝚅𝚂Name = command.name
Sparky = SparkyName.source.split('\\s*')[1]
.toString()
.match(/(\W*)([A-Za-züşiğ öç1234567890]*)/)[2];
}

if (command.dontAddCommandList || Sparky === undefined) return;
if (command.dontAddCommandList || 𝙰𝙳𝚄𝙻𝚅𝚂 === undefined) return;

if (!command.dontAddCommandList && Sparky !== undefined) {
if (!command.dontAddCommandList && 𝙰𝙳𝚄𝙻𝚅𝚂 !== undefined) {
let category;
if (!command.category) {
category = "misc";
} else {
category = command.category.toLowerCase();
}
cmnd.push({
Sparky, category: category
𝙰𝙳𝚄𝙻𝚅𝚂, category: category
});
if (!type.includes(category)) type.push(category);
}
Expand All @@ -87,11 +87,11 @@ Sparky(
comad.forEach(({
Sparky
}, num) => {
menu += `• ${Sparky.trim()}\n`
menu += `• ${𝙰𝙳𝚄𝙻𝚅𝚂.trim()}\n`
});
});

let sperky = { "key": { "participants":"[email protected]", "remoteJid": "status@broadcast", "fromMe": false, "id": "Halo" }, "message": { "contactMessage": { "displayName": "X BOT MD V3","vcard": `BEGIN:VCARD\nVERSION:3.0\nN:Sy;Bot;;;\nFN:y\nitem1.TEL;waid=${m.sender.split('@')[0]}:${m.sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD` }}, "participant": "[email protected]" }
let 𝙰𝙳𝚄𝙻𝚅𝚂 = { "key": { "participants":"[email protected]", "remoteJid": "status@broadcast", "fromMe": false, "id": "Halo" }, "message": { "contactMessage": { "displayName": "X BOT MD V3","vcard": `BEGIN:VCARD\nVERSION:3.0\nN:Sy;Bot;;;\nFN:y\nitem1.TEL;waid=${m.sender.split('@')[0]}:${m.sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD` }}, "participant": "[email protected]" }
return await client.sendMessage(m.jid , { text : font.tiny(menu),
contextInfo: { externalAdReply: {
title: font.tiny(`Hey there ${m.pushName}`),
Expand All @@ -101,10 +101,10 @@ mediaUrl: URL,
mediaType: 1,
showAdAttribution: true,
renderLargerThumbnail: false,
thumbnailUrl: `${BOT_INFO.split(";")[2]}` }}},{ quoted: sperky })
thumbnailUrl: `${BOT_INFO.split(";")[2]}` }}},{ quoted: 𝙰𝙳𝚄𝙻𝚅𝚂 })
}
} catch (e) {
m.error(`hey : ${e}`)
}
}
);
);
24 changes: 12 additions & 12 deletions plugins/download.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const {
Sparky,
𝙰𝙳𝚄𝙻𝚅𝚂,
isPublic
} = require("../lib/plugins.js");
let gis = require("g-i-s");
Expand All @@ -21,7 +21,7 @@ Sparky(
args = args || m.quoted?.text;
if (!args) return await m.reply("_Enter Link_");
let dl = await client.sendMessage(m.jid, {
text: "_Downloading..._"
text: "_𝙿𝚕𝚎𝚊𝚜𝚎 𝚠𝚊𝚒𝚝 𝚢𝚘𝚞𝚛 𝚟𝚎𝚍𝚒𝚘, 𝚊𝚞𝚍𝚒𝚘, 𝚖𝚙𝟹 𝚒𝚜 𝚍𝚘𝚠𝚗𝚕𝚘𝚊𝚍𝚒𝚗𝚐 𝚋𝚢 xᴇɴᴀ-ᴍᴅ💌🪻.._"
}, {
quoted: m
})
Expand All @@ -33,13 +33,13 @@ Sparky(
}
} catch (e) {
client.sendMessage(m.jid, {
text: `_Error_`, edit: dl.key
text: `_𝙾𝚘𝚖𝚋𝚒𝚒𝚒𝚒_`, edit: dl.key
})
}
}
);

Sparky(
𝙰𝙳𝚄𝙻𝚅𝚂(
{
name: "story",
fromMe: isPublic,
Expand All @@ -52,7 +52,7 @@ Sparky(
args = args || m.quoted?.text;
if (!args) return await m.reply("_Enter Link_");
let dl = await client.sendMessage(m.jid, {
text: "_Just a moment..._"
text: "_𝚓𝚞𝚜𝚝 𝚠𝚊𝚒𝚝 𝚊𝚗𝚍 𝚜𝚎𝚎𝚎𝚎😌👍🏻..._"
}, {
quoted: m
})
Expand All @@ -72,7 +72,7 @@ Sparky(
}
);

Sparky(
𝙰𝙳𝚄𝙻𝚅𝚂(
{
name: "img",
fromMe: isPublic,
Expand Down Expand Up @@ -103,7 +103,7 @@ Sparky(
amount] = args.split(",");
let result = await gimage(query, amount);
await m.reply(
`_Downloading ${amount || 5} images for ${query}_`
`_𝙿𝚕𝚎𝚊𝚜𝚎 𝚠𝚊𝚒𝚝 𝚢𝚘𝚞𝚛 𝙸𝙼𝙶 𝚒𝚜 𝚍𝚘𝚠𝚗𝚕𝚘𝚊𝚍𝚒𝚗𝚐 𝚋𝚢 xᴇɴᴀ-ᴍᴅ💌🪻.._ ${amount || 5} images for ${query}_`
);
for (let i of result) {
await m.sendMsg(m.jid , i, {}, "image")
Expand All @@ -116,7 +116,7 @@ Sparky(
);


Sparky(
𝙰𝙳𝚄𝙻𝚅𝚂(
{
name: "gdrive",
fromMe: isPublic,
Expand All @@ -134,7 +134,7 @@ var document= await fetch(`${API}/api/downloader/gdrive?url=${args}`);
}
);

Sparky(
𝙰𝙳𝚄𝙻𝚅𝚂(
{
name: "mediafire",
fromMe: isPublic,
Expand All @@ -153,7 +153,7 @@ var document= await fetch(`${API}/api/downloader/mediafire?url=${args}`);
);


Sparky(
𝙰𝙳𝚄𝙻𝚅𝚂(
{
name: "xvdl",
fromMe: isPublic,
Expand All @@ -165,15 +165,15 @@ Sparky(
}) => {
args = args || m.quoted?.text;
if (!args) return await m.reply("_Enter Link/Reply to a link_");
m.reply("_Downloading..._")
m.reply("_𝚈𝚘𝚞𝚛 𝚡𝚟𝚎𝚍𝚒𝚘 𝚒𝚜 𝚍𝚘𝚠𝚗𝚕𝚘𝚍𝚒𝚗𝚐 𝚊𝚕𝚙𝚊𝚜𝚊𝚖𝚊𝚢𝚊𝚖 𝚗𝚒𝚕𝚔𝚞𝚔𝚊😌🤤 𝙼𝙰𝙳𝙴 𝙱𝚈 𝙰𝙳𝚄𝙻 𝚅𝚂..._")
let xvdl = await fetch(`${API}/api/downloader/xdl?url=${args}`);
var data = await xvdl.json();

client.sendMessage(m.jid, { video :{ url: data.data }, caption: "🤤💦" }, {quoted: m })
}
);

Sparky(
𝙰𝙳𝚄𝙻𝚅𝚂(
{
name: "ytv",
fromMe: isPublic,
Expand Down
2 changes: 1 addition & 1 deletion render.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
- type: web
name: X-BOT-MD
name: 𝚇𝙴𝙽𝙰-𝙼𝙳
env: docker
region: Frankfurt
plan: free
Expand Down