Spaces:
Paused
Paused
𝗗𝗔𝗥𝗥𝗘𝗟𝗟 𝗠𝗨𝗖𝗛𝗘𝗥𝗜 ⚡
commited on
NEW SUBZERO UI
Browse files- plugins/about.js +16 -8
- plugins/menu2.js +42 -42
- plugins/restart.js +1 -1
- plugins/setting.js +54 -20
- plugins/update.js +40 -55
plugins/about.js
CHANGED
|
@@ -36,23 +36,31 @@ let madeMenu = `━━━━━━━━━━━━━━━━━━━━━
|
|
| 36 |
*👋 HELLO ${pushname}*\n\n *I AM SUBZERO MD*\n\n
|
| 37 |
I am WhatsApp Based Multi Device Bot Created By Darrell Mucheri T from Zimbabwe.\nMy sole purpose is to remove the burden or cost of purchusing data bundle to download Songs, Apps, Videos & Movies by using whatsapp bundles.
|
| 38 |
\n\n *For More Visit*: https://mrfrankinc.vercel.app/
|
|
|
|
| 39 |
━━━━━━━━━━━━━━━━━━━━━━━━
|
| 40 |
|
| 41 |
-
> *SOURCE CODE*
|
|
|
|
| 42 |
|
| 43 |
-
> *FOLLOW OWNER*
|
|
|
|
| 44 |
|
| 45 |
-
> *OWNER'S WHATSAPP*
|
|
|
|
| 46 |
|
| 47 |
-
> *
|
| 48 |
-
https://wa.me/265993702468/?text=SubZero+Fan+Here
|
| 49 |
|
| 50 |
-
> *SUPPORT CHANNEL*
|
|
|
|
| 51 |
|
| 52 |
-
> *FOLLOW INSTAGRAM*
|
|
|
|
| 53 |
|
| 54 |
-
> *FOLLOW OWNER*
|
|
|
|
| 55 |
|
|
|
|
| 56 |
*RELEASE DATE* - *15 December 2024*
|
| 57 |
|
| 58 |
> *MR FRANK OFC*
|
|
|
|
| 36 |
*👋 HELLO ${pushname}*\n\n *I AM SUBZERO MD*\n\n
|
| 37 |
I am WhatsApp Based Multi Device Bot Created By Darrell Mucheri T from Zimbabwe.\nMy sole purpose is to remove the burden or cost of purchusing data bundle to download Songs, Apps, Videos & Movies by using whatsapp bundles.
|
| 38 |
\n\n *For More Visit*: https://mrfrankinc.vercel.app/
|
| 39 |
+
|
| 40 |
━━━━━━━━━━━━━━━━━━━━━━━━
|
| 41 |
|
| 42 |
+
> *SOURCE CODE*
|
| 43 |
+
⛓️ https://github.com/mrfrank-ofc/SUBZERO-MD
|
| 44 |
|
| 45 |
+
> *FOLLOW OWNER*
|
| 46 |
+
🛠️ https://github.com/mrfrank-ofc/
|
| 47 |
|
| 48 |
+
> *OWNER'S WHATSAPP*
|
| 49 |
+
🪪 https://wa.me/18062212660/?text=SubZero+Fan+Here
|
| 50 |
|
| 51 |
+
> * 2ND DEVELOPER *
|
| 52 |
+
🪪 https://wa.me/265993702468/?text=SubZero+Fan+Here
|
| 53 |
|
| 54 |
+
> *SUPPORT CHANNEL*
|
| 55 |
+
🔌 https://whatsapp.com/channel/0029VagQEmB002T7MWo3Sj1D
|
| 56 |
|
| 57 |
+
> *FOLLOW INSTAGRAM*
|
| 58 |
+
🎀https://instagram.com/mrfrankofc/
|
| 59 |
|
| 60 |
+
> *FOLLOW OWNER*
|
| 61 |
+
🎊 https://youtube.com/mrfr4nk/
|
| 62 |
|
| 63 |
+
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
|
| 64 |
*RELEASE DATE* - *15 December 2024*
|
| 65 |
|
| 66 |
> *MR FRANK OFC*
|
plugins/menu2.js
CHANGED
|
@@ -23,7 +23,7 @@ const config = require('../config')
|
|
| 23 |
const {cmd , commands} = require('../command')
|
| 24 |
cmd({
|
| 25 |
pattern: "menu2",
|
| 26 |
-
react: "
|
| 27 |
desc: "get cmd list",
|
| 28 |
category: "main",
|
| 29 |
filename: __filename
|
|
@@ -45,9 +45,9 @@ menu[commands[i].category] += `*┋* ${commands[i].pattern}\n`;
|
|
| 45 |
}
|
| 46 |
}
|
| 47 |
|
| 48 |
-
let madeMenu =
|
| 49 |
-
*Hello ${pushname}*
|
| 50 |
-
|
| 51 |
|
| 52 |
━━━━━━━━━━━━━━━━━━━━
|
| 53 |
> SUBZERO COMMAND LIST 2
|
|
@@ -57,57 +57,57 @@ let madeMenu = `*❒─────────────────❒
|
|
| 57 |
|
| 58 |
*MADE BY MR FRANK OFC*
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
${menu.download}
|
| 65 |
-
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
${menu.main}
|
| 72 |
-
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
|
| 78 |
-
|
| 79 |
-
${menu.group}
|
| 80 |
-
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
-
${menu.owner}
|
| 88 |
-
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
|
| 94 |
-
|
| 95 |
-
${menu.convert}
|
| 96 |
-
|
| 97 |
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
|
| 102 |
-
|
| 103 |
-
${menu.search}
|
| 104 |
-
|
| 105 |
|
| 106 |
-
|
| 107 |
|
| 108 |
> *ᴘᴏᴡᴇʀᴇᴅ ʙʏ ᴍʀ ғʀᴀɴᴋ*
|
| 109 |
|
| 110 |
-
|
| 111 |
`
|
| 112 |
|
| 113 |
await conn.sendMessage(from,{image:{url:config.ALIVE_IMG},caption:madeMenu},{quoted:mek})
|
|
|
|
| 23 |
const {cmd , commands} = require('../command')
|
| 24 |
cmd({
|
| 25 |
pattern: "menu2",
|
| 26 |
+
react: "⚡",
|
| 27 |
desc: "get cmd list",
|
| 28 |
category: "main",
|
| 29 |
filename: __filename
|
|
|
|
| 45 |
}
|
| 46 |
}
|
| 47 |
|
| 48 |
+
let madeMenu = `*▢─────────────────▢*
|
| 49 |
+
*Hello Dear👋, ${pushname}*
|
| 50 |
+
*▢─────────────────▢*
|
| 51 |
|
| 52 |
━━━━━━━━━━━━━━━━━━━━
|
| 53 |
> SUBZERO COMMAND LIST 2
|
|
|
|
| 57 |
|
| 58 |
*MADE BY MR FRANK OFC*
|
| 59 |
|
| 60 |
+
*▢───────────────▢*
|
| 61 |
+
◈ *ᴅᴏᴡɴʟᴏᴀᴅ ᴄᴏᴍᴍᴀɴᴅs*
|
| 62 |
+
*┕───────────────▢*
|
| 63 |
+
*╭───────────────▢*
|
| 64 |
+
◈ r${menu.download}
|
| 65 |
+
*┕───────────────▢*
|
| 66 |
|
| 67 |
+
*╭───────────────▢*
|
| 68 |
+
*◈* *ᴍᴀɪɴ ᴄᴏᴍᴍᴀɴᴅs*
|
| 69 |
+
*┕───────────────▢*
|
| 70 |
+
*╭───────────────▢*
|
| 71 |
+
◈ ${menu.main}
|
| 72 |
+
*┕───────────────▢*
|
| 73 |
|
| 74 |
+
*╭───────────────▢*
|
| 75 |
+
*◈* *ɢʀᴏᴜᴘ ᴄᴏᴍᴍᴀɴᴅs*
|
| 76 |
+
*┕───────────────▢*
|
| 77 |
|
| 78 |
+
*╭───────────────▢*
|
| 79 |
+
◈ ${menu.group}
|
| 80 |
+
*┕───────────────▢*
|
| 81 |
|
| 82 |
+
*╭───────────────▢*
|
| 83 |
+
*◈* *ᴏᴡɴᴇʀ ᴄᴏᴍᴍᴀɴᴅs*
|
| 84 |
+
*┕───────────────▢*
|
| 85 |
|
| 86 |
+
*╭───────────────▢*
|
| 87 |
+
◈ ${menu.owner}
|
| 88 |
+
*┕───────────────▢*
|
| 89 |
|
| 90 |
+
*╭───────────────▢*
|
| 91 |
+
*◈* *ᴄᴏɴᴠᴇʀᴛ ᴄᴏᴍᴍᴀɴᴅs*
|
| 92 |
+
*┕───────────────▢*
|
| 93 |
|
| 94 |
+
*╭───────────────▢*
|
| 95 |
+
◈ ${menu.convert}
|
| 96 |
+
*┕───────────────▢*
|
| 97 |
|
| 98 |
+
*╭─────────────────▢*
|
| 99 |
+
*◈* *sᴇᴀʀᴄʜ ᴄᴏᴍᴍᴀɴᴅs*
|
| 100 |
+
*┕─────────────────▢*
|
| 101 |
|
| 102 |
+
*╭───────────────▢*
|
| 103 |
+
◈ ${menu.search}
|
| 104 |
+
*┕───────────────▢*
|
| 105 |
|
| 106 |
+
*▢▭▬▭▬▭▬▭▬▭▬▭▬▭▬▭▢*
|
| 107 |
|
| 108 |
> *ᴘᴏᴡᴇʀᴇᴅ ʙʏ ᴍʀ ғʀᴀɴᴋ*
|
| 109 |
|
| 110 |
+
*▢▭▬▭▬▭▬▭▬▭▬▭▬▭▬▭▢
|
| 111 |
`
|
| 112 |
|
| 113 |
await conn.sendMessage(from,{image:{url:config.ALIVE_IMG},caption:madeMenu},{quoted:mek})
|
plugins/restart.js
CHANGED
|
@@ -33,7 +33,7 @@ async(conn, mek, m,{from, quoted, body, isCmd, command, args, q, isGroup, sender
|
|
| 33 |
try{
|
| 34 |
if (!isOwner) return;
|
| 35 |
const {exec} = require("child_process")
|
| 36 |
-
reply("
|
| 37 |
await sleep(1500)
|
| 38 |
exec("pm2 restart all")
|
| 39 |
}catch(e){
|
|
|
|
| 33 |
try{
|
| 34 |
if (!isOwner) return;
|
| 35 |
const {exec} = require("child_process")
|
| 36 |
+
reply("⏳ SUBZERO RESTARTING...")
|
| 37 |
await sleep(1500)
|
| 38 |
exec("pm2 restart all")
|
| 39 |
}catch(e){
|
plugins/setting.js
CHANGED
|
@@ -31,7 +31,7 @@ cmd({
|
|
| 31 |
|
| 32 |
pattern: "settings",
|
| 33 |
|
| 34 |
-
react: "
|
| 35 |
|
| 36 |
alias: ["setting","env"],
|
| 37 |
|
|
@@ -48,25 +48,59 @@ cmd({
|
|
| 48 |
async(conn, mek, m,{from, l, quoted, body, isCmd, umarmd, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => {
|
| 49 |
|
| 50 |
try{
|
| 51 |
-
let madeSetting
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
`
|
| 71 |
|
| 72 |
|
|
|
|
| 31 |
|
| 32 |
pattern: "settings",
|
| 33 |
|
| 34 |
+
react: "⚙️",
|
| 35 |
|
| 36 |
alias: ["setting","env"],
|
| 37 |
|
|
|
|
| 48 |
async(conn, mek, m,{from, l, quoted, body, isCmd, umarmd, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => {
|
| 49 |
|
| 50 |
try{
|
| 51 |
+
let madeSetting =`
|
| 52 |
+
*⟝━━━⟢ *SUBZERO BOT SETTINGS* ⟣━━━⟞*
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
*🔎 AUTO_READ_STATUS:* ➠ ${config.AUTO_READ_STATUS}
|
| 56 |
+
➣ use .readstatus true or false
|
| 57 |
+
|
| 58 |
+
*⛓️ MODE:* ➠ ${config.MODE}
|
| 59 |
+
➣use .mode public or .mode private
|
| 60 |
+
|
| 61 |
+
*🧸 AUTO_VOICE:* ➠ ${config.AUTO_VOICE}
|
| 62 |
+
➣ use .autovoice true or false
|
| 63 |
+
|
| 64 |
+
*🎉 AUTO_STICKER:* ➠ ${config.AUTO_STICKER}
|
| 65 |
+
➣ use .autosticker true or false
|
| 66 |
+
|
| 67 |
+
*📩 AUTO_REPLY:* ➠ ${config.AUTO_REPLY}
|
| 68 |
+
➣ use .autoreply true or false
|
| 69 |
+
|
| 70 |
+
*🖼️ ALIVE_IMG:* ➠ ${config.ALIVE_IMG}
|
| 71 |
+
➣ use .aliveimg url
|
| 72 |
+
|
| 73 |
+
*✅ ALIVE_MSG:* ➠ ${config.ALIVE_MSG}
|
| 74 |
+
➣ usw .setalive
|
| 75 |
+
|
| 76 |
+
*🚯 ANTI_LINK:* ➠ ${config.ANTI_LINK}
|
| 77 |
+
➣ use .antilink true or false
|
| 78 |
+
|
| 79 |
+
*❌ ANTI_BAD:* ➠ ${config.ANTI_BAD}
|
| 80 |
+
➣ use .antibad true or false
|
| 81 |
+
|
| 82 |
+
*🕹️ PREFIX:* ➠ [${config.PREFIX}]
|
| 83 |
+
➣ use setprefix (symbol)
|
| 84 |
+
|
| 85 |
+
*🎙️ FAKE_RECORDING:* ➠ ${config.FAKE_RECORDING}
|
| 86 |
+
➣ use .fakerecording true or false
|
| 87 |
+
|
| 88 |
+
*🎀 AUTO_REACT:* ➠ ${config.AUTO_REACT}
|
| 89 |
+
➣ use autoreact true or false
|
| 90 |
+
|
| 91 |
+
*💙 HEART_REACT:* ➠ ${config.HEART_REACT}
|
| 92 |
+
➣ use .heartreact true or false
|
| 93 |
+
|
| 94 |
+
*👨💻* *OWNER_REACT:* ➠ ${config.OWNER_REACT}
|
| 95 |
+
➣ use .ownereact true or false
|
| 96 |
+
|
| 97 |
+
*🤖* * BOT_NAME:* ➠ ${config.BOT_NAME}
|
| 98 |
+
➣ use setbotname (name)
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
> © ᴄʀᴇᴀᴛᴇᴅ ʙʏ ᴍʀ ғʀᴀɴᴋ
|
| 102 |
+
|
| 103 |
+
*◈┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄◈*
|
| 104 |
`
|
| 105 |
|
| 106 |
|
plugins/update.js
CHANGED
|
@@ -1,66 +1,51 @@
|
|
| 1 |
-
/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺
|
| 2 |
-
⭐PROJECT NAME:
|
| 3 |
-
SUBZERO WHATSAPP MD BOT
|
| 4 |
-
|
| 5 |
-
⭐DEVELOPER
|
| 6 |
-
MR FRANK
|
| 7 |
-
|
| 8 |
-
⭐ MY TEAM
|
| 9 |
-
XERO CODERS
|
| 10 |
-
|
| 11 |
-
⭐ OUR WEBSITE
|
| 12 |
-
https://github.com/ZwSyntax/SUBZERO-MD
|
| 13 |
-
|
| 14 |
-
© TRY DECRYPTING IF YOU CAN⚠
|
| 15 |
-
|
| 16 |
-
╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
const config = require('../config');
|
| 23 |
-
|
| 24 |
const { exec } = require('child_process');
|
| 25 |
const { cmd } = require('../command');
|
| 26 |
|
| 27 |
cmd({
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
}, async (conn, mek, m, { from, reply }) => {
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
// تعیین دستور مناسب گیت
|
| 45 |
-
const gitCommand = fs.existsSync(`${targetFolder}/.git`)
|
| 46 |
-
? `git -C ${targetFolder} pull`
|
| 47 |
-
: `git clone ${repoUrl} ${targetFolder}`;
|
| 48 |
-
|
| 49 |
-
// اجرای دستور گیت
|
| 50 |
-
await new Promise((resolve, reject) => {
|
| 51 |
-
exec(gitCommand, (err, stdout, stderr) => {
|
| 52 |
-
if (err) {
|
| 53 |
-
reject(`Git command failed: ${stderr}`);
|
| 54 |
-
} else {
|
| 55 |
-
resolve(stdout);
|
| 56 |
-
}
|
| 57 |
-
});
|
| 58 |
-
});
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
const config = require('../config');
|
| 3 |
+
const fs = require('fs');
|
| 4 |
const { exec } = require('child_process');
|
| 5 |
const { cmd } = require('../command');
|
| 6 |
|
| 7 |
cmd({
|
| 8 |
+
pattern: "update",
|
| 9 |
+
react: "🔄",
|
| 10 |
+
desc: "Update folder from GitHub",
|
| 11 |
+
category: "system",
|
| 12 |
+
use: '.update',
|
| 13 |
+
filename: __filename
|
| 14 |
}, async (conn, mek, m, { from, reply }) => {
|
| 15 |
+
try {
|
| 16 |
+
const repoUrl = 'https://github.com/mrfrank-ofc/SUBZERO-MD';
|
| 17 |
+
const targetFolder = 'plugins';
|
| 18 |
|
| 19 |
+
// Check if target folder exists
|
| 20 |
+
if (!fs.existsSync(targetFolder)) {
|
| 21 |
+
fs.mkdirSync(targetFolder);
|
| 22 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
// Determine the correct Git command
|
| 25 |
+
const gitCommand = fs.existsSync(`${targetFolder}/.git`) ?
|
| 26 |
+
`git -C ${targetFolder} pull` :
|
| 27 |
+
`git clone ${repoUrl} ${targetFolder}`;
|
| 28 |
+
|
| 29 |
+
// Execute the Git command
|
| 30 |
+
await new Promise((resolve, reject) => {
|
| 31 |
+
exec(gitCommand, (err, stdout, stderr) => {
|
| 32 |
+
if (err) {
|
| 33 |
+
reject(`Git command failed: ${stderr}`);
|
| 34 |
+
} else {
|
| 35 |
+
resolve(stdout);
|
| 36 |
+
}
|
| 37 |
+
});
|
| 38 |
+
});
|
| 39 |
+
|
| 40 |
+
// Check if there were any updates
|
| 41 |
+
const updateOutput = await exec(`git -C ${targetFolder} status`);
|
| 42 |
+
if (updateOutput.stdout.includes("up to date")) {
|
| 43 |
+
await conn.sendMessage(from, { text: '*All plugins are up to date!*' }, { quoted: mek });
|
| 44 |
+
} else {
|
| 45 |
+
await conn.sendMessage(from, { text: '*✅ Subzero Updated completed successfully!*' }, { quoted: mek });
|
| 46 |
}
|
| 47 |
+
} catch (error) {
|
| 48 |
+
console.error(error);
|
| 49 |
+
reply(`*Error during update:* ${error.message}`);
|
| 50 |
+
}
|
| 51 |
});
|