Skip to content

Commit ec2f75d

Browse files
author
Mr Shaban
authored
Add files via upload
1 parent 9a605ff commit ec2f75d

7 files changed

+362
-0
lines changed

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
FROM node:lts-buster
3+
4+
Install Git and other dependencies
5+
RUN apt-get update && \
6+
apt-get install -y \
7+
git \
8+
ffmpeg \
9+
imagemagick \
10+
webp && \
11+
apt-get upgrade -y && \
12+
rm -rf /var/lib/apt/lists/*
13+
14+
Copy package.json and install dependencies
15+
COPY package.json .
16+
RUN npm install && npm install -g qrcode-terminal pm2
17+
18+
Copy application code
19+
COPY . .
20+
21+
Expose port and set command
22+
EXPOSE 3000
23+
CMD ["pm2-runtime", "start", "index.js"]

app.json

+182
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
{
2+
"name": "SHABAN-SOBX-MD",
3+
"description": "A Rich Whatsapp Bot By Mr Shaban",
4+
"logo": "https://i.ibb.co/9N1sJ41/Manul-Ofc-X.jpg",
5+
"keywords": ["shaban-sobx-md"],
6+
"success_url": "/",
7+
8+
"stack": "container",
9+
"env": {
10+
"SESSION_ID": {
11+
"description": "Put the your session-id here.",
12+
"required": true,
13+
"value": ""
14+
},
15+
16+
"ALIVE_IMG": {
17+
"description": "paste your image url if you don't have you can use this public url.",
18+
"required": false,
19+
"value": "https://i.ibb.co/9N1sJ41/Manul-Ofc-X.jpg"
20+
},
21+
22+
"LIVE_MSG": {
23+
"description": "paste your alive message hear.",
24+
"required": false,
25+
"value": "> [❄️] SHABAN SOBX MD Is Online ⚡"
26+
},
27+
28+
"PREFIX": {
29+
"description": "paste your bot prefix note! Don't apply null prefix.",
30+
"required": false,
31+
"value": "."
32+
},
33+
34+
"MODE": {
35+
"description": "select your bot work type public-private-inbox-group.",
36+
"required": false,
37+
"value": "public"
38+
39+
},
40+
41+
42+
"ALWAYS_ONLINE": {
43+
"description": "Make it true if want always online.",
44+
"required": false,
45+
"value": "false"
46+
},
47+
48+
"AUTO_VOICE": {
49+
"description": "Make it true if want automatic voice reply .",
50+
"required": false,
51+
"value": "false"
52+
},
53+
54+
"AUTO_REPLY": {
55+
"description": "Make it true if you want automatic reply.",
56+
"required": false,
57+
"value": "true"
58+
},
59+
60+
"AUTO_STICKER": {
61+
"description": "Make it true if you want automatic sticker.",
62+
"required": false,
63+
"value": "false"
64+
},
65+
66+
67+
"AUTO_STATUS_SEEN": {
68+
"description": "Make it true for automatic status seen.",
69+
"required": true,
70+
"value": "true"
71+
},
72+
73+
"AUTO_STATUS_REPLY": {
74+
"description": "Make it true for auto reply msg on status seen.",
75+
"required": true,
76+
"value": "true"
77+
},
78+
79+
"AUTO_STATUS_MSG": {
80+
"description": "Type custom message on status reply",
81+
"required": true,
82+
"value": "*SHABAN MD VIEWED YOUR STATUS 🧸*"
83+
},
84+
85+
"OWNER_NAME": {
86+
"description": "Type Bot Owner Name.",
87+
"required": false,
88+
"value": "Mr Shaban"
89+
},
90+
91+
"OWNER_NUMBER": {
92+
"description": "put the owner number for bot.",
93+
"required": false,
94+
"value": "923059395959"
95+
96+
},
97+
98+
"BOT_NAME": {
99+
"description": "Type here the bot name.",
100+
"required": false,
101+
"value": "『 𝐒𝐇𝐀𝐁𝐀𝐍 𝐒𝐎𝐁𝐗 𝐌𝐃 』"
102+
103+
},
104+
105+
"ANTI_LINK": {
106+
"description": "Make it true if you want bot auto remove group link.",
107+
"required": true,
108+
"value": "true"
109+
110+
},
111+
112+
"ANTI_BAD": {
113+
"description": "Make it true if you want bot auto delete bad words.",
114+
"required": false,
115+
"value": "false"
116+
},
117+
118+
"DESCRIPTION": {
119+
"description": "add caption for menu and other",
120+
"required": false,
121+
"value": "*© Gᴇɴᴇʀᴀᴛᴇᴅ ʙʏ Mʀ Sʜᴀʙᴀɴ*"
122+
},
123+
124+
"DELETE_LINKS": {
125+
"description": "remove links from group automatically without removing member",
126+
"required": false,
127+
"value": "true"
128+
},
129+
130+
"AUTO_RECORDING": {
131+
"description": "Make it true if you want auto recoding.",
132+
"required": false,
133+
"value": "false"
134+
},
135+
136+
"AUTO_TYPING": {
137+
"description": "Make it true if you want auto typing.",
138+
"required": false,
139+
"value": "false"
140+
},
141+
142+
"AUTO_REACT": {
143+
"description": "Make it true if you want react on every message.",
144+
"required": false,
145+
"value": "false"
146+
},
147+
148+
"CUSTOM_REACT": {
149+
"description": "Make it true if you want custom reactions.",
150+
"required": false,
151+
"value": "false"
152+
153+
},
154+
155+
"CUSTOM_REACT_EMOJIS": {
156+
"description": "put here custom react react emojis.",
157+
"required": false,
158+
"value": "💝,💖,💗,❤️‍🩹,❤️,🧡,💛,💚,💙,💜,🤎,🖤,🤍"
159+
},
160+
161+
"READ_CMD": {
162+
"description": "make it true if want mark commands as read.",
163+
"required": false,
164+
"value": "true"
165+
},
166+
167+
"READ_MESSAGE": {
168+
"description": "Make it true if you want bot read your all sms just now.",
169+
"required": false,
170+
"value": "false"
171+
}
172+
173+
},
174+
175+
"buildpacks": [
176+
{
177+
"url": "https://github.com/heroku/heroku-buildpack-nodejs.git"
178+
}
179+
],
180+
"stack": "heroku-24"
181+
}
182+

command.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
var commands = [];
2+
3+
function cmd(info, func) {
4+
var data = info;
5+
data.function = func;
6+
if (!data.dontAddCommandList) data.dontAddCommandList = false;
7+
if (!info.desc) info.desc = '';
8+
if (!data.fromMe) data.fromMe = false;
9+
if (!info.category) data.category = 'misc';
10+
if(!info.filename) data.filename = "Not Provided";
11+
commands.push(data);
12+
return data;
13+
}
14+
module.exports = {
15+
cmd,
16+
AddCommand:cmd,
17+
Function:cmd,
18+
Module:cmd,
19+
commands,
20+
};

config.js

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
const fs = require('fs');
2+
if (fs.existsSync('config.env')) require('dotenv').config({ path: './config.env' });
3+
4+
function convertToBool(text, fault = 'true') {
5+
return text === fault ? true : false;
6+
}
7+
module.exports = {
8+
SESSION_ID: process.env.SESSION_ID || "enter your session id here",
9+
10+
PREFIX: process.env.PREFIX || ".",
11+
// Enter Your Desired Prefix
12+
13+
BOT_NAME: process.env.BOT_NAME || "『 𝐒𝐇𝐀𝐁𝐀𝐍 𝐒𝐎𝐁𝐗 𝐌𝐃 』",
14+
// Enter Your Bot Name
15+
16+
CUSTOM_REACT: process.env.CUSTOM_REACT || "false",
17+
// make this true for custum emoji react
18+
19+
CUSTOM_REACT_EMOJIS: process.env.CUSTOM_REACT_EMOJIS || "💝,💖,💗,❤️‍🩹,❤️,🧡,💛,💚,💙,💜,🤎,🖤,🤍",
20+
// chose custom react emojis by yourself
21+
22+
DELETE_LINKS: process.env.DELETE_LINKS || "false",
23+
// automatic delete links witho remove member
24+
25+
OWNER_NUMBER: process.env.OWNER_NUMBER || "923059395959",
26+
// Set Owner Name
27+
28+
OWNER_NAME: process.env.OWNER_NAME || "𝐌𝐫 𝐒𝐡𝐚𝐛𝐚𝐧",
29+
// Set Footer
30+
31+
DESCRIPTION: process.env.DESCRIPTION || "*© Gᴇɴᴇʀᴀᴛᴇᴅ ʙʏ Mʀ Sʜᴀʙᴀɴ*",
32+
// add bot owner name
33+
34+
ALIVE_IMG: process.env.ALIVE_IMG || "https://i.ibb.co/9N1sJ41/Manul-Ofc-X.jpg",
35+
// add img for alive msg
36+
37+
LIVE_MSG: process.env.LIVE_MSG || "> [🎐] SʜᴀʙᴀN SᴏʙX MD ɪs ᴏɴʟɪɴᴇ*⚡",
38+
// add alive msg here
39+
40+
READ_MESSAGE: process.env.READ_MESSAGE || "false",
41+
// Turn true or false for automatic read msgs
42+
43+
AUTO_REACT: process.env.AUTO_REACT || "false",
44+
// make this true or false for auto react on all msgs
45+
46+
ANTI_BAD: process.env.ANTI_BAD || "false",
47+
// false or true for anti bad words
48+
49+
AUTO_STATUS_SEEN: process.env.AUTO_STATUS_SEEN || "true",
50+
// make true or false status auto seen
51+
52+
AUTO_STATUS_REPLY: process.env.AUTO_STATUS_REPLY || "false",
53+
// make true if you want auto reply on status
54+
55+
AUTO_STATUS_MSG: process.env.AUTO_STATUS__MSG || "*[❄️] Hi there, SHABAN-SOBX-MD viewed your Status🎐*",
56+
57+
// set the auto reply massage on status reply
58+
MODE: process.env.MODE || "public",
59+
// make bot public-private-inbox-group
60+
61+
ANTI_LINK: process.env.ANTI_LINK || "true",
62+
// make anti link true,false for groups
63+
64+
AUTO_VOICE: process.env.AUTO_VOICE || "false",
65+
// make true for send automatic voices
66+
67+
AUTO_STICKER: process.env.AUTO_STICKER || "false",
68+
// make true for automatic stickers
69+
70+
AUTO_REPLY: process.env.AUTO_REPLY || "false",
71+
// make true or false automatic text reply
72+
73+
ALWAYS_ONLINE: process.env.ALWAYS_ONLINE || "false",
74+
// maks true for always online
75+
76+
PUBLIC_MODE: process.env.PUBLIC_MODE || "true",
77+
// make false if want private mod
78+
79+
AUTO_TYPING: process.env.AUTO_TYPING || "false",
80+
// true for automatic show typing
81+
82+
READ_CMD: process.env.READ_CMD || "true",
83+
// true if want mark commands as read
84+
85+
AUTO_RECORDING: process.env.AUTO_RECORDING || "false"
86+
// make it true for auto recoding
87+
};

index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "SHABAN-SOBX-MD",
3+
"version": "1.0.4",
4+
"description": "THE BEST BOT IN THE UNIVERSE",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "pm2 start index.js --deep-monitoring --attach --name SHABAN-SOBX-MD",
8+
"stop": "pm2 stop SHABAN-SOBX-MD",
9+
"restart": "pm2 restart SHABAN-SOBX-MD"
10+
},
11+
"dependencies": {
12+
"@whiskeysockets/baileys": "6.6.0",
13+
"@adiwajshing/keyed-db": "^0.2.4",
14+
"@dark-yasiya/yt-dl.js": "1.0.5",
15+
"pino": "^7.0.5",
16+
"pm2": "^5.2.0",
17+
"util": "^0.12.4",
18+
"express": "latest",
19+
"axios": "^1.2.5",
20+
"crypto-digest-sync": "^1.0.0",
21+
"crypto-js": "latest",
22+
"file_size_url": "1.0.4",
23+
"fs-extra": "^11.1.0",
24+
"fs": "^0.0.1-security",
25+
"ffmpeg": "^0.0.4",
26+
"file-type": "^16.5.3",
27+
"fluent-ffmpeg": "^2.1.2",
28+
"form-data": "^4.0.0",
29+
"google-tts-api": "^2.0.2",
30+
"path": "^0.12.7",
31+
"node-fetch": "^2.6.1",
32+
"btch-downloader": "^2.2.9",
33+
"megajs": "^1.1.0",
34+
"wa_set_pkg": "1.0.5",
35+
"wa-sticker-formatter": "^4.4.4",
36+
"path": "^0.12.7",
37+
"vm": "^0.1.0",
38+
"cheerio": "^1.0.0-rc.12",
39+
"ruhend-scraper" : "8.0.3",
40+
"qrcode-terminal": "^0.12.0",
41+
"wikipedia":"2.1.2",
42+
"yt-search":"2.11.1",
43+
"api-dylux":"1.8.5",
44+
"@mrnima/tiktok-downloader":"1.0.0",
45+
"@mrnima/facebook-downloader":"1.0.0",
46+
"mrnima-moviedl":"1.0.0"
47+
}
48+
}

ᴍʀ sʜᴀʙᴀɴ

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This Project Was Created By Mr Shaban

0 commit comments

Comments
 (0)