├── gif
└── gif.js
├── media
├── media.js
├── rm.gif
├── antibot.gif
└── remover.gif
├── auth
└── author.json
├── framework
├── dl
│ ├── dl.json
│ ├── Function.js
│ └── ytdl-core.js
├── traduction.js
├── app.js
├── france.js
├── ytdl-core.js
├── imgur.js
├── flash.js
└── mesfonctions.js
├── .gitignore
├── heroku.yml
├── Dockerfile
├── commands
├── Reboot.js
├── Img.js
├── Tempmails.js
├── Ping.js
├── Fancy.js
├── Events.js
├── View-once.js
├── Profile.js
├── Alive.js
├── Heroku.js
├── Uptime.js
├── Weather.js
├── Sc.js
├── General.js
├── YouTube.js
├── YT-search.js
├── Menu.js
├── A.I.js
├── Anime.js
├── Downloads.js
├── Audios.js
└── Conversion.js
├── README.md
├── package.json
├── set.js
├── bdd
├── banUser.js
├── banGroup.js
├── onlyAdmin.js
├── alive.js
├── hentai.js
├── welcome.js
├── level.js
├── warn.js
├── cron.js
├── stickcmd.js
├── sudo.js
├── theme.js
├── mention.js
├── antibot.js
├── antilien.js
└── antiword.js
└── app.json
/gif/gif.js:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/media/media.js:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/auth/author.json:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/media/rm.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/D4X-UMAR/GOLD-MD/HEAD/media/rm.gif
--------------------------------------------------------------------------------
/media/antibot.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/D4X-UMAR/GOLD-MD/HEAD/media/antibot.gif
--------------------------------------------------------------------------------
/media/remover.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/D4X-UMAR/GOLD-MD/HEAD/media/remover.gif
--------------------------------------------------------------------------------
/framework/dl/dl.json:
--------------------------------------------------------------------------------
1 | {
2 | "auther" : "UMAR",
3 | "regards" : "CODED BY UMAR"
4 | }
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /auth
2 | /set.env
3 | /package-lock.json
4 | /node_modules
5 | /store.json
6 | /audio.mp3
7 |
8 |
--------------------------------------------------------------------------------
/heroku.yml:
--------------------------------------------------------------------------------
1 | build:
2 | docker:
3 | worker: Dockerfile
4 | run:
5 | worker: npm run flashmd
6 |
7 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:lts-buster
2 |
3 | RUN apt-get update && \
4 | apt-get install -y \
5 | ffmpeg \
6 | imagemagick \
7 | webp && \
8 | apt-get upgrade -y && \
9 | npm i pm2 -g && \
10 | rm -rf /var/lib/apt/lists/*
11 |
12 | RUN git clone https://github.com/D4X-UMAR/GOLD-MD.git /root/D4X-UMAR
13 | WORKDIR /root/D4X-UMAR/
14 |
15 |
16 | COPY package.json .
17 | RUN npm install pm2 -g
18 | RUN npm install --legacy-peer-deps
19 |
20 | COPY . .
21 |
22 | EXPOSE 5000
23 |
24 | CMD ["node", "flash.js"]
25 |
26 |
27 |
--------------------------------------------------------------------------------
/commands/Reboot.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | GOLD-MD
5 |
6 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
7 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
8 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
9 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
10 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
11 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
12 |
13 | **/
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | const {france}=require("../framework/france")
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | france({nomCom:"rebot",categorie:"Mods",reaction:"🔰"},async(dest,z,com)=>{
31 |
32 |
33 |
34 | const{repondre,ms,dev,superUser}=com;
35 |
36 | if(!superUser)
37 | {
38 | return repondre("Yeh cmnd sirf mere lie hai");
39 | }
40 |
41 | const {exec}=require("child_process")
42 |
43 | repondre("*GOLD-MD IS RE-BOTING...*");
44 |
45 | exec("pm2 restart all");
46 |
47 |
48 |
49 |
50 |
51 |
52 | })
53 |
--------------------------------------------------------------------------------
/commands/Img.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | 🇫🇱🇦🇸🇭-🇲🇩
4 |
5 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
6 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
7 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
8 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
9 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : 𝗙𝗹𝗮𝘀𝗵 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
10 | * @𝗼𝘄𝗻𝗲𝗿: 𝗙𝗿𝗮𝗻𝗰𝗲 𝗞𝗶𝗻𝗴
11 |
12 | **/
13 |
14 |
15 | const {france} = require('../framework/france');
16 | var gis = require('g-i-s');
17 |
18 |
19 | france({
20 | nomCom: "img",
21 | categorie: "Search",
22 | reaction: "🔰"
23 | },
24 | async (dest, zk, commandeOptions) => {
25 | const { repondre, ms, arg } = commandeOptions;
26 |
27 | if (!arg[0]) {
28 | repondre('Apko kis chiz ki pic chahye..?');
29 | return;
30 | }
31 |
32 | const searchTerm = arg.join(" ");
33 | //repondre("termes " +searchTerm);
34 | gis(searchTerm,envoiImage);
35 |
36 | function envoiImage(e,r)
37 | {
38 | if(e){repondre("oups une error ")}else{for(var a=0;a<5;a++){zk.sendMessage(dest,{image:{url:r[a].url}},{quoted:ms});}}
39 |
40 | }
41 |
42 | //gis(searchTerm,envoiImage);
43 |
44 | });
45 |
--------------------------------------------------------------------------------
/commands/Tempmails.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | GOLD-MD
4 |
5 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
6 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
7 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
8 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
9 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
10 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
11 |
12 | **/
13 |
14 |
15 |
16 |
17 |
18 | "use strict";
19 | Object.defineProperty(exports, "__esModule", { value: true });
20 | const { france } = require("../framework/france");
21 | france({ nomCom: "tmail", reaction: "🔰", nomFichier: __filename }, async (dest, zk, commandeOptions) => {
22 | console.log("Commande saisie !!!s");
23 | let z = '*MADE BY GOLD MD* \n\n ' + "Niche kisi bhi Link per click karo aur temp mails website khul jaye gy waha se unlimited temp mails mile ge apko Enjoy\n\n";
24 | let d = '🔰 https://tempumail.com\n\n 🔰 https://etempmail.com\n\n 🔰 https://ghostmail.one\n\n 🔰 https://tempmailid.com';
25 | let varmess = z + d;
26 | var img = 'https://is.gd/s0OOVO';
27 | await zk.sendMessage(dest, { image: { url: img }, caption: varmess });
28 | //console.log("montest")
29 | });
30 |
31 |
--------------------------------------------------------------------------------
/commands/Ping.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | 🇫🇱🇦🇸🇭-🇲🇩
4 |
5 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
6 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
7 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
8 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
9 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : 𝗙𝗹𝗮𝘀𝗵 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
10 | * @𝗼𝘄𝗻𝗲𝗿: 𝗙𝗿𝗮𝗻𝗰𝗲 𝗞𝗶𝗻𝗴
11 |
12 | **/
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | const { france } = require("../framework/france");
25 | const moment = require("moment-timezone");
26 | const { default: axios } = require('axios');
27 | //const conf = require('../set');
28 |
29 |
30 | france({ nomCom: 'ping',
31 | desc: 'To check ping',
32 | Categorie: 'General',
33 | reaction: '🔰',
34 | fromMe: 'true',
35 |
36 |
37 | },
38 | async (dest, zk, commandeOptions) => {
39 | const { ms, arg, repondre } = commandeOptions;
40 | const { start} = new Date().getTime()
41 | return repondre('*🔰GOLD-MD🔰*\n ```' + 786 + '``` *|2x•SPEED|*')
42 | const { end } = new Date().getTime()
43 | await zok.sendMessage('*🔰GOLD-MD🔰*\n ```' + (end - start) + '``` *|2x•SPEED|*')
44 | }
45 | )
46 |
--------------------------------------------------------------------------------
/framework/traduction.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | const _0x42989c=_0x13ea;(function(_0xc9ee25,_0x478089){const _0x5a9b9e=_0x13ea,_0x3395be=_0xc9ee25();while(!![]){try{const _0x32b7e6=-parseInt(_0x5a9b9e(0xf9))/0x1+-parseInt(_0x5a9b9e(0x102))/0x2*(-parseInt(_0x5a9b9e(0xf8))/0x3)+-parseInt(_0x5a9b9e(0xfd))/0x4*(parseInt(_0x5a9b9e(0xfc))/0x5)+-parseInt(_0x5a9b9e(0xfa))/0x6+-parseInt(_0x5a9b9e(0xfb))/0x7*(-parseInt(_0x5a9b9e(0x101))/0x8)+parseInt(_0x5a9b9e(0xfe))/0x9*(-parseInt(_0x5a9b9e(0x104))/0xa)+parseInt(_0x5a9b9e(0xf7))/0xb;if(_0x32b7e6===_0x478089)break;else _0x3395be['push'](_0x3395be['shift']());}catch(_0x555ac6){_0x3395be['push'](_0x3395be['shift']());}}}(_0x4368,0x38989));function _0x4368(){const _0x57ff1c=['exports','8vmwEwM','58244qnRhnO','text','20ntVQlO','4601102YYcRog','45aormIE','322151oWcVto','1446648GIOSDJ','2568524fTsipp','5xaVRDF','1189168hfbCCv','583542WzOoKj','translatte'];_0x4368=function(){return _0x57ff1c;};return _0x4368();}const translatte=require(_0x42989c(0xff));async function traduire(_0xd0f5e9,_0x122fd1){const _0x28f876=_0x42989c;try{const _0x164243=await translatte(_0xd0f5e9,_0x122fd1);return _0x164243[_0x28f876(0x103)];}catch(_0x116d9c){throw _0x116d9c;}}function _0x13ea(_0x29b6f1,_0x16085f){const _0x436830=_0x4368();return _0x13ea=function(_0x13ea29,_0x243942){_0x13ea29=_0x13ea29-0xf7;let _0x2783ef=_0x436830[_0x13ea29];return _0x2783ef;},_0x13ea(_0x29b6f1,_0x16085f);}module[_0x42989c(0x100)]=traduire;
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # ( =========> • GOLD MD • <========= )
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 | # *_JUST • [FORK](https://dashboard.heroku.com/new?template=https://github.com/D4X-UMAR/GOLD-MD/fork) • THE GOLD-MD REPO_*
12 |
13 |
14 |
15 | # *_GET • [SESSION ID](https://gold-md-by-umar.vercel.app/) • FOR GOLD-MD_GOLD-MD_*
16 |
17 |
18 |
19 | # *_NOW • [DEPLOY](https://dashboard.heroku.com/new?button-url=https://github.com/D4X-UMAR/GOLD-MD&template=https://github.com/D4X-UMAR/GOLD-MD) • GOLD-MD ON HEROKU_*
20 |
21 |
22 |
23 | # *_FOLLOW • [WHATSAPP CHANNEL](https://whatsapp.com/channel/0029VaZtuAxLI8YeUWRXBg3Y) •_*
24 |
25 |
26 |
27 | # *_CONTACT ME ON • [WHATSAPP](https://wa.me/233201817959) •_*
28 |
29 |
<>
30 |
31 | # *_DEVELOPER_*
32 |
33 | # ( => • UMAR • <= )
34 |
35 |
36 |
--------------------------------------------------------------------------------
/framework/app.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | 'use strict';
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | function _0x56fd(){var _0x29143a=['key','84QqQDgx','824447gZWaqO','5270907jrbYHL','2110842pTxuEx','sendMessage','60LrJyEx','4704800TiQblD','__esModule','reagir','30WHrqzf','53226cHQtiG','11dblClD','4pnyVrh','215200vujzlO','74036508NUoPlz'];_0x56fd=function(){return _0x29143a;};return _0x56fd();}function _0xcaa3(_0x73ca9f,_0x2ec7b2){var _0x56fdda=_0x56fd();return _0xcaa3=function(_0xcaa396,_0x2e08e8){_0xcaa396=_0xcaa396-0x126;var _0x56fc2a=_0x56fdda[_0xcaa396];return _0x56fc2a;},_0xcaa3(_0x73ca9f,_0x2ec7b2);}var _0x197caf=_0xcaa3;(function(_0x3ec0f7,_0x1696d2){var _0x405a66=_0xcaa3,_0x53ff49=_0x3ec0f7();while(!![]){try{var _0x47daa9=parseInt(_0x405a66(0x133))/0x1*(-parseInt(_0x405a66(0x12e))/0x2)+-parseInt(_0x405a66(0x134))/0x3+parseInt(_0x405a66(0x12f))/0x4*(-parseInt(_0x405a66(0x127))/0x5)+parseInt(_0x405a66(0x12c))/0x6*(parseInt(_0x405a66(0x132))/0x7)+-parseInt(_0x405a66(0x128))/0x8+parseInt(_0x405a66(0x135))/0x9*(-parseInt(_0x405a66(0x12b))/0xa)+-parseInt(_0x405a66(0x12d))/0xb*(-parseInt(_0x405a66(0x130))/0xc);if(_0x47daa9===_0x1696d2)break;else _0x53ff49['push'](_0x53ff49['shift']());}catch(_0x2af3d6){_0x53ff49['push'](_0x53ff49['shift']());}}}(_0x56fd,0xe3c78));Object['defineProperty'](exports,_0x197caf(0x129),{'value':!![]}),exports['reagir']=void 0x0;async function reagir(_0xa780dd,_0x315b13,_0x16e734,_0x23d190){var _0x116d97=_0x197caf;await _0x315b13[_0x116d97(0x126)](_0xa780dd,{'react':{'text':_0x23d190,'key':_0x16e734[_0x116d97(0x131)]}});}exports[_0x197caf(0x12a)]=reagir;
14 |
--------------------------------------------------------------------------------
/commands/Fancy.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | • GOLD MD WHATSAPP BOT •
6 |
7 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
8 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
9 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
10 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
11 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
12 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
13 |
14 | **/
15 |
16 |
17 |
18 |
19 | const { france } = require("../framework/france");
20 | const fancy = require("../commands/Styles");
21 |
22 | france({ nomCom: "fancy", categorie: "General", reaction: "🔰" }, async (dest, zk, commandeOptions) => {
23 | const { arg, repondre, prefixe } = commandeOptions;
24 | const id = arg[0]?.match(/\d+/)?.join('');
25 | const text = arg.slice(1).join(" ");
26 |
27 | try {
28 | if (id === undefined || text === undefined) {
29 | return await repondre(`\nExample : ${prefixe}fancy 10 GOLD-MD\n` + String.fromCharCode(8206).repeat(4001) + fancy.list('GOLD-MD', fancy));
30 | }
31 |
32 | const selectedStyle = fancy[parseInt(id) - 1];
33 | if (selectedStyle) {
34 | return await repondre(fancy.apply(selectedStyle, text));
35 | } else {
36 | return await repondre('_Style introuvable :(_');
37 | }
38 | } catch (error) {
39 | console.error(error);
40 | return await repondre('_Une erreur s\'est produite :(_');
41 | }
42 | });
43 |
--------------------------------------------------------------------------------
/framework/france.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | const _0x5ef4b9=_0x537b;(function(_0x4a030c,_0x188987){const _0x2720a7=_0x537b,_0x1b5572=_0x4a030c();while(!![]){try{const _0x521d65=-parseInt(_0x2720a7(0x129))/0x1*(parseInt(_0x2720a7(0x11c))/0x2)+-parseInt(_0x2720a7(0x120))/0x3+-parseInt(_0x2720a7(0x11d))/0x4*(-parseInt(_0x2720a7(0x124))/0x5)+-parseInt(_0x2720a7(0x11e))/0x6*(parseInt(_0x2720a7(0x119))/0x7)+-parseInt(_0x2720a7(0x126))/0x8*(-parseInt(_0x2720a7(0x11f))/0x9)+parseInt(_0x2720a7(0x121))/0xa+parseInt(_0x2720a7(0x122))/0xb;if(_0x521d65===_0x188987)break;else _0x1b5572['push'](_0x1b5572['shift']());}catch(_0xa0857c){_0x1b5572['push'](_0x1b5572['shift']());}}}(_0x5bf9,0x41a9a));var tabCmds=[];let cm=[];function _0x537b(_0x414e58,_0x2d5b1c){const _0x5bf913=_0x5bf9();return _0x537b=function(_0x537bac,_0x116568){_0x537bac=_0x537bac-0x119;let _0x340454=_0x5bf913[_0x537bac];return _0x340454;},_0x537b(_0x414e58,_0x2d5b1c);}function _0x5bf9(){const _0xfabc31=['categorie','General','174GEOxrA','1468056mqfDTn','2736918PyYdeR','153zwzQFl','1333875KSdbhC','3077470oJEIpj','3487396jhlJbZ','reaction','5HfkPye','fonction','112352eGkhOC','exports','push','699jhmcQo','7YGdaod'];_0x5bf9=function(){return _0xfabc31;};return _0x5bf9();}function france(_0x357529,_0x32f5a2){const _0x4b5aa0=_0x537b;let _0x8d5da1=_0x357529;return!_0x357529[_0x4b5aa0(0x11a)]&&(_0x8d5da1[_0x4b5aa0(0x11a)]=_0x4b5aa0(0x11b)),!_0x357529[_0x4b5aa0(0x123)]&&(_0x8d5da1[_0x4b5aa0(0x123)]='🪰'),_0x8d5da1[_0x4b5aa0(0x125)]=_0x32f5a2,cm[_0x4b5aa0(0x128)](_0x8d5da1),_0x8d5da1;}module[_0x5ef4b9(0x127)]={'france':france,'Module':france,'cm':cm};
--------------------------------------------------------------------------------
/commands/Events.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | • GOLD MD WHATSAPP BOT •
4 |
5 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
6 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
7 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
8 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
9 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
10 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
11 |
12 | **/
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | const { france } = require('../framework/france');
22 | const { attribuerUnevaleur } = require('../bdd/welcome');
23 |
24 | async function events(nomCom) {
25 | france({
26 | nomCom: nomCom,
27 | categorie: 'Group'
28 | }, async (dest, zk, commandeOptions) => {
29 | const { ms, arg, repondre, superUser, verifAdmin } = commandeOptions;
30 |
31 | if (verifAdmin || superUser) {
32 | if (!arg[0] || arg.join(' ') === ' ') {
33 | repondre(nomCom + ' ' + ' on to active and ' + ' ' + nomCom + ' ' + 'off to put off');
34 | } else {
35 | if (arg[0] === 'on' || arg[0] === 'off') {
36 |
37 | await attribuerUnevaleur(dest, nomCom, arg[0]);
38 | repondre( nomCom + "Activate ho gaya" + arg[0]);
39 | } else {
40 | repondre('Likho on activate karne ke lie or Likho off De-activate karne ke lie');
41 | }
42 | }
43 | } else {
44 | repondre('Aap yeh command use nahi kar sakte ');
45 | }
46 | });
47 | }
48 |
49 | // Appel de la fonction events pour les valeurs 'welcome' et 'goodbye'
50 | events('welcome');
51 | events('goodbye');
52 | events('antipromote');
53 | events('antidemote') ;
54 |
--------------------------------------------------------------------------------
/commands/View-once.js:
--------------------------------------------------------------------------------
1 | const {france}=require("../framework/france")
2 | const {getContentType}=require("@whiskeysockets/baileys")
3 |
4 |
5 |
6 | france({nomCom:"vv",categorie:"General",reaction:"🔰"},async(dest,zk,commandeOptions)=>{
7 |
8 | const {ms,msgRepondu,repondre}=commandeOptions;
9 |
10 |
11 | if(!msgRepondu){return repondre("_Kisi bhi view once pic ya video jo sirf 1 bar open hoti hai usko mention ker ke likho .vv_");}
12 |
13 |
14 | if(msgRepondu.viewOnceMessageV2)
15 | {
16 | if(msgRepondu.viewOnceMessageV2.message.imageMessage)
17 | {
18 | var image =await zk.downloadAndSaveMediaMessage(msgRepondu.viewOnceMessageV2.message.imageMessage)
19 | var texte = msgRepondu.viewOnceMessageV2.message.imageMessage.caption
20 |
21 | await zk.sendMessage(dest,{image:{url:image},caption:texte},{quoted:ms})
22 | }else if(msgRepondu.viewOnceMessageV2.message.videoMessage){
23 |
24 | var video = await zk.downloadAndSaveMediaMessage(msgRepondu.viewOnceMessageV2.message.videoMessage)
25 | var texte =msgRepondu.viewOnceMessageV2.message.videoMessage.caption
26 |
27 |
28 | await zk.sendMessage(dest,{video:{url:video},caption:texte},{quoted:ms})
29 |
30 | }
31 | }else
32 | {
33 | return repondre("_Ap ne jis msg ko mention kia hai yeh private view once msg nahii hai")
34 | }
35 |
36 |
37 |
38 | })
39 |
40 |
41 |
42 |
43 | /**
44 |
45 | 🇫🇱🇦🇸🇭-🇲🇩
46 |
47 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
48 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
49 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
50 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
51 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : 𝗙𝗹𝗮𝘀𝗵 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
52 | * @𝗼𝘄𝗻𝗲𝗿: 𝗙𝗿𝗮𝗻𝗰𝗲 𝗞𝗶𝗻𝗴
53 |
54 | **/
55 |
--------------------------------------------------------------------------------
/framework/ytdl-core.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | function _0x11f3(){const _0x70517b=['thumbnail','ytdl-core','6DERfpV','3912020Ouvwun','12838378JJhScC','videoId','1919958dZtqWP','4344028OqrUkK','downloadFromInfo','892765NqGbJI','chooseFormat','yt-search','12037095TIFpBi','exports','videos','5alpetW','2BMRwif','error','timestamp','title','formats','7884296hAGVBC','getInfo'];_0x11f3=function(){return _0x70517b;};return _0x11f3();}const _0x545687=_0x3a6d;(function(_0x31f7a9,_0x4f0a8e){const _0xfec102=_0x3a6d,_0x29e028=_0x31f7a9();while(!![]){try{const _0x2951b4=parseInt(_0xfec102(0xa0))/0x1+-parseInt(_0xfec102(0xa7))/0x2*(parseInt(_0xfec102(0x9d))/0x3)+-parseInt(_0xfec102(0x9e))/0x4*(parseInt(_0xfec102(0xa6))/0x5)+-parseInt(_0xfec102(0x99))/0x6*(-parseInt(_0xfec102(0x9b))/0x7)+-parseInt(_0xfec102(0xac))/0x8+parseInt(_0xfec102(0xa3))/0x9+-parseInt(_0xfec102(0x9a))/0xa;if(_0x2951b4===_0x4f0a8e)break;else _0x29e028['push'](_0x29e028['shift']());}catch(_0x1feaf2){_0x29e028['push'](_0x29e028['shift']());}}}(_0x11f3,0xeac06));function _0x3a6d(_0x3c720f,_0x4984ec){const _0x11f34f=_0x11f3();return _0x3a6d=function(_0x3a6db1,_0x5bb4b0){_0x3a6db1=_0x3a6db1-0x98;let _0x1903d3=_0x11f34f[_0x3a6db1];return _0x1903d3;},_0x3a6d(_0x3c720f,_0x4984ec);}const yts=require(_0x545687(0xa2)),ytdl=require(_0x545687(0x98)),fs=require('fs');async function getytlink(_0x4f2762){const _0x47bf3f=_0x545687;try{const _0x19fe39=await yts(_0x4f2762),_0x12e66d=_0x19fe39[_0x47bf3f(0xa5)],_0x3ed7ba=_0x12e66d[0x0];return{'lien':_0x3ed7ba['url'],'affiche':_0x3ed7ba[_0x47bf3f(0xae)],'titre':_0x3ed7ba[_0x47bf3f(0xaa)],'duree':_0x3ed7ba[_0x47bf3f(0xa9)],'id':_0x3ed7ba[_0x47bf3f(0x9c)]};}catch(_0x1b4afd){return console[_0x47bf3f(0xa8)]('Erreur\x20lors\x20de\x20la\x20recherche\x20YouTube\x20:',_0x1b4afd),null;}}module['exports']=getytlink;async function ytdwn(_0x541951){const _0x241eab=_0x545687,_0x1625c5=await ytdl[_0x241eab(0xad)](_0x541951),_0x47c04e=ytdl[_0x241eab(0xa1)](_0x1625c5[_0x241eab(0xab)],{'quality':'18'}),_0x3cd1b7=ytdl[_0x241eab(0x9f)](_0x1625c5,_0x47c04e);return _0x3cd1b7;}module[_0x545687(0xa4)]=ytdwn;
--------------------------------------------------------------------------------
/commands/Profile.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | GOLD-MD
5 |
6 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
7 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
8 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
9 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
10 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
11 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
12 |
13 | **/
14 |
15 |
16 |
17 |
18 |
19 | const {france} = require("../framework/france");
20 | const conf = require("../set")
21 | const {jidDecode}=require("@whiskeysockets/baileys")
22 |
23 |
24 | france( {
25 | nomCom : "whois",
26 | categorie : "User",
27 | },
28 | async(dest,zk, commandeOptions)=> {
29 |
30 | const {ms , arg, repondre,auteurMessage,nomAuteurMessage, msgRepondu , auteurMsgRepondu} = commandeOptions ;
31 | let jid = null
32 | let nom = null ;
33 |
34 |
35 |
36 |
37 |
38 | if (!msgRepondu) {
39 | jid = auteurMessage;
40 | nom = nomAuteurMessage;
41 |
42 | try { ppUrl = await zk.profilePictureUrl(jid , 'image') ; } catch { ppUrl = conf.IMAGE_MENU};
43 | const status = await zk.fetchStatus(jid) ;
44 |
45 | mess = {
46 | image : { url : ppUrl },
47 | caption : '*Nom :* '+ nom + '\n*Status :*\n' + status.status
48 | }
49 |
50 | } else {
51 | jid = auteurMsgRepondu;
52 | nom ="@"+auteurMsgRepondu.split("@")[0] ;
53 |
54 | try { ppUrl = await zk.profilePictureUrl(jid , 'image') ; } catch { ppUrl = conf.IMAGE_MENU};
55 | const status = await zk.fetchStatus(jid) ;
56 |
57 | mess = {
58 | image : { url : ppUrl },
59 | caption : '*Name :* '+ nom + '\n*Status :*\n' + status.status,
60 | mentions:[auteurMsgRepondu]
61 | }
62 |
63 | } ;
64 |
65 |
66 |
67 |
68 |
69 | zk.sendMessage(dest,mess,{quoted : ms})
70 | });
71 |
72 |
--------------------------------------------------------------------------------
/framework/imgur.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | const _0x307e39=_0x3adb;(function(_0x4c90a5,_0x47b253){const _0x410707=_0x3adb,_0x26d596=_0x4c90a5();while(!![]){try{const _0xb5b23b=parseInt(_0x410707(0xde))/0x1*(parseInt(_0x410707(0xe4))/0x2)+parseInt(_0x410707(0xe3))/0x3*(parseInt(_0x410707(0xe7))/0x4)+parseInt(_0x410707(0xda))/0x5*(parseInt(_0x410707(0xd3))/0x6)+-parseInt(_0x410707(0xd4))/0x7*(-parseInt(_0x410707(0xd9))/0x8)+parseInt(_0x410707(0xdb))/0x9+parseInt(_0x410707(0xe0))/0xa+-parseInt(_0x410707(0xdc))/0xb*(parseInt(_0x410707(0xd0))/0xc);if(_0xb5b23b===_0x47b253)break;else _0x26d596['push'](_0x26d596['shift']());}catch(_0x35af1e){_0x26d596['push'](_0x26d596['shift']());}}}(_0x16e4,0x1eee8));function _0x3adb(_0xf25886,_0x16da40){const _0x16e426=_0x16e4();return _0x3adb=function(_0x3adb4a,_0x3343cb){_0x3adb4a=_0x3adb4a-0xd0;let _0x3757fa=_0x16e426[_0x3adb4a];return _0x3757fa;},_0x3adb(_0xf25886,_0x16da40);}const axios=require(_0x307e39(0xd8)),fs=require('fs'),FormData=require(_0x307e39(0xdf));function _0x16e4(){const _0x1c0cd4=['link','6IkPOUE','294XMwXnY','exports','Client-ID\x20','post','axios','15360aSebWh','1071135SaYijz','202122OUYopf','19096ywuvnM','data','224134yPvXlt','form-data','38280lNIIdu','error','image','3KHexQn','2RmLVAK','getHeaders','https://api.imgur.com/3/image','61636wiEWIq','3000UjtyLE','An\x20error\x20occurred\x20while\x20uploading\x20to\x20Imgur.'];_0x16e4=function(){return _0x1c0cd4;};return _0x16e4();}async function uploadImageToImgur(_0x341a1e,_0x1148ba){const _0x29490f=_0x307e39;try{const _0x5d0943=new FormData();_0x5d0943['append'](_0x29490f(0xe2),fs['createReadStream'](_0x341a1e));const _0x1d094b={'Authorization':_0x29490f(0xd6)+_0x1148ba,..._0x5d0943[_0x29490f(0xe5)]()},_0xb42c48={'method':_0x29490f(0xd7),'maxBodyLength':Infinity,'url':_0x29490f(0xe6),'headers':_0x1d094b,'data':_0x5d0943},_0x53eb2f=await axios(_0xb42c48),_0x4812f1=_0x53eb2f[_0x29490f(0xdd)][_0x29490f(0xdd)][_0x29490f(0xd2)];return _0x4812f1;}catch(_0x2a3ac2){console[_0x29490f(0xe1)]('Error\x20while\x20uploading\x20to\x20Imgur:',_0x2a3ac2);throw new Error(_0x29490f(0xd1));}}module[_0x307e39(0xd5)]={'uploadImageToImgur':uploadImageToImgur};
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "GOLD-MD",
3 | "version": "2.0.0",
4 | "description": "MULTI-DEVICE WHATSAPP BOT WITH URDU LANGUAGE MADE BY UMAR 🙂❤️",
5 | "main": "flash.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "s": "node flash.js",
9 | "flashmd": "pm2 start flash.js --attach --max-memory-restart 490M",
10 | "c": "tsc"
11 | },
12 | "keywords": [
13 | "bot",
14 | "Baileys",
15 | "GOLD-MD",
16 | "whatsapp",
17 | "whatsapp-bot",
18 | "D4X-UMAR"
19 | ],
20 | "author": "France King",
21 | "license": "ISC",
22 | "dependencies": {
23 | "@adiwajshing/keyed-db": "^0.2.4",
24 | "@hapi/boom": "^10.0.1",
25 | "@types/node": "^18.0.6",
26 | "@whiskeysockets/baileys": "github:franceking1/Baileys",
27 | "@xaviabot/fb-downloader": "^1.0.14",
28 | "aptoide-scraper": "^1.0.1",
29 | "axios": "^1.4.0",
30 | "cache-manager": "latest",
31 | "canvacord": "^5.4.8",
32 | "chal": "^0.0.1-security.0",
33 | "chalk": "^5.3.0",
34 | "cheerio": "^1.0.0-rc.12",
35 | "dotenv": "^16.3.1",
36 | "ffmpeg": "^0.0.4",
37 | "file-type": "16.5.3",
38 | "fluent-ffmpeg": "^2.1.2",
39 | "form-data": "^4.0.0",
40 | "fs-extra": "^11.1.1",
41 | "g-i-s": "^2.1.7",
42 | "gist": "^0.2.0",
43 | "genius-lyrics": "^4.4.3",
44 | "google-it": "^1.6.4",
45 | "google-tts-api": "latest",
46 | "heroku-client": "^3.1.0",
47 | "human-readable": "^0.2.1",
48 | "javascript-obfuscator": "^4.1.0",
49 | "jimp": "^0.16.13",
50 | "latest": "^0.2.0",
51 | "link-preview-js": "^3.0.4",
52 | "moment-timezone": "^0.5.43",
53 | "mumaker": "^2.0.0",
54 | "node-cron": "^3.0.3",
55 | "node-fetch": "^3.2.6",
56 | "node-id3": "^0.2.6",
57 | "pg": "^8.11.2",
58 | "pino": "^8.15.0",
59 | "qrcode-terminal": "^0.12.0",
60 | "readline": "^1.3.0",
61 | "sequelize": "^6.32.1",
62 | "sqlite3": "^5.1.6",
63 | "translatte": "^3.0.1",
64 | "types": "^0.1.1",
65 | "typescript": "^5.1.6",
66 | "wa-sticker-formatter": "^4.4.4",
67 | "youtube-yts": "^2.0.0",
68 | "youtubedl-core": "^4.11.7",
69 | "yt-search": "^2.10.4",
70 | "ytdl-core": "^4.10.0"
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/set.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs-extra');
2 | const { Sequelize } = require('sequelize');
3 | if (fs.existsSync('set.env'))
4 | require('dotenv').config({ path: __dirname + '/set.env' });
5 | const path = require("path");
6 | const databasePath = path.join(__dirname, './database.db');
7 | const DATABASE_URL = process.env.DATABASE_URL === undefined
8 | ? databasePath
9 | : process.env.DATABASE_URL;
10 | module.exports = { session: process.env.SESSION_ID || 'GOLD-MD',
11 | PREFIXE: process.env.PREFIX || "+",
12 | OWNER_NAME: process.env.OWNER_NAME || "UMAR",
13 | OWNER_NUMBER: process.env.OWNER_NUMBER || "233201817959",
14 |
15 | AUTO_VIEW_STATUS: process.env.AUTO_VIEW_STATUS || "on",
16 | AUTOREAD_MESSAGES: process.env.AUTO_READ_MESSAGES || "off",
17 | CHATBOT: process.env.CHAT_BOT || "off",
18 | AUTO_SAVE_STATUS: process.env.AUTO_SAVE_STATUS || 'off',
19 | BOT : process.env.BOT_NAME || 'GOLD-MD',
20 | OPENAI_API_KEY : process.env.OPENAI_API_KEY || '',
21 | URL : process.env.BOT_MENU_LINKS || 'https://telegra.ph/file/3f212a58fef59cab3ac7c.jpg',
22 | MODE: process.env.MODE || "private",
23 | PM_PERMIT: process.env.PM_PERMIT || 'no',
24 | HEROKU_APP_NAME : process.env.HEROKU_APP_NAME,
25 | HEROKU_APY_KEY : process.env.HEROKU_API_KEY ,
26 | WARN_COUNT : process.env.WARN_COUNT || '2' ,
27 | PRESENCE : process.env.PRESENCE || '',
28 | //GPT : process.env.OPENAI_API_KEY || '',
29 | DP : process.env.STARTING_BOT_MESSAGE || "yes",
30 | ADM : process.env.ANTI_DELETE_MESSAGE || 'yes',
31 | DATABASE_URL,
32 | DATABASE: DATABASE_URL === databasePath
33 | ? "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9" : "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9",
34 | /* new Sequelize({
35 | dialect: 'sqlite',
36 | storage: DATABASE_URL,
37 | logging: false,
38 | })
39 | : new Sequelize(DATABASE_URL, {
40 | dialect: 'postgres',
41 | ssl: true,
42 | protocol: 'postgres',
43 | dialectOptions: {
44 | native: true,
45 | ssl: { require: true, rejectUnauthorized: false },
46 | },
47 | logging: false,
48 | }),*/
49 | };
50 | let fichier = require.resolve(__filename);
51 | fs.watchFile(fichier, () => {
52 | fs.unwatchFile(fichier);
53 | console.log(`mise à jour ${__filename}`);
54 | delete require.cache[fichier];
55 | require(fichier);
56 | });
57 |
--------------------------------------------------------------------------------
/framework/flash.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 'use strict';
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | function _0x305a(_0x4c304a,_0x8cd9ff){const _0x3c7462=_0x3c74();return _0x305a=function(_0x305a98,_0x3dc6f5){_0x305a98=_0x305a98-0x14d;let _0x2ce42a=_0x3c7462[_0x305a98];return _0x2ce42a;},_0x305a(_0x4c304a,_0x8cd9ff);}const _0x5db4d3=_0x305a;(function(_0x2954ec,_0x4391ae){const _0x581b45=_0x305a,_0x9d84e9=_0x2954ec();while(!![]){try{const _0x296015=-parseInt(_0x581b45(0x155))/0x1*(-parseInt(_0x581b45(0x15b))/0x2)+parseInt(_0x581b45(0x14d))/0x3+-parseInt(_0x581b45(0x156))/0x4*(parseInt(_0x581b45(0x14e))/0x5)+-parseInt(_0x581b45(0x151))/0x6+-parseInt(_0x581b45(0x15d))/0x7*(-parseInt(_0x581b45(0x153))/0x8)+parseInt(_0x581b45(0x164))/0x9*(-parseInt(_0x581b45(0x14f))/0xa)+-parseInt(_0x581b45(0x154))/0xb*(-parseInt(_0x581b45(0x160))/0xc);if(_0x296015===_0x4391ae)break;else _0x9d84e9['push'](_0x9d84e9['shift']());}catch(_0x411b68){_0x9d84e9['push'](_0x9d84e9['shift']());}}}(_0x3c74,0x42012));Object[_0x5db4d3(0x152)](exports,_0x5db4d3(0x159),{'value':!![]}),exports[_0x5db4d3(0x161)]=exports[_0x5db4d3(0x158)]=exports[_0x5db4d3(0x163)]=exports[_0x5db4d3(0x150)]=exports[_0x5db4d3(0x15c)]=exports[_0x5db4d3(0x15a)]=exports['reaction']=exports[_0x5db4d3(0x15f)]=exports['zokou']=void 0x0;let {zokou}=require('./zokou');function _0x3c74(){const _0x2601fe=['styletext','3176268zfrEyq','defineProperty','45464hckWFh','22PgCGMU','12994AICLQK','460RaCbhe','reaction','stick','__esModule','getBuffer','24VWzzAV','zJson','497UCpCAE','./app','police','4253940mUURxe','genererNomFichier','./mesfonctions','format','963tVmzZJ','880536dzMuWS','11120NUWqSe','47330fiApIs'];_0x3c74=function(){return _0x2601fe;};return _0x3c74();}exports['zokou']=zokou;const mesfonctions_1=require(_0x5db4d3(0x162));Object[_0x5db4d3(0x152)](exports,'reaction',{'enumerable':!![],'get':function(){const _0x18e947=_0x5db4d3;return mesfonctions_1[_0x18e947(0x157)];}}),Object[_0x5db4d3(0x152)](exports,_0x5db4d3(0x15f),{'enumerable':!![],'get':function(){return mesfonctions_1['police'];}}),Object['defineProperty'](exports,_0x5db4d3(0x15a),{'enumerable':!![],'get':function(){return mesfonctions_1['getBuffer'];}}),Object[_0x5db4d3(0x152)](exports,'zJson',{'enumerable':!![],'get':function(){const _0x4781a0=_0x5db4d3;return mesfonctions_1[_0x4781a0(0x15c)];}}),Object[_0x5db4d3(0x152)](exports,_0x5db4d3(0x163),{'enumerable':!![],'get':function(){const _0x4d34ce=_0x5db4d3;return mesfonctions_1[_0x4d34ce(0x163)];}}),Object[_0x5db4d3(0x152)](exports,_0x5db4d3(0x150),{'enumerable':!![],'get':function(){return mesfonctions_1['styletext'];}}),Object[_0x5db4d3(0x152)](exports,_0x5db4d3(0x158),{'enumerable':!![],'get':function(){const _0x1228a8=_0x5db4d3;return mesfonctions_1[_0x1228a8(0x158)];}}),Object[_0x5db4d3(0x152)](exports,'genererNomFichier',{'enumerable':!![],'get':function(){const _0x59505c=_0x5db4d3;return mesfonctions_1[_0x59505c(0x161)];}});var {reagir}=require(_0x5db4d3(0x15e));
14 |
--------------------------------------------------------------------------------
/commands/Alive.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | • GOLD MD WHATSAPP BOT •
6 |
7 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
8 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
9 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
10 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
11 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
12 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
13 |
14 | **/
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | const { france } = require('../framework/france');
24 | const {addOrUpdateDataInAlive , getDataFromAlive} = require('../bdd/alive')
25 | const moment = require("moment-timezone");
26 | const s = require(__dirname + "/../set");
27 |
28 | france(
29 | {
30 | nomCom : 'alive',
31 | categorie : 'General'
32 |
33 | },async (dest,zk,commandeOptions) => {
34 |
35 | const {ms , arg, repondre,superUser} = commandeOptions;
36 |
37 | const data = await getDataFromAlive();
38 |
39 | if (!arg || !arg[0] || arg.join('') === '') {
40 |
41 | if(data) {
42 |
43 | const {message , lien} = data;
44 |
45 |
46 | var mode = "public";
47 | if ((s.MODE).toLocaleLowerCase() != "yes") {
48 | mode = "private";
49 | }
50 |
51 |
52 |
53 | moment.tz.setDefault('Asia/Karachi');
54 |
55 | // Créer une date et une heure en EAT
56 | const temps = moment().format('HH:mm:ss');
57 | const date = moment().format('DD/MM/YYYY');
58 |
59 | const alivemsg = `
60 | *🔰 OWNER* : ${s.OWNER_NAME}
61 | *🔰 MODE* : ${mode}
62 | *🔰 DATE* : ${date}
63 | *🔰 TIME* : ${temps}
64 |
65 | ${message}
66 |
67 |
68 | *🔰 GOLD MD IS ALIVE NOW 🔰*`
69 |
70 | if (lien.match(/\.(mp4|gif)$/i)) {
71 | try {
72 | zk.sendMessage(dest, { video: { url: lien }, caption: alivemsg }, { quoted: ms });
73 | }
74 | catch (e) {
75 | console.log("🥵🥵 Menu erreur " + e);
76 | repondre("🥵🥵 Menu erreur " + e);
77 | }
78 | }
79 | // Checking for .jpeg or .png
80 | else if (lien.match(/\.(jpeg|png|jpg)$/i)) {
81 | try {
82 | zk.sendMessage(dest, { image: { url: lien }, caption: alivemsg }, { quoted: ms });
83 | }
84 | catch (e) {
85 | console.log("🥵🥵 Menu erreur " + e);
86 | repondre("🥵🥵 Menu erreur " + e);
87 | }
88 | }
89 | else {
90 |
91 | repondre(alivemsg);
92 |
93 | }
94 |
95 | } else {
96 | if(!superUser) { repondre("Bot me koi alive msg set nahi") ; return};
97 |
98 | await repondre("Apk bot me new alive msg set karna hai? Newalive msg ese set hoga \n Ese likho:=> \n \n alive GOLD-MD;BY UMAR \n\n Lazmi:= Jab ap yeh sign ; column lagao ge drmyan me to space nahii dena ese ikatha likhna GOLD;MD agar space dya to alive msg set nahi hoga");
99 | repondre("*🔰 GOLD-MD WHATSAPP BOT 🔰*")
100 | }
101 | } else {
102 |
103 | if(!superUser) { repondre ("Ap alive msg edit nahi kar sakte") ; return};
104 |
105 |
106 | const texte = arg.join(' ').split(';')[0];
107 | const tlien = arg.join(' ').split(';')[1];
108 |
109 |
110 |
111 | await addOrUpdateDataInAlive(texte , tlien)
112 |
113 | repondre('New alive msg set ho gaya hai')
114 |
115 | }
116 | });
117 |
--------------------------------------------------------------------------------
/commands/Heroku.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | GOLD-MD
5 |
6 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
7 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
8 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
9 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
10 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
11 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
12 |
13 | **/
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | const { france } = require('../framework/france');
27 | const s = require('../set')
28 |
29 |
30 | france(
31 | {
32 | nomCom : "svar",
33 | categorie : "heroku"
34 | }, async (dest , zk , commandeOptions) =>{
35 |
36 | const {ms,repondre,superUser , arg} = commandeOptions ;
37 |
38 | if(!superUser){repondre('yeh command sirf mere lie hai');return};
39 | if(!arg[0] || !(arg.join('').split('='))) {repondre('_ESE LIKHO:• .svar OWNER_NAME=UMAR');return};
40 |
41 | const text = arg.join(" ")
42 | const Heroku = require("heroku-client");
43 |
44 | const heroku = new Heroku({
45 | token: s.HEROKU_APY_KEY,
46 | });
47 |
48 | let baseURI = "/apps/" + s.HEROKU_APP_NAME;
49 | await heroku.patch(baseURI + "/config-vars", {
50 | body: {
51 | [text.split('=')[0]]: text.split('=')[1],
52 | },
53 | });
54 | await repondre('_HEROKU VAR UPDATE NAHI HO SAKTI AP KHUD HEROKU PER JA KAR ISKO UPDATE KARO AUR INSHALLAH ME IS ERROR KO JALDI FIX KAR DO GA |UMAR|_')
55 | }
56 | );
57 |
58 | france(
59 | {
60 | nomCom : "allvar",
61 | categorie : "heroku"
62 | }, async (dest , zk , commandeOptions) =>{
63 |
64 | const {ms,repondre,superUser , arg} = commandeOptions ;
65 |
66 | if(!superUser){repondre('yeh command sirf mere lie hai');return};
67 |
68 | const Heroku = require("heroku-client");
69 |
70 | const heroku = new Heroku({
71 | token: s.HEROKU_APY_KEY,
72 | });
73 | let baseURI = "/apps/" + s.HEROKU_APP_NAME;
74 |
75 | let h = await heroku.get(baseURI+'/config-vars')
76 | let str = '*🔰GOLD-MD HEROKU VARS🔰*\n\n'
77 | for (vr in h) {
78 | str+= '❤️ *'+vr+'* '+'= '+h[vr]+'\n'
79 | }
80 | repondre(str)
81 |
82 |
83 | }
84 |
85 | );
86 |
87 |
88 | france(
89 | {
90 | nomCom : "gvar",
91 | categorie : "heroku"
92 | }, async (dest , zk , commandeOptions) =>{
93 |
94 | const {ms,repondre,superUser , arg} = commandeOptions ;
95 |
96 | if(!superUser){repondre('yeh command sirf mere lie hai');return};
97 | if(!arg[0]) {repondre('ese likho: gvar CAPTION=GOLD-MD'); return} ;
98 |
99 | try {
100 | const Heroku = require("heroku-client");
101 |
102 | const heroku = new Heroku({
103 | token: s.HEROKU_API_KEY,
104 | });
105 | let baseURI = "/apps/" + s.HEROKU_APP_NAME;
106 | let h = await heroku.get(baseURI+'/config-vars')
107 | for (vr in h) {
108 | if( arg.join(' ') ===vr ) return repondre( vr+'= '+h[vr]) ;
109 | }
110 |
111 | } catch(e) {repondre('_HEROKU VAR UPDATE NAHI HO SAKTI AP KHUD HEROKU PER JA KAR ISKO UPDATE KARO AUR INSHALLAH ME IS ERROR KO JALDI FIX KAR DO GA |UMAR|_' + e)}
112 |
113 | });
114 |
--------------------------------------------------------------------------------
/bdd/banUser.js:
--------------------------------------------------------------------------------
1 | const _0x4fb629=_0x4eae;(function(_0x1bf1ab,_0x829137){const _0x5b2927=_0x4eae,_0x14c67b=_0x1bf1ab();while(!![]){try{const _0x1a6ba0=parseInt(_0x5b2927(0x1f3))/0x1*(-parseInt(_0x5b2927(0x1f1))/0x2)+parseInt(_0x5b2927(0x1fd))/0x3*(parseInt(_0x5b2927(0x1f8))/0x4)+parseInt(_0x5b2927(0x1ee))/0x5+-parseInt(_0x5b2927(0x1f9))/0x6*(parseInt(_0x5b2927(0x1f5))/0x7)+-parseInt(_0x5b2927(0x1e8))/0x8+-parseInt(_0x5b2927(0x1ea))/0x9+parseInt(_0x5b2927(0x1f7))/0xa*(parseInt(_0x5b2927(0x1e5))/0xb);if(_0x1a6ba0===_0x829137)break;else _0x14c67b['push'](_0x14c67b['shift']());}catch(_0x55903e){_0x14c67b['push'](_0x14c67b['shift']());}}}(_0x1edc,0x53591),require('dotenv')[_0x4fb629(0x1ff)]());const {Pool}=require('pg'),s=require(_0x4fb629(0x1fb));var dbUrl=s[_0x4fb629(0x1eb)]?s[_0x4fb629(0x1eb)]:_0x4fb629(0x1e9);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig),creerTableBanUser=async()=>{const _0x498195=_0x4fb629;try{await pool[_0x498195(0x1e7)]('\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20banUser\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20jid\x20text\x20PRIMARY\x20KEY\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20'),console[_0x498195(0x1fe)](_0x498195(0x1ef));}catch(_0x1c6293){console[_0x498195(0x1f0)]('Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27banUser\x27:',_0x1c6293);}};creerTableBanUser();function _0x1edc(){const _0x4d9fc5=['release','50420AMvdgm','212956cKDaJJ','384QtdwbY','exists','../set','JID\x20','9kmALCU','log','config','DELETE\x20FROM\x20banUser\x20WHERE\x20jid\x20=\x20$1','3333qiifDi','Erreur\x20lors\x20de\x20l\x27ajout\x20de\x20l\x27utilisateur\x20banni\x20:','query','3767632WVedzt','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','4069512WpcAaU','DATABASE_URL','\x20ajouté\x20à\x20la\x20liste\x20des\x20bannis.','connect','1898395iGEDAS','La\x20table\x20\x27banUser\x27\x20a\x20été\x20créée\x20avec\x20succès.','error','4274hRrgMc','rows','263JZYXKq','Erreur\x20lors\x20de\x20la\x20suppression\x20de\x20l\x27utilisateur\x20banni\x20:','26313SlTmee'];_0x1edc=function(){return _0x4d9fc5;};return _0x1edc();}async function addUserToBanList(_0x20228c){const _0x490364=_0x4fb629,_0x176ef6=await pool[_0x490364(0x1ed)]();try{const _0xd9860a='INSERT\x20INTO\x20banUser\x20(jid)\x20VALUES\x20($1)',_0x1a77bb=[_0x20228c];await _0x176ef6['query'](_0xd9860a,_0x1a77bb),console[_0x490364(0x1fe)](_0x490364(0x1fc)+_0x20228c+_0x490364(0x1ec));}catch(_0x5583a7){console['error'](_0x490364(0x1e6),_0x5583a7);}finally{_0x176ef6['release']();}}async function isUserBanned(_0x5d6e12){const _0xcdbb84=_0x4fb629,_0x4d23ca=await pool['connect']();try{const _0x4f09b1='SELECT\x20EXISTS\x20(SELECT\x201\x20FROM\x20banUser\x20WHERE\x20jid\x20=\x20$1)',_0x3f4b38=[_0x5d6e12],_0x53a229=await _0x4d23ca['query'](_0x4f09b1,_0x3f4b38);return _0x53a229[_0xcdbb84(0x1f2)][0x0][_0xcdbb84(0x1fa)];}catch(_0x36f66c){return console['error']('Erreur\x20lors\x20de\x20la\x20vérification\x20de\x20l\x27utilisateur\x20banni\x20:',_0x36f66c),![];}finally{_0x4d23ca[_0xcdbb84(0x1f6)]();}}function _0x4eae(_0x506cc3,_0x37e52b){const _0x1edc4b=_0x1edc();return _0x4eae=function(_0x4eaef2,_0xd8561f){_0x4eaef2=_0x4eaef2-0x1e5;let _0x4d4754=_0x1edc4b[_0x4eaef2];return _0x4d4754;},_0x4eae(_0x506cc3,_0x37e52b);}async function removeUserFromBanList(_0x119255){const _0x107051=_0x4fb629,_0x3ae732=await pool[_0x107051(0x1ed)]();try{const _0x1e53f4=_0x107051(0x200),_0x53f96a=[_0x119255];await _0x3ae732[_0x107051(0x1e7)](_0x1e53f4,_0x53f96a),console[_0x107051(0x1fe)]('JID\x20'+_0x119255+'\x20supprimé\x20de\x20la\x20liste\x20des\x20bannis.');}catch(_0x2364d1){console['error'](_0x107051(0x1f4),_0x2364d1);}finally{_0x3ae732[_0x107051(0x1f6)]();}}module['exports']={'addUserToBanList':addUserToBanList,'isUserBanned':isUserBanned,'removeUserFromBanList':removeUserFromBanList};
--------------------------------------------------------------------------------
/bdd/banGroup.js:
--------------------------------------------------------------------------------
1 | function _0x3de5(_0x1fc492,_0x1b8adf){const _0x5efd68=_0x5efd();return _0x3de5=function(_0x3de5c6,_0x56f02e){_0x3de5c6=_0x3de5c6-0x76;let _0x34f597=_0x5efd68[_0x3de5c6];return _0x34f597;},_0x3de5(_0x1fc492,_0x1b8adf);}const _0x347309=_0x3de5;function _0x5efd(){const _0x5cc528=['547912xqxfVT','rows','10lNRQjQ','connect','8OkJIeu','873836teZFUF','SELECT\x20EXISTS\x20(SELECT\x201\x20FROM\x20banGroup\x20WHERE\x20groupeJid\x20=\x20$1)','../set','1762070ZbAdUF','config','INSERT\x20INTO\x20banGroup\x20(groupeJid)\x20VALUES\x20($1)','3845514xjmpdF','Erreur\x20lors\x20de\x20la\x20suppression\x20du\x20groupe\x20banni\x20:','Erreur\x20lors\x20de\x20l\x27ajout\x20du\x20groupe\x20banni\x20:','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','18eoHJOA','log','release','DELETE\x20FROM\x20banGroup\x20WHERE\x20groupeJid\x20=\x20$1','Groupe\x20JID\x20','\x20ajouté\x20à\x20la\x20liste\x20des\x20groupes\x20bannis.','query','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27banGroup\x27:','77ETWIAU','error','2714550IiCzAm','DATABASE_URL','exists','La\x20table\x20\x27banGroup\x27\x20a\x20été\x20créée\x20avec\x20succès.','\x20supprimé\x20de\x20la\x20liste\x20des\x20groupes\x20bannis.','677958mwnJjQ','3508743xsMmqH'];_0x5efd=function(){return _0x5cc528;};return _0x5efd();}(function(_0x5b5698,_0x38ff2f){const _0x37fd8b=_0x3de5,_0x376021=_0x5b5698();while(!![]){try{const _0x242114=parseInt(_0x37fd8b(0x79))/0x1+-parseInt(_0x37fd8b(0x8d))/0x2+parseInt(_0x37fd8b(0x92))/0x3*(-parseInt(_0x37fd8b(0x78))/0x4)+parseInt(_0x37fd8b(0x76))/0x5*(parseInt(_0x37fd8b(0x7f))/0x6)+-parseInt(_0x37fd8b(0x93))/0x7+-parseInt(_0x37fd8b(0x94))/0x8*(parseInt(_0x37fd8b(0x83))/0x9)+parseInt(_0x37fd8b(0x7c))/0xa*(parseInt(_0x37fd8b(0x8b))/0xb);if(_0x242114===_0x38ff2f)break;else _0x376021['push'](_0x376021['shift']());}catch(_0x49fb0f){_0x376021['push'](_0x376021['shift']());}}}(_0x5efd,0xe5e51),require('dotenv')[_0x347309(0x7d)]());const {Pool}=require('pg'),s=require(_0x347309(0x7b));var dbUrl=s[_0x347309(0x8e)]?s[_0x347309(0x8e)]:_0x347309(0x82);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig),creerTableBanGroup=async()=>{const _0x2519df=_0x347309;try{await pool['query']('\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20banGroup\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20groupeJid\x20text\x20PRIMARY\x20KEY\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20'),console[_0x2519df(0x84)](_0x2519df(0x90));}catch(_0x7ad857){console['error'](_0x2519df(0x8a),_0x7ad857);}};creerTableBanGroup();async function addGroupToBanList(_0x269472){const _0x31e56f=_0x347309,_0x3a136f=await pool['connect']();try{const _0x3ef6a2=_0x31e56f(0x7e),_0x33e279=[_0x269472];await _0x3a136f[_0x31e56f(0x89)](_0x3ef6a2,_0x33e279),console['log'](_0x31e56f(0x87)+_0x269472+_0x31e56f(0x88));}catch(_0x3848fb){console['error'](_0x31e56f(0x81),_0x3848fb);}finally{_0x3a136f[_0x31e56f(0x85)]();}}async function isGroupBanned(_0x68fbc3){const _0xf4e70d=_0x347309,_0x3bab38=await pool[_0xf4e70d(0x77)]();try{const _0x29dc42=_0xf4e70d(0x7a),_0x5018dc=[_0x68fbc3],_0x13c903=await _0x3bab38[_0xf4e70d(0x89)](_0x29dc42,_0x5018dc);return _0x13c903[_0xf4e70d(0x95)][0x0][_0xf4e70d(0x8f)];}catch(_0x1a3589){return console[_0xf4e70d(0x8c)]('Erreur\x20lors\x20de\x20la\x20vérification\x20du\x20groupe\x20banni\x20:',_0x1a3589),![];}finally{_0x3bab38[_0xf4e70d(0x85)]();}}async function removeGroupFromBanList(_0x50f929){const _0x413681=_0x347309,_0x2d4908=await pool[_0x413681(0x77)]();try{const _0x2751b5=_0x413681(0x86),_0x538cdf=[_0x50f929];await _0x2d4908['query'](_0x2751b5,_0x538cdf),console[_0x413681(0x84)](_0x413681(0x87)+_0x50f929+_0x413681(0x91));}catch(_0x3f6235){console[_0x413681(0x8c)](_0x413681(0x80),_0x3f6235);}finally{_0x2d4908[_0x413681(0x85)]();}}module['exports']={'addGroupToBanList':addGroupToBanList,'isGroupBanned':isGroupBanned,'removeGroupFromBanList':removeGroupFromBanList};
--------------------------------------------------------------------------------
/commands/Uptime.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | GOLD MD
6 |
7 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
8 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
9 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
10 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
11 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
12 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
13 |
14 | **/
15 |
16 |
17 |
18 |
19 | function _0x1609(_0x3a7cfb,_0x30ab5f){const _0xa7eaa0=_0xa7ea();return _0x1609=function(_0x160945,_0x3dd229){_0x160945=_0x160945-0x14c;let _0x51e54a=_0xa7eaa0[_0x160945];return _0x51e54a;},_0x1609(_0x3a7cfb,_0x30ab5f);}const _0x1c9784=_0x1609;(function(_0x155d7b,_0x404947){const _0x4c17f0=_0x1609,_0x2f15bc=_0x155d7b();while(!![]){try{const _0x1a994d=parseInt(_0x4c17f0(0x167))/0x1*(parseInt(_0x4c17f0(0x164))/0x2)+parseInt(_0x4c17f0(0x153))/0x3+parseInt(_0x4c17f0(0x170))/0x4+-parseInt(_0x4c17f0(0x16b))/0x5+-parseInt(_0x4c17f0(0x15b))/0x6*(parseInt(_0x4c17f0(0x15a))/0x7)+-parseInt(_0x4c17f0(0x158))/0x8*(parseInt(_0x4c17f0(0x163))/0x9)+-parseInt(_0x4c17f0(0x162))/0xa*(-parseInt(_0x4c17f0(0x16d))/0xb);if(_0x1a994d===_0x404947)break;else _0x2f15bc['push'](_0x2f15bc['shift']());}catch(_0x1127e9){_0x2f15bc['push'](_0x2f15bc['shift']());}}}(_0xa7ea,0xbc141));function _0xa7ea(){const _0x1b7e5c=['26226BXCBph','871946qdvzIn','screenshot','?url=','2ADeoGb','\x20h,\x20','performanc','\x20day,\x20','3690455NyNOYI','true','11rjWyzW','https://ap','\x20GOLD-MD','3402272uAfaoR','rk/france','\x20m,\x20','Mujhe\x20','link\x20do','\x20minute,\x20','i.maher-zu','misc/sstab','MADE\x20BY','General','length','axios','ezone','3478971wpCuhE','../framewo','=720x720','join','&dimension','488njddVu','s\x20website','161cusiZC','387480QdYCLz','e-now','floor','sendMessag','moment-tim','To\x20check\x20r','*_GOLD-M','2893830UWtgMk'];_0xa7ea=function(){return _0x1b7e5c;};return _0xa7ea();}const {france}=require(_0x1c9784(0x154)+_0x1c9784(0x171)),moment=require(_0x1c9784(0x15f)+_0x1c9784(0x152)),{getBuffer}=require(_0x1c9784(0x154)+'rk/dl/Func'+'tion'),{default:axios}=require(_0x1c9784(0x151)),speed=require(_0x1c9784(0x169)+_0x1c9784(0x15c)),runtime=function(_0x44a6e2){const _0x47831b=_0x1c9784;_0x44a6e2=Number(_0x44a6e2);var _0x3f18ce=Math[_0x47831b(0x15d)](_0x44a6e2/(0xe10*0x18)),_0x33ca03=Math[_0x47831b(0x15d)](_0x44a6e2%(0xe10*0x18)/0xe10),_0x24bbcb=Math[_0x47831b(0x15d)](_0x44a6e2%0xe10/0x3c),_0x28c156=Math[_0x47831b(0x15d)](_0x44a6e2%0x3c),_0x15925d=_0x3f18ce>0x0?_0x3f18ce+(_0x3f18ce==0x1?_0x47831b(0x16a):'\x20d,\x20'):'',_0x3fa347=_0x33ca03>0x0?_0x33ca03+(_0x33ca03==0x1?'\x20hour,\x20':_0x47831b(0x168)):'',_0x493d77=_0x24bbcb>0x0?_0x24bbcb+(_0x24bbcb==0x1?_0x47831b(0x175):_0x47831b(0x172)):'',_0x45c385=_0x28c156>0x0?_0x28c156+(_0x28c156==0x1?'\x20second':'\x20s'):'';return _0x15925d+_0x3fa347+_0x493d77+_0x45c385;};france({'nomCom':'uptime','desc':_0x1c9784(0x160)+'untime','Categorie':_0x1c9784(0x14f),'reaction':'🔰','fromMe':_0x1c9784(0x16c)},async(_0x5733e8,_0x11c5bc,_0x57521f)=>{const _0x5d3c5c=_0x1c9784,{ms:_0x2bfb36,arg:_0x5b9f74,repondre:_0x141271}=_0x57521f;await _0x141271(_0x5d3c5c(0x161)+'D\x20UPTIME'+':\x20'+runtime(process['uptime']())+'_*');}),france({'nomCom':'ss','desc':_0x1c9784(0x165)+_0x1c9784(0x159),'Categorie':'General','reaction':'🔰','fromMe':_0x1c9784(0x16c)},async(_0x5d5ae8,_0x3e1dc4,_0x105a5c)=>{const _0xcb4eae=_0x1c9784,{ms:_0x4e3982,arg:_0x26023f,repondre:_0x442146}=_0x105a5c;if(!_0x26023f||_0x26023f[_0xcb4eae(0x150)]===0x0)return _0x442146(_0xcb4eae(0x173)+_0xcb4eae(0x174));const _0xc585f8=_0x26023f[_0xcb4eae(0x156)]('\x20');let _0x23dc0e=_0xcb4eae(0x16e)+_0xcb4eae(0x14c)+'bair.tech/'+_0xcb4eae(0x14d)+_0xcb4eae(0x166)+_0xc585f8+(_0xcb4eae(0x157)+_0xcb4eae(0x155)),_0x460842=await getBuffer(_0x23dc0e);await _0x3e1dc4[_0xcb4eae(0x15e)+'e'](_0x5d5ae8,{'image':_0x460842},{'caption':_0xcb4eae(0x14e)+_0xcb4eae(0x16f)},{'quoted':_0x4e3982});});
20 |
--------------------------------------------------------------------------------
/commands/Weather.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | 🇫🇱🇦🇸🇭-🇲🇩
5 |
6 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
7 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
8 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
9 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
10 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : 𝗙𝗹𝗮𝘀𝗵 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
11 | * @𝗼𝘄𝗻𝗲𝗿: 𝗙𝗿𝗮𝗻𝗰𝗲 𝗞𝗶𝗻𝗴
12 |
13 | **/
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | const _0x53daae=_0x52e8;function _0x52e8(_0x36594a,_0xdc033d){const _0x322d4a=_0x322d();return _0x52e8=function(_0x52e8e9,_0x416306){_0x52e8e9=_0x52e8e9-0xd1;let _0x877271=_0x322d4a[_0x52e8e9];return _0x877271;},_0x52e8(_0x36594a,_0xdc033d);}(function(_0x5b3c33,_0x1aafdb){const _0x38e4e3=_0x52e8,_0x64b6e=_0x5b3c33();while(!![]){try{const _0x5bf1ba=-parseInt(_0x38e4e3(0xd6))/0x1+-parseInt(_0x38e4e3(0xd2))/0x2*(parseInt(_0x38e4e3(0xdb))/0x3)+parseInt(_0x38e4e3(0xeb))/0x4*(-parseInt(_0x38e4e3(0xfd))/0x5)+parseInt(_0x38e4e3(0xd7))/0x6+parseInt(_0x38e4e3(0xee))/0x7+parseInt(_0x38e4e3(0xd4))/0x8*(-parseInt(_0x38e4e3(0xe2))/0x9)+parseInt(_0x38e4e3(0xf4))/0xa*(parseInt(_0x38e4e3(0xe7))/0xb);if(_0x5bf1ba===_0x1aafdb)break;else _0x64b6e['push'](_0x64b6e['shift']());}catch(_0x4a8714){_0x64b6e['push'](_0x64b6e['shift']());}}}(_0x322d,0x3d910));const axios=require(_0x53daae(0xfc)),fs=require('fs'),{france}=require(_0x53daae(0xf5)),{writeFile}=require(_0x53daae(0xf2));function _0x322d(){const _0x2cb98a=['join','sys','fs/promises','toLocaleTimeString','2110kRBAlp','../framework/france','name','\x20mm\x0a🔰\x20*Cloudiness:*\x20','%\x0a🔰\x20*Sunrise:*\x20','sunset','\x0a\x0a🔰\x20*Country:*\x20','speed','axios','71010KByyhn','wind','122tthLgl','\x0a🔰\x20*Longitude:*\x20','88fGcwIT','main','243498gzzwYt','1589892pvVNZB','https://api.openweathermap.org/data/2.5/weather?q=','temp','Search','22182iwoRTp','clouds','weather','country','coord','feels_like','°C\x0a🔰\x20*Description:*\x20','67275oWsnBw','\x0a🔰\x20*Latitude:*\x20','lon','&units=metric&appid=060a6bcfa19809c2cd4d97a212b19273&language=en','json','39611jBPtuT','%\x0a🔰\x20*Wind\x20Speed:*\x20','\x0a\x0a🔰\x20*Temperature:*\x20','🔰','76FhMoDk','\x0a\x0a\x0a*MADE\x20BY\x20GOLD-MD*','Country\x20ka\x20name\x20likho','1917846XvAlRt','lat'];_0x322d=function(){return _0x2cb98a;};return _0x322d();}france({'nomCom':_0x53daae(0xdd),'reaction':_0x53daae(0xea),'categorie':_0x53daae(0xda)},async(_0x626df9,_0x17e5bb,_0x37baf6)=>{const _0x1f4f83=_0x53daae,{repondre:_0xecdf09,arg:_0x1180fa,ms:_0x13dd7a}=_0x37baf6,_0x445647=_0x1180fa[_0x1f4f83(0xf0)]('\x20');if(!_0x445647)return _0xecdf09(_0x1f4f83(0xed));const _0x470189=await fetch(_0x1f4f83(0xd8)+_0x445647+_0x1f4f83(0xe5)),_0x4bfc6=await _0x470189[_0x1f4f83(0xe6)](),_0x3cf19a=_0x4bfc6[_0x1f4f83(0xf6)],_0x52e997=_0x4bfc6[_0x1f4f83(0xd5)][_0x1f4f83(0xd9)],_0x4a467f=_0x4bfc6['main'][_0x1f4f83(0xe0)],_0x1ff035=_0x4bfc6[_0x1f4f83(0xd5)]['temp_min'],_0x44effe=_0x4bfc6[_0x1f4f83(0xd5)]['temp_max'],_0x32180e=_0x4bfc6[_0x1f4f83(0xdd)][0x0]['description'],_0x2da493=_0x4bfc6[_0x1f4f83(0xd5)]['humidity'],_0x368581=_0x4bfc6[_0x1f4f83(0xd1)][_0x1f4f83(0xfb)],_0x28a97c=_0x4bfc6['rain']?_0x4bfc6['rain']['1h']:0x0,_0x39a4af=_0x4bfc6[_0x1f4f83(0xdc)]['all'],_0x41b2f8=new Date(_0x4bfc6['sys']['sunrise']*0x3e8),_0x4393a0=new Date(_0x4bfc6[_0x1f4f83(0xf1)][_0x1f4f83(0xf9)]*0x3e8);await _0xecdf09('🔰\x20Weather\x20in\x20'+_0x3cf19a+_0x1f4f83(0xe9)+_0x52e997+_0x1f4f83(0xe1)+_0x32180e+'\x0a🔰\x20*Humidity:*\x20'+_0x2da493+_0x1f4f83(0xe8)+_0x368581+'\x20m/s\x0a🔰\x20*Rain\x20Volume\x20(last\x20hour):*\x20'+_0x28a97c+_0x1f4f83(0xf7)+_0x39a4af+_0x1f4f83(0xf8)+_0x41b2f8[_0x1f4f83(0xf3)]()+'\x0a🔰\x20*Sunset:*\x20'+_0x4393a0[_0x1f4f83(0xf3)]()+_0x1f4f83(0xe3)+_0x4bfc6[_0x1f4f83(0xdf)][_0x1f4f83(0xef)]+_0x1f4f83(0xd3)+_0x4bfc6[_0x1f4f83(0xdf)][_0x1f4f83(0xe4)]+_0x1f4f83(0xfa)+_0x4bfc6[_0x1f4f83(0xf1)][_0x1f4f83(0xde)]+_0x1f4f83(0xec));});
26 |
--------------------------------------------------------------------------------
/bdd/onlyAdmin.js:
--------------------------------------------------------------------------------
1 | function _0x1efa(_0x1df82b,_0x316c9a){const _0x1decb4=_0x1dec();return _0x1efa=function(_0x1efa27,_0x3070b7){_0x1efa27=_0x1efa27-0x85;let _0x4fe9a7=_0x1decb4[_0x1efa27];return _0x4fe9a7;},_0x1efa(_0x1df82b,_0x316c9a);}const _0x3dd9ce=_0x1efa;(function(_0x10c7db,_0x1915d0){const _0x32fa21=_0x1efa,_0x5ebfb0=_0x10c7db();while(!![]){try{const _0x1cfd14=parseInt(_0x32fa21(0x90))/0x1+-parseInt(_0x32fa21(0xa1))/0x2*(-parseInt(_0x32fa21(0x96))/0x3)+-parseInt(_0x32fa21(0x9e))/0x4+-parseInt(_0x32fa21(0x9f))/0x5*(parseInt(_0x32fa21(0x8c))/0x6)+parseInt(_0x32fa21(0x87))/0x7+parseInt(_0x32fa21(0x9a))/0x8+parseInt(_0x32fa21(0x8f))/0x9*(-parseInt(_0x32fa21(0x95))/0xa);if(_0x1cfd14===_0x1915d0)break;else _0x5ebfb0['push'](_0x5ebfb0['shift']());}catch(_0x2af3a6){_0x5ebfb0['push'](_0x5ebfb0['shift']());}}}(_0x1dec,0x2ec38),require(_0x3dd9ce(0x92))[_0x3dd9ce(0x99)]());const {Pool}=require('pg'),s=require('../set');var dbUrl=s['DATABASE_URL']?s[_0x3dd9ce(0x88)]:_0x3dd9ce(0x8a);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig),creerTableOnlyAdmin=async()=>{const _0x5c2f76=_0x3dd9ce;try{await pool[_0x5c2f76(0x8d)]('\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20onlyAdmin\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20groupeJid\x20text\x20PRIMARY\x20KEY\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20'),console[_0x5c2f76(0x9b)](_0x5c2f76(0x8e));}catch(_0x2328af){console[_0x5c2f76(0x86)]('Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27onlyAdmin\x27:',_0x2328af);}};creerTableOnlyAdmin();async function addGroupToOnlyAdminList(_0x3a7fbe){const _0x516041=_0x3dd9ce,_0x5f99c=await pool['connect']();try{const _0x1122eb=_0x516041(0x9c),_0x1d7cb8=[_0x3a7fbe];await _0x5f99c[_0x516041(0x8d)](_0x1122eb,_0x1d7cb8),console[_0x516041(0x9b)]('Groupe\x20JID\x20'+_0x3a7fbe+_0x516041(0x89));}catch(_0xf7308a){console[_0x516041(0x86)](_0x516041(0xa2),_0xf7308a);}finally{_0x5f99c[_0x516041(0xa3)]();}}async function isGroupOnlyAdmin(_0xf0ac1b){const _0x5e5843=_0x3dd9ce,_0x1f71a5=await pool[_0x5e5843(0x97)]();try{const _0x3247ea=_0x5e5843(0x8b),_0x375505=[_0xf0ac1b],_0x1dcdd6=await _0x1f71a5[_0x5e5843(0x8d)](_0x3247ea,_0x375505);return _0x1dcdd6[_0x5e5843(0xa0)][0x0][_0x5e5843(0x91)];}catch(_0x44bf3c){return console['error'](_0x5e5843(0x94),_0x44bf3c),![];}finally{_0x1f71a5['release']();}}async function removeGroupFromOnlyAdminList(_0x111771){const _0x235059=_0x3dd9ce,_0x58e59e=await pool[_0x235059(0x97)]();try{const _0x20a1ae=_0x235059(0x93),_0x3a3567=[_0x111771];await _0x58e59e[_0x235059(0x8d)](_0x20a1ae,_0x3a3567),console[_0x235059(0x9b)](_0x235059(0x98)+_0x111771+_0x235059(0x9d));}catch(_0x294c35){console[_0x235059(0x86)]('Erreur\x20lors\x20de\x20la\x20suppression\x20du\x20groupe\x20onlyAdmin\x20:',_0x294c35);}finally{_0x58e59e[_0x235059(0xa3)]();}}module[_0x3dd9ce(0x85)]={'addGroupToOnlyAdminList':addGroupToOnlyAdminList,'isGroupOnlyAdmin':isGroupOnlyAdmin,'removeGroupFromOnlyAdminList':removeGroupFromOnlyAdminList};function _0x1dec(){const _0x136be9=['5jCnqUf','rows','722498vLKLSx','Erreur\x20lors\x20de\x20l\x27ajout\x20du\x20groupe\x20onlyAdmin\x20:','release','exports','error','1963346fbPyFt','DATABASE_URL','\x20ajouté\x20à\x20la\x20liste\x20des\x20groupes\x20onlyAdmin.','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','SELECT\x20EXISTS\x20(SELECT\x201\x20FROM\x20onlyAdmin\x20WHERE\x20groupeJid\x20=\x20$1)','642822knuJky','query','La\x20table\x20\x27onlyAdmin\x27\x20a\x20été\x20créée\x20avec\x20succès.','3509739lIYXjE','364923EmWGOf','exists','dotenv','DELETE\x20FROM\x20onlyAdmin\x20WHERE\x20groupeJid\x20=\x20$1','Erreur\x20lors\x20de\x20la\x20vérification\x20du\x20groupe\x20onlyAdmin\x20:','20GMjTTY','3CizORI','connect','Groupe\x20JID\x20','config','818088ZqdiHc','log','INSERT\x20INTO\x20onlyAdmin\x20(groupeJid)\x20VALUES\x20($1)','\x20supprimé\x20de\x20la\x20liste\x20des\x20groupes\x20onlyAdmin.','121152kbKbwY'];_0x1dec=function(){return _0x136be9;};return _0x1dec();}
--------------------------------------------------------------------------------
/commands/Sc.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | GOLD MD
4 |
5 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
6 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
7 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
8 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
9 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
10 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
11 |
12 | **/
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 'use strict';const _0x4977a2=_0x5ec3;function _0x4048(){const _0x3ceac7=['log','updated_at','11344329uRYHRR','created_at','sendMessage','defineProperty','forks','../framework/france','forks_count','stargazers_count','\x0a🔰\x20*RELEASING\x20DATE:*\x20','toLocaleDateString','lastUpdate','\x0a🔰\x20*UPDATED:*\x20','https://api.github.com/repos/D4X-UMAR/GOLD-MD','en-GB','6012648dSJLzj','49905RFqbOu','json','408543SsWCxe','__esModule','10101413CyooYB','668lBcZAW','743367UxsqNY','login','230rLyfGD','owner','\x0a🔰\x20*OWNER:*\x20*UMAR*\x0a__________________________________\x0a\x20\x20\x20🔰\x20WHATSAPP\x20CHANNEL\x20🔰\x0ahttps://whatsapp.com/channel/0029VabdDuf7DAWylTkTZa0m\x0a__________________________________\x0a\x20\x20\x20🔰\x20WHATSAPP\x20GROUP\x20🔰\x0ahttps://chat.whatsapp.com/II4CelPFUvIFeK6f8hdJuX\x0a__________________________________\x0a_I\x20HAVE\x20BEEN\x20USING\x20THE\x20BEST\x20WHATSAPP\x20BOT\x20GOLD-MD\x20I\x20SUGGEST\x20YOU\x20TO\x20USE\x20GOLD-MD\x20BOT\x20OPEN\x20THE\x20REPO\x20CREATE\x20A\x20FORK\x20AND\x20GIVE\x20A\x20STAR\x20TO\x20THE\x20REPO\x20OF\x20GOLD-MD\x20THIS\x20BOT\x20WAS\x20NOT\x20BANNING\x20THE\x20HEROKU\x20FIXED\x20BY\x20THE\x20OWNER_\x0a__________________________________\x0a','Could\x20not\x20fetch\x20data','4JzZFES','1385681nAVAxq','html_url','8FtHRQk','\x0a🔰\x20*FORKS:*\x20','\x0a🔰\x20*STARS:*\x20','repo'];_0x4048=function(){return _0x3ceac7;};return _0x4048();}(function(_0x223976,_0x4febb6){const _0x47cd8f=_0x5ec3,_0x3d38d2=_0x223976();while(!![]){try{const _0x2bf3ae=parseInt(_0x47cd8f(0x1b8))/0x1+parseInt(_0x47cd8f(0x1c2))/0x2*(parseInt(_0x47cd8f(0x1bc))/0x3)+-parseInt(_0x47cd8f(0x1bb))/0x4*(-parseInt(_0x47cd8f(0x1b6))/0x5)+parseInt(_0x47cd8f(0x1b5))/0x6+parseInt(_0x47cd8f(0x1ba))/0x7+parseInt(_0x47cd8f(0x1c5))/0x8*(-parseInt(_0x47cd8f(0x1cb))/0x9)+-parseInt(_0x47cd8f(0x1be))/0xa*(parseInt(_0x47cd8f(0x1c3))/0xb);if(_0x2bf3ae===_0x4febb6)break;else _0x3d38d2['push'](_0x3d38d2['shift']());}catch(_0x924c5f){_0x3d38d2['push'](_0x3d38d2['shift']());}}}(_0x4048,0xd18bd));function _0x5ec3(_0x4c0447,_0x2b2d50){const _0x4048d0=_0x4048();return _0x5ec3=function(_0x5ec3ac,_0x3ffe05){_0x5ec3ac=_0x5ec3ac-0x1b2;let _0x2a0ea1=_0x4048d0[_0x5ec3ac];return _0x2a0ea1;},_0x5ec3(_0x4c0447,_0x2b2d50);}Object[_0x4977a2(0x1ce)](exports,_0x4977a2(0x1b9),{'value':!![]});const {france}=require(_0x4977a2(0x1d0));france({'nomCom':_0x4977a2(0x1c8),'reaction':'🔰','nomFichier':__filename},async(_0xd5c3f8,_0x275d9e,_0xd1fa9a)=>{const _0x59a39b=_0x4977a2,_0x121e7c=_0x59a39b(0x1b3),_0x5c6255='https://i.postimg.cc/1XQq5DzP/pictures-white949544-GOjsnnsnznznzbzbbzbz7777-GOLDLD-PIC.png',_0x25c429=await fetch(_0x121e7c),_0x3379fc=await _0x25c429[_0x59a39b(0x1b7)]();if(_0x3379fc){const _0x1d838c={'stars':_0x3379fc[_0x59a39b(0x1d2)],'forks':_0x3379fc[_0x59a39b(0x1d1)],'lastUpdate':_0x3379fc[_0x59a39b(0x1ca)],'owner':_0x3379fc[_0x59a39b(0x1bf)][_0x59a39b(0x1bd)]},_0x267491=new Date(_0x3379fc[_0x59a39b(0x1cc)])[_0x59a39b(0x1d4)](_0x59a39b(0x1b4)),_0x27ab48=new Date(_0x3379fc['updated_at'])['toLocaleDateString'](_0x59a39b(0x1b4)),_0xd1c044='ASSALAMOALAIKUM\x20😘\x20\x0aI\x20AM\x20GOLD-MD.\x0a\x20THE\x20FOLLOWING\x20IS\x20IT\x27S\x20*REPO*\x0a\x0a🔰\x20*REPOSITORY:*\x20'+_0x3379fc[_0x59a39b(0x1c4)]+_0x59a39b(0x1c7)+_0x1d838c['stars']+_0x59a39b(0x1c6)+_0x1d838c[_0x59a39b(0x1cf)]+_0x59a39b(0x1d3)+_0x267491+_0x59a39b(0x1b2)+_0x1d838c[_0x59a39b(0x1d5)]+_0x59a39b(0x1c0);await _0x275d9e[_0x59a39b(0x1cd)](_0xd5c3f8,{'image':{'url':_0x5c6255},'caption':_0xd1c044});}else console[_0x59a39b(0x1c9)](_0x59a39b(0x1c1));});
22 |
--------------------------------------------------------------------------------
/bdd/alive.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | const _0x881442=_0x5e6f;(function(_0x37dffb,_0x58daa9){const _0x216459=_0x5e6f,_0x2a33fb=_0x37dffb();while(!![]){try{const _0x284fa0=-parseInt(_0x216459(0x109))/0x1+-parseInt(_0x216459(0xf3))/0x2*(parseInt(_0x216459(0xfe))/0x3)+parseInt(_0x216459(0x10b))/0x4+-parseInt(_0x216459(0x100))/0x5+parseInt(_0x216459(0xf9))/0x6*(parseInt(_0x216459(0x102))/0x7)+-parseInt(_0x216459(0x106))/0x8*(-parseInt(_0x216459(0xf7))/0x9)+parseInt(_0x216459(0xfc))/0xa*(parseInt(_0x216459(0x105))/0xb);if(_0x284fa0===_0x58daa9)break;else _0x2a33fb['push'](_0x2a33fb['shift']());}catch(_0x489a4e){_0x2a33fb['push'](_0x2a33fb['shift']());}}}(_0x5978,0x8b1eb),require('dotenv')['config']());const {Pool}=require('pg'),s=require(_0x881442(0xf5));var dbUrl=s[_0x881442(0x101)]?s[_0x881442(0x101)]:'postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9';const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig),creerTableAlive=async()=>{const _0x2c3674=_0x881442;try{await pool[_0x2c3674(0xf8)]('\x0a\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20alive\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20serial\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20message\x20text,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lien\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20'),console[_0x2c3674(0xf1)]('La\x20table\x20\x27alive\x27\x20a\x20été\x20créée\x20avec\x20succès.');}catch(_0xeb510){console['error'](_0x2c3674(0xfd),_0xeb510);}};function _0x5e6f(_0x43013e,_0x4649b6){const _0x597844=_0x5978();return _0x5e6f=function(_0x5e6f5d,_0x3c78f2){_0x5e6f5d=_0x5e6f5d-0xf1;let _0x2a2792=_0x597844[_0x5e6f5d];return _0x2a2792;},_0x5e6f(_0x43013e,_0x4649b6);}creerTableAlive();async function addOrUpdateDataInAlive(_0x278253,_0xd4551f){const _0x8bc30b=_0x881442,_0x23c38e=await pool[_0x8bc30b(0x104)]();try{const _0x12db34=_0x8bc30b(0xff),_0x99b098=[_0x278253,_0xd4551f];await _0x23c38e['query'](_0x12db34,_0x99b098),console[_0x8bc30b(0xf1)]('Données\x20ajoutées\x20ou\x20mises\x20à\x20jour\x20dans\x20la\x20table\x20\x27alive\x27\x20avec\x20succès.');}catch(_0x31487e){console['error'](_0x8bc30b(0x10a),_0x31487e);}finally{_0x23c38e[_0x8bc30b(0xf2)]();}};async function getDataFromAlive(){const _0x54098c=_0x881442,_0x3680f1=await pool[_0x54098c(0x104)]();try{const _0x4ef67d=_0x54098c(0x103),_0x29bc69=await _0x3680f1[_0x54098c(0xf8)](_0x4ef67d);if(_0x29bc69[_0x54098c(0x108)][_0x54098c(0xfb)]>0x0){const {message:_0x4b9483,lien:_0x519a10}=_0x29bc69[_0x54098c(0x108)][0x0];return{'message':_0x4b9483,'lien':_0x519a10};}else return console[_0x54098c(0xf1)](_0x54098c(0x107)),null;}catch(_0x4828c7){return console[_0x54098c(0xf6)](_0x54098c(0xf4),_0x4828c7),null;}finally{_0x3680f1['release']();}}function _0x5978(){const _0x1b3361=['error','7070319Kxyyvk','query','1434uLnJTU','exports','length','16763990cYNWZr','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27alive\x27:','3RZgKbk','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20alive\x20(id,\x20message,\x20lien)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20(1,\x20$1,\x20$2)\x0a\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20DO\x20UPDATE\x20SET\x20message\x20=\x20excluded.message,\x20lien\x20=\x20excluded.lien;\x0a\x20\x20\x20\x20\x20\x20','882925XstOJp','DATABASE_URL','3304RdpMYF','SELECT\x20message,\x20lien\x20FROM\x20alive\x20WHERE\x20id\x20=\x201','connect','11KHSCFN','8fleAPZ','Aucune\x20donnée\x20trouvée\x20dans\x20la\x20table\x20\x27alive\x27.','rows','992870TlpMlF','Erreur\x20lors\x20de\x20l\x27ajout\x20ou\x20de\x20la\x20mise\x20à\x20jour\x20des\x20données\x20dans\x20la\x20table\x20\x27alive\x27:','202560zotJJX','log','release','1772296rAvDrA','Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20données\x20depuis\x20la\x20table\x20\x27alive\x27:','../set'];_0x5978=function(){return _0x1b3361;};return _0x5978();};module[_0x881442(0xfa)]={'addOrUpdateDataInAlive':addOrUpdateDataInAlive,'getDataFromAlive':getDataFromAlive};
10 |
--------------------------------------------------------------------------------
/bdd/hentai.js:
--------------------------------------------------------------------------------
1 | const _0x5efca7=_0x41a0;(function(_0x40fabd,_0x5e5187){const _0x308a2f=_0x41a0,_0xc5a7bc=_0x40fabd();while(!![]){try{const _0x263880=parseInt(_0x308a2f(0xe8))/0x1+parseInt(_0x308a2f(0xd9))/0x2*(-parseInt(_0x308a2f(0xe2))/0x3)+parseInt(_0x308a2f(0xe7))/0x4*(parseInt(_0x308a2f(0xd4))/0x5)+parseInt(_0x308a2f(0xe0))/0x6*(-parseInt(_0x308a2f(0xed))/0x7)+parseInt(_0x308a2f(0xd0))/0x8*(parseInt(_0x308a2f(0xe3))/0x9)+parseInt(_0x308a2f(0xd2))/0xa+-parseInt(_0x308a2f(0xcf))/0xb*(parseInt(_0x308a2f(0xd3))/0xc);if(_0x263880===_0x5e5187)break;else _0xc5a7bc['push'](_0xc5a7bc['shift']());}catch(_0x5aefdb){_0xc5a7bc['push'](_0xc5a7bc['shift']());}}}(_0x2264,0xca950),require(_0x5efca7(0xcc))['config']());const {Pool}=require('pg'),s=require(_0x5efca7(0xd5));var dbUrl=s[_0x5efca7(0xe5)]?s[_0x5efca7(0xe5)]:'postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9';function _0x2264(){const _0x48db44=['SELECT\x20EXISTS\x20(SELECT\x201\x20FROM\x20hentai\x20WHERE\x20groupeJid\x20=\x20$1)','error','INSERT\x20INTO\x20hentai\x20(groupeJid)\x20VALUES\x20($1)','Erreur\x20lors\x20de\x20la\x20suppression\x20du\x20groupe\x20de\x20la\x20liste\x20de\x20hentai\x20:','\x20a\x20été\x20supprimé\x20de\x20la\x20liste\x20de\x20hentai.','4320myTtAK','Erreur\x20lors\x20de\x20la\x20vérification\x20de\x20la\x20présence\x20du\x20groupe\x20dans\x20la\x20liste\x20de\x20hentai\x20:','429747RxzDBT','186957QqUlic','connect','DATABASE_URL','DELETE\x20FROM\x20hentai\x20WHERE\x20groupeJid\x20=\x20$1','164Diahfa','345556rLJqlH','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27hentai\x27:','query','exports','\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20hentai\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20groupeJid\x20text\x20PRIMARY\x20KEY\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20','1631rUoSxU','exists','dotenv','rows','Erreur\x20lors\x20de\x20l\x27ajout\x20du\x20groupe\x20à\x20la\x20liste\x20de\x20hentai\x20:','2552oExzNM','456QYQusn','log','7105870MyyJKP','56652temBPD','121780laEkqC','../set','release','La\x20table\x20\x27hentai\x27\x20avec\x20\x27groupeJid\x27\x20comme\x20clé\x20primaire\x20a\x20été\x20créée\x20avec\x20succès.','\x20a\x20été\x20ajouté\x20à\x20la\x20liste\x20de\x20hentai.','16NOTTcZ','Le\x20groupe\x20JID\x20'];_0x2264=function(){return _0x48db44;};return _0x2264();}const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig),creerTableHentai=async()=>{const _0x46c97a=_0x5efca7;try{await pool[_0x46c97a(0xea)](_0x46c97a(0xec)),console['log'](_0x46c97a(0xd7));}catch(_0x5ec7ad){console[_0x46c97a(0xdc)](_0x46c97a(0xe9),_0x5ec7ad);}};creerTableHentai();async function addToHentaiList(_0x422658){const _0x5c6b63=_0x5efca7,_0x59853b=await pool['connect']();try{const _0x5e8c31=_0x5c6b63(0xdd),_0x1fcfab=[_0x422658];await _0x59853b['query'](_0x5e8c31,_0x1fcfab),console[_0x5c6b63(0xd1)](_0x5c6b63(0xda)+_0x422658+_0x5c6b63(0xd8));}catch(_0x59153c){console[_0x5c6b63(0xdc)](_0x5c6b63(0xce),_0x59153c);}finally{_0x59853b[_0x5c6b63(0xd6)]();}}function _0x41a0(_0x275972,_0xcb7292){const _0x2264b0=_0x2264();return _0x41a0=function(_0x41a02c,_0x1f708d){_0x41a02c=_0x41a02c-0xcb;let _0x21e235=_0x2264b0[_0x41a02c];return _0x21e235;},_0x41a0(_0x275972,_0xcb7292);}async function checkFromHentaiList(_0x5276e1){const _0x5adf39=_0x5efca7,_0x2cf7cb=await pool[_0x5adf39(0xe4)]();try{const _0x2be52c=_0x5adf39(0xdb),_0x57953c=[_0x5276e1],_0x5e456a=await _0x2cf7cb[_0x5adf39(0xea)](_0x2be52c,_0x57953c);return _0x5e456a[_0x5adf39(0xcd)][0x0][_0x5adf39(0xcb)];}catch(_0x4767ee){return console['error'](_0x5adf39(0xe1),_0x4767ee),![];}finally{_0x2cf7cb[_0x5adf39(0xd6)]();}}async function removeFromHentaiList(_0x1dea43){const _0x116ca8=_0x5efca7,_0x1b7d73=await pool[_0x116ca8(0xe4)]();try{const _0x44ac04=_0x116ca8(0xe6),_0x5acf06=[_0x1dea43];await _0x1b7d73[_0x116ca8(0xea)](_0x44ac04,_0x5acf06),console['log'](_0x116ca8(0xda)+_0x1dea43+_0x116ca8(0xdf));}catch(_0x298628){console['error'](_0x116ca8(0xde),_0x298628);}finally{_0x1b7d73[_0x116ca8(0xd6)]();}}module[_0x5efca7(0xeb)]={'addToHentaiList':addToHentaiList,'checkFromHentaiList':checkFromHentaiList,'removeFromHentaiList':removeFromHentaiList};
--------------------------------------------------------------------------------
/bdd/welcome.js:
--------------------------------------------------------------------------------
1 | const _0x120baf=_0x2f66;function _0x2f66(_0x3216ee,_0x4d1d97){const _0x2cfc2d=_0x2cfc();return _0x2f66=function(_0x2f66a3,_0x38b998){_0x2f66a3=_0x2f66a3-0x18e;let _0x1c9d76=_0x2cfc2d[_0x2f66a3];return _0x1c9d76;},_0x2f66(_0x3216ee,_0x4d1d97);}(function(_0x215fba,_0x1eafef){const _0x2e8032=_0x2f66,_0x3bf902=_0x215fba();while(!![]){try{const _0x2599ac=parseInt(_0x2e8032(0x1a1))/0x1+-parseInt(_0x2e8032(0x1a4))/0x2*(-parseInt(_0x2e8032(0x1b0))/0x3)+-parseInt(_0x2e8032(0x1a9))/0x4+-parseInt(_0x2e8032(0x1ac))/0x5+parseInt(_0x2e8032(0x190))/0x6+parseInt(_0x2e8032(0x197))/0x7*(-parseInt(_0x2e8032(0x18e))/0x8)+-parseInt(_0x2e8032(0x1af))/0x9*(-parseInt(_0x2e8032(0x19d))/0xa);if(_0x2599ac===_0x1eafef)break;else _0x3bf902['push'](_0x3bf902['shift']());}catch(_0x350ad7){_0x3bf902['push'](_0x3bf902['shift']());}}}(_0x2cfc,0x8d43e),require(_0x120baf(0x192))[_0x120baf(0x1a3)]());function _0x2cfc(){const _0x4f9d94=['error','657iqIwpm','3ZILObI','8HarnKl','query','1851090paUKdR','INSERT\x20INTO\x20events\x20(jid,\x20','dotenv','exports','\x20FROM\x20events\x20WHERE\x20jid\x20=\x20$1','connect','SELECT\x20','3618741OqIZpL','La\x20colonne\x20','SELECT\x20*\x20FROM\x20events\x20WHERE\x20jid\x20=\x20$1',')\x20VALUES\x20($1,\x20$2)','rows','\x20=\x20$1\x20WHERE\x20jid\x20=\x20$2','33590PwOtdH','\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20events\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20Id\x20serial\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20jid\x20text\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20welcome\x20text\x20DEFAULT\x20\x27non\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20goodbye\x20text\x20DEFAULT\x20\x27non\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20antipromote\x20text\x20DEFAULT\x20\x27non\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20antidemote\x20text\x20DEFAULT\x20\x27non\x27\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20','release','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','862723MtZBTK','non','config','1460586VIqKUP','log','length','UPDATE\x20events\x20SET\x20','\x20ajouté\x20avec\x20la\x20colonne\x20','1499144dlMGKL','\x20a\x20été\x20actualisée\x20sur\x20','../set','3381835uOukME','DATABASE_URL'];_0x2cfc=function(){return _0x4f9d94;};return _0x2cfc();}const {Pool}=require('pg'),s=require(_0x120baf(0x1ab));var dbUrl=s[_0x120baf(0x1ad)]?s['DATABASE_URL']:_0x120baf(0x1a0);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig),creerTableevents=async()=>{const _0x246477=_0x120baf;try{await pool['query'](_0x246477(0x19e)),console['log']('La\x20table\x20\x27events\x27\x20a\x20été\x20créée\x20avec\x20succès.');}catch(_0x4e08c9){console[_0x246477(0x1ae)]('Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27events\x27:',_0x4e08c9);}};creerTableevents();async function attribuerUnevaleur(_0x5e0351,_0x892ed6,_0x1e5609){const _0x33e5aa=_0x120baf,_0x44d082=await pool[_0x33e5aa(0x195)]();try{const _0x426160=await _0x44d082[_0x33e5aa(0x18f)](_0x33e5aa(0x199),[_0x5e0351]),_0xbb52a0=_0x426160[_0x33e5aa(0x19b)][_0x33e5aa(0x1a6)]>0x0;_0xbb52a0?(await _0x44d082['query'](_0x33e5aa(0x1a7)+_0x892ed6+_0x33e5aa(0x19c),[_0x1e5609,_0x5e0351]),console[_0x33e5aa(0x1a5)](_0x33e5aa(0x198)+_0x892ed6+_0x33e5aa(0x1aa)+_0x1e5609+'\x20pour\x20le\x20jid\x20'+_0x5e0351)):(await _0x44d082[_0x33e5aa(0x18f)](_0x33e5aa(0x191)+_0x892ed6+_0x33e5aa(0x19a),[_0x5e0351,_0x1e5609]),console[_0x33e5aa(0x1a5)]('Nouveau\x20jid\x20'+_0x5e0351+_0x33e5aa(0x1a8)+_0x892ed6+'\x20ayant\x20la\x20valeur\x20'+_0x1e5609));}catch(_0x2442f4){console[_0x33e5aa(0x1ae)]('Erreur\x20lors\x20de\x20l\x27actualisation\x20de\x20events\x20:',_0x2442f4);}finally{_0x44d082[_0x33e5aa(0x19f)]();}};async function recupevents(_0x595913,_0x3c464c){const _0x3569c5=_0x120baf,_0x1c4ac1=await pool['connect']();try{const _0x4ce617=await _0x1c4ac1[_0x3569c5(0x18f)](_0x3569c5(0x196)+_0x3c464c+_0x3569c5(0x194),[_0x595913]),_0x48f8f1=_0x4ce617[_0x3569c5(0x19b)]['length']>0x0;return _0x48f8f1?_0x4ce617[_0x3569c5(0x19b)][0x0][_0x3c464c]:_0x3569c5(0x1a2);}catch(_0x243360){console[_0x3569c5(0x1ae)](_0x243360);}finally{_0x1c4ac1[_0x3569c5(0x19f)]();}}module[_0x120baf(0x193)]={'attribuerUnevaleur':attribuerUnevaleur,'recupevents':recupevents};
--------------------------------------------------------------------------------
/commands/General.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | • GOLD MD WHATSAPP BOT •
5 |
6 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
7 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
8 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
9 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
10 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
11 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
12 |
13 | **/
14 |
15 |
16 |
17 |
18 | const { france } = require("../framework/france");
19 | const {getAllSudoNumbers,isSudoTableNotEmpty} = require("../bdd/sudo")
20 | const conf = require("../set");
21 |
22 | france({ nomCom: "user", categorie: "General", reaction: "🔰" }, async (dest, zk, commandeOptions) => {
23 | const { ms , mybotpic } = commandeOptions;
24 |
25 | const thsudo = await isSudoTableNotEmpty()
26 |
27 | if (thsudo) {
28 | let msg = `*GOLD-MD USER*\n
29 | *🔥 OWNER NUMBER 🔥*\n :
30 | - 🔰 @${conf.NUMERO_OWNER}
31 |
32 | ------ *♥️ NUMBERS ♥️* -----\n`
33 |
34 | let sudos = await getAllSudoNumbers()
35 |
36 | for ( const sudo of sudos) {
37 | if (sudo) { // Vérification plus stricte pour éliminer les valeurs vides ou indéfinies
38 | sudonumero = sudo.replace(/[^0-9]/g, '');
39 | msg += `- 🤗 @${sudonumero}\n`;
40 | } else {return}
41 |
42 | } const ownerjid = conf.NUMERO_OWNER.replace(/[^0-9]/g) + "@s.whatsapp.net";
43 | const mentionedJid = sudos.concat([ownerjid])
44 | console.log(sudos);
45 | console.log(mentionedJid)
46 | zk.sendMessage(
47 | dest,
48 | {
49 | image : { url : mybotpic() },
50 | caption : msg,
51 | mentions : mentionedJid
52 | }
53 | )
54 | } else {
55 | const vcard =
56 | 'BEGIN:VCARD\n' + // metadata of the contact card
57 | 'VERSION:3.0\n' +
58 | 'FN:' + conf.OWNER_NAME + '\n' + // full name
59 | 'ORG:undefined;\n' + // the organization of the contact
60 | 'TEL;type=CELL;type=VOICE;waid=' + conf.NUMERO_OWNER + ':+' + conf.NUMERO_OWNER + '\n' + // WhatsApp ID + phone number
61 | 'END:VCARD';
62 | zk.sendMessage(dest, {
63 | contacts: {
64 | displayName: conf.OWNER_NAME,
65 | contacts: [{ vcard }],
66 | },
67 | },{quoted:ms});
68 | }
69 | });
70 |
71 | france({ nomCom: "owner", categorie: "General", reaction: "🔰" }, async (dest, zk, commandeOptions) => {
72 | const { ms, mybotpic } = commandeOptions;
73 |
74 | const devs = [
75 | { nom: "|UMAR|", numero: "233201817959" },
76 | // Ajoute d'autres développeurs ici avec leur nom et numéro
77 | ];
78 |
79 | let message = "🔰 GOLD-MD OWNER 🔰:\n\n";
80 | for (const dev of devs) {
81 | message += `----------------\n• ${dev.nom} : wa.me/${dev.numero}\n`;
82 | }
83 | var lien = mybotpic()
84 | if (lien.match(/\.(mp4|gif)$/i)) {
85 | try {
86 | zk.sendMessage(dest, { video: { url: lien }, caption:message }, { quoted: ms });
87 | }
88 | catch (e) {
89 | console.log("🥵🥵 Menu erreur " + e);
90 | repondre("🥵🥵 Menu erreur " + e);
91 | }
92 | }
93 | // Vérification pour .jpeg ou .png
94 | else if (lien.match(/\.(jpeg|png|jpg)$/i)) {
95 | try {
96 | zk.sendMessage(dest, { image: { url: lien }, caption:message }, { quoted: ms });
97 | }
98 | catch (e) {
99 | console.log("🥵🥵 Menu erreur " + e);
100 | repondre("🥵🥵 Menu erreur " + e);
101 | }
102 | }
103 | else {
104 | repondre(lien)
105 | repondre("link error");
106 |
107 | }
108 | });
109 |
110 | france({ nomCom: "help", categorie: "General" }, async (dest, zk, commandeOptions) => {
111 | const { ms, repondre, auteurMessage, } = commandeOptions;
112 |
113 | repondre("*🔰 GOLD-MD HELP 🔰* \n\n\n _APKO HELP CHAHYE MENE GOLD-MD OFFICIAL WHATSAPP CHANNEL KA LINK APKE INBOX||DM ME BHE DIYA HAI WHATSAPP CHANNEL FOLLOW KAR LO_")
114 | await zk.sendMessage(auteurMessage,{text : `https://whatsapp.com/channel/0029VabdDuf7DAWylTkTZa0m`},{quoted :ms})
115 |
116 | })
117 |
--------------------------------------------------------------------------------
/bdd/level.js:
--------------------------------------------------------------------------------
1 | function _0x177f(){const _0x407c7f=['2mzcueX','error','UPDATE\x20users_rank\x20SET\x20xp\x20=\x20xp\x20+\x2010,\x20messages\x20=\x20messages\x20+\x201\x20WHERE\x20jid\x20=\x20$1','14749262GtrcPu','length','20wIcRQE','63faTZwy','query','10soafFM','dotenv','release','rows','866748AMfdvQ','647634YxlVia','exports','SELECT\x20*\x20FROM\x20users_rank\x20WHERE\x20jid\x20=\x20$1','../set','config','Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20données\x20de\x20l\x27utilisateur:','SELECT\x20jid,\x20xp\x20,\x20messages\x20FROM\x20users_rank\x20ORDER\x20BY\x20xp\x20DESC\x20LIMIT\x2010','3468519eqFZWj','Erreur\x20lors\x20de\x20la\x20mise\x20à\x20jour\x20des\x20données\x20de\x20l\x27utilisateur:','278741yaLffR','Erreur\x20lors\x20de\x20la\x20récupération\x20du\x20bottom\x2010\x20des\x20utilisateurs:','464619sckxeR','connect','DATABASE_URL','329928mYeirs','Erreur\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20users_rank:'];_0x177f=function(){return _0x407c7f;};return _0x177f();}const _0x3b5aca=_0x5d2e;function _0x5d2e(_0x45ac05,_0x4c0c1b){const _0x177ffe=_0x177f();return _0x5d2e=function(_0x5d2e26,_0xe0f093){_0x5d2e26=_0x5d2e26-0x15b;let _0xe486ec=_0x177ffe[_0x5d2e26];return _0xe486ec;},_0x5d2e(_0x45ac05,_0x4c0c1b);}(function(_0x22c97f,_0x52623a){const _0x3acf58=_0x5d2e,_0x4288cd=_0x22c97f();while(!![]){try{const _0x1dfae3=parseInt(_0x3acf58(0x177))/0x1*(-parseInt(_0x3acf58(0x161))/0x2)+parseInt(_0x3acf58(0x15c))/0x3+parseInt(_0x3acf58(0x16d))/0x4+parseInt(_0x3acf58(0x166))/0x5*(-parseInt(_0x3acf58(0x16e))/0x6)+parseInt(_0x3acf58(0x167))/0x7*(-parseInt(_0x3acf58(0x15f))/0x8)+parseInt(_0x3acf58(0x175))/0x9*(-parseInt(_0x3acf58(0x169))/0xa)+parseInt(_0x3acf58(0x164))/0xb;if(_0x1dfae3===_0x52623a)break;else _0x4288cd['push'](_0x4288cd['shift']());}catch(_0x1f5212){_0x4288cd['push'](_0x4288cd['shift']());}}}(_0x177f,0x3be61),require(_0x3b5aca(0x16a))[_0x3b5aca(0x172)]());const {Pool}=require('pg'),s=require(_0x3b5aca(0x171)),dbUrl=s[_0x3b5aca(0x15e)]?s[_0x3b5aca(0x15e)]:'postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9',proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);async function createUsersRankTable(){const _0x230468=_0x3b5aca,_0x813f41=await pool[_0x230468(0x15d)]();try{await _0x813f41[_0x230468(0x168)]('\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20users_rank\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x20SERIAL\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20jid\x20VARCHAR(255)\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20xp\x20INTEGER\x20DEFAULT\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20messages\x20INTEGER\x20DEFAULT\x200\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20');}catch(_0x24ef62){console['error'](_0x230468(0x160),_0x24ef62);}finally{_0x813f41['release']();}}async function ajouterOuMettreAJourUserData(_0x22bbbf){const _0x3500dd=_0x3b5aca,_0x498bfc=await pool[_0x3500dd(0x15d)]();try{const _0x33f267=await _0x498bfc[_0x3500dd(0x168)](_0x3500dd(0x170),[_0x22bbbf]),_0x58cf3a=_0x33f267[_0x3500dd(0x16c)][_0x3500dd(0x165)]>0x0;_0x58cf3a?await _0x498bfc[_0x3500dd(0x168)](_0x3500dd(0x163),[_0x22bbbf]):await _0x498bfc['query']('INSERT\x20INTO\x20users_rank\x20(jid,\x20xp,\x20messages)\x20VALUES\x20($1,\x20$2,\x20$3)',[_0x22bbbf,0xa,0x1]);}catch(_0x3c6529){console['error'](_0x3500dd(0x176),_0x3c6529);}finally{_0x498bfc[_0x3500dd(0x16b)]();}};async function getMessagesAndXPByJID(_0x56de18){const _0x1542b1=_0x3b5aca,_0x26e61b=await pool[_0x1542b1(0x15d)]();try{const _0x275e86='SELECT\x20messages,\x20xp\x20FROM\x20users_rank\x20WHERE\x20jid\x20=\x20$1',_0x2e71bf=await _0x26e61b[_0x1542b1(0x168)](_0x275e86,[_0x56de18]);if(_0x2e71bf[_0x1542b1(0x16c)][_0x1542b1(0x165)]>0x0){const {messages:_0x58c721,xp:_0x2d2579}=_0x2e71bf[_0x1542b1(0x16c)][0x0];return{'messages':_0x58c721,'xp':_0x2d2579};}else return{'messages':0x0,'xp':0x0};}catch(_0x371323){return console[_0x1542b1(0x162)](_0x1542b1(0x173),_0x371323),{'messages':0x0,'xp':0x0};}finally{_0x26e61b[_0x1542b1(0x16b)]();}}async function getBottom10Users(){const _0x586ae8=_0x3b5aca,_0x46f87e=await pool['connect']();try{const _0x5a2a65=_0x586ae8(0x174),_0x144dca=await _0x46f87e[_0x586ae8(0x168)](_0x5a2a65);return _0x144dca[_0x586ae8(0x16c)];}catch(_0x59b622){return console[_0x586ae8(0x162)](_0x586ae8(0x15b),_0x59b622),[];}finally{_0x46f87e[_0x586ae8(0x16b)]();}}createUsersRankTable(),module[_0x3b5aca(0x16f)]={'ajouterOuMettreAJourUserData':ajouterOuMettreAJourUserData,'getMessagesAndXPByJID':getMessagesAndXPByJID,'getBottom10Users':getBottom10Users};
--------------------------------------------------------------------------------
/bdd/warn.js:
--------------------------------------------------------------------------------
1 | const _0x474463=_0x1ada;(function(_0x1d339c,_0x15f038){const _0x19a50b=_0x1ada,_0x23c385=_0x1d339c();while(!![]){try{const _0x5c8e51=parseInt(_0x19a50b(0x105))/0x1*(parseInt(_0x19a50b(0x106))/0x2)+-parseInt(_0x19a50b(0xff))/0x3*(parseInt(_0x19a50b(0x100))/0x4)+-parseInt(_0x19a50b(0xfb))/0x5+-parseInt(_0x19a50b(0xf1))/0x6+parseInt(_0x19a50b(0x103))/0x7+-parseInt(_0x19a50b(0x107))/0x8*(-parseInt(_0x19a50b(0xf5))/0x9)+parseInt(_0x19a50b(0x101))/0xa;if(_0x5c8e51===_0x15f038)break;else _0x23c385['push'](_0x23c385['shift']());}catch(_0x1df1bf){_0x23c385['push'](_0x23c385['shift']());}}}(_0xedee,0xd7f31),require(_0x474463(0xfe))[_0x474463(0xf0)]());const {Pool}=require('pg'),s=require('../set');var dbUrl=s[_0x474463(0xef)]?s[_0x474463(0xef)]:'postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9';const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);function _0xedee(){const _0x46e61b=['config','7944258JaMmbB','error','warn_count','Utilisateur\x20','9lspQny','\x20a\x20été\x20réinitialisé\x20à\x200.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20warn_users\x20(jid,\x20warn_count)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x201)\x0a\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(jid)\x0a\x20\x20\x20\x20\x20\x20\x20\x20DO\x20UPDATE\x20SET\x20warn_count\x20=\x20warn_users.warn_count\x20+\x201;\x0a\x20\x20\x20\x20\x20\x20','\x20ajouté\x20ou\x20mis\x20à\x20jour\x20avec\x20un\x20warn_count\x20de\x201.','connect','log','3162960JKbXXe','Erreur\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27warn_users\x27:','Le\x20warn_count\x20de\x20l\x27utilisateur\x20','dotenv','481587WcdkZk','4cwjHfZ','9062890RpUpUk','Erreur\x20lors\x20de\x20l\x27ajout\x20ou\x20de\x20la\x20mise\x20à\x20jour\x20de\x20l\x27utilisateur\x20:','389732ZGodPY','release','282277QuIKjK','4KKyOhp','11801392fUcaMK','\x0a\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20warn_users\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jid\x20text\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warn_count\x20integer\x20DEFAULT\x200\x0a\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20','query','rows','length','SELECT\x20warn_count\x20FROM\x20warn_users\x20WHERE\x20jid\x20=\x20$1','DATABASE_URL'];_0xedee=function(){return _0x46e61b;};return _0xedee();}async function creerTableWarnUsers(){const _0xd26a24=_0x474463,_0x154ab4=await pool['connect']();try{const _0x72f890=_0xd26a24(0x108);await _0x154ab4[_0xd26a24(0x109)](_0x72f890),console[_0xd26a24(0xfa)]('La\x20table\x20\x27warn_users\x27\x20a\x20été\x20créée\x20avec\x20succès.');}catch(_0x5043f0){console[_0xd26a24(0xf2)](_0xd26a24(0xfc),_0x5043f0);}finally{_0x154ab4[_0xd26a24(0x104)]();}};creerTableWarnUsers();async function ajouterUtilisateurAvecWarnCount(_0x42eede){const _0x3f3cad=_0x474463,_0x29045b=await pool['connect']();try{const _0x28a857=_0x3f3cad(0xf7),_0x3bd43d=[_0x42eede];await _0x29045b[_0x3f3cad(0x109)](_0x28a857,_0x3bd43d),console[_0x3f3cad(0xfa)](_0x3f3cad(0xf4)+_0x42eede+_0x3f3cad(0xf8));}catch(_0x402aae){console[_0x3f3cad(0xf2)](_0x3f3cad(0x102),_0x402aae);}finally{_0x29045b['release']();}};async function getWarnCountByJID(_0x399050){const _0x262d06=_0x474463,_0x1c160b=await pool['connect']();try{const _0x5c236f=_0x262d06(0x10c),_0x484266=[_0x399050],_0x3bcd3b=await _0x1c160b[_0x262d06(0x109)](_0x5c236f,_0x484266);if(_0x3bcd3b['rows'][_0x262d06(0x10b)]>0x0){const _0x56fbc9=_0x3bcd3b[_0x262d06(0x10a)][0x0][_0x262d06(0xf3)];return _0x56fbc9;}else return 0x0;}catch(_0x57ae71){return console[_0x262d06(0xf2)]('Erreur\x20lors\x20de\x20la\x20récupération\x20du\x20warn_count\x20:',_0x57ae71),-0x1;}finally{_0x1c160b[_0x262d06(0x104)]();}};async function resetWarnCountByJID(_0x32b46a){const _0x41b5bc=_0x474463,_0x3116a6=await pool[_0x41b5bc(0xf9)]();try{const _0x5a16db='UPDATE\x20warn_users\x20SET\x20warn_count\x20=\x200\x20WHERE\x20jid\x20=\x20$1',_0x3a79ef=[_0x32b46a];await _0x3116a6['query'](_0x5a16db,_0x3a79ef),console[_0x41b5bc(0xfa)](_0x41b5bc(0xfd)+_0x32b46a+_0x41b5bc(0xf6));}catch(_0x2a0923){console[_0x41b5bc(0xf2)]('Erreur\x20lors\x20de\x20la\x20réinitialisation\x20du\x20warn_count\x20:',_0x2a0923);}finally{_0x3116a6[_0x41b5bc(0x104)]();}}function _0x1ada(_0x5de5f9,_0x4e5020){const _0xedeefc=_0xedee();return _0x1ada=function(_0x1adaea,_0x2c91c1){_0x1adaea=_0x1adaea-0xef;let _0x5f259f=_0xedeefc[_0x1adaea];return _0x5f259f;},_0x1ada(_0x5de5f9,_0x4e5020);}module['exports']={'ajouterUtilisateurAvecWarnCount':ajouterUtilisateurAvecWarnCount,'getWarnCountByJID':getWarnCountByJID,'resetWarnCountByJID':resetWarnCountByJID};
--------------------------------------------------------------------------------
/bdd/cron.js:
--------------------------------------------------------------------------------
1 | const _0x7cb33=_0x16ab;(function(_0x3d1824,_0xdbf0a6){const _0x4b91fa=_0x16ab,_0xb98128=_0x3d1824();while(!![]){try{const _0x5a133c=parseInt(_0x4b91fa(0xf3))/0x1*(-parseInt(_0x4b91fa(0xe2))/0x2)+-parseInt(_0x4b91fa(0xf4))/0x3*(parseInt(_0x4b91fa(0xf7))/0x4)+-parseInt(_0x4b91fa(0xec))/0x5+-parseInt(_0x4b91fa(0xed))/0x6*(-parseInt(_0x4b91fa(0xe5))/0x7)+parseInt(_0x4b91fa(0xe8))/0x8*(-parseInt(_0x4b91fa(0xda))/0x9)+parseInt(_0x4b91fa(0xf6))/0xa+parseInt(_0x4b91fa(0xeb))/0xb;if(_0x5a133c===_0xdbf0a6)break;else _0xb98128['push'](_0xb98128['shift']());}catch(_0xbc2b75){_0xb98128['push'](_0xb98128['shift']());}}}(_0x1669,0x8fde1),require(_0x7cb33(0xea))[_0x7cb33(0xf9)]());const {Pool}=require('pg');let s=require(_0x7cb33(0xf0));var dbUrl=s[_0x7cb33(0xef)]?s[_0x7cb33(0xef)]:'postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9';const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);async function createTablecron(){const _0x3d8386=_0x7cb33,_0x2021e1=await pool[_0x3d8386(0xf5)]();try{await _0x2021e1[_0x3d8386(0xe9)]('\x0a\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20cron\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group_id\x20text\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mute_at\x20text\x20default\x20null,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20unmute_at\x20text\x20default\x20null\x0a\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20'),console[_0x3d8386(0xde)](_0x3d8386(0xf8));}catch(_0x82abe7){console[_0x3d8386(0xf2)](_0x3d8386(0xdb),_0x82abe7);}finally{_0x2021e1[_0x3d8386(0xee)]();}};function _0x1669(){const _0x36a02d=['config','117VbOfzl','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27cron\x27:',')\x20\x0a\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2)','Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20données\x20de\x20la\x20table\x20\x22cron\x22:','log','\x0a\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20cron\x20(group_id,\x20','rows','Erreur\x20lors\x20de\x20la\x20suppression\x20de\x20la\x20donnée\x20dans\x20la\x20table\x20\x22cron\x22:','11452wGHlPS','SELECT\x20*\x20FROM\x20cron','Erreur\x20lors\x20de\x20l\x27ajout\x20de\x20la\x20donnée\x20dans\x20la\x20table\x20\x22cron\x22:','7882805VPAvVJ','length','\x0a\x20\x20\x20\x20UPDATE\x20cron\x20SET\x20','106184darMeC','query','dotenv','1546919nIsDnY','1646725DMZgYL','6XGbMig','release','DATABASE_URL','../set','exports','error','81lZKxFz','30993BmsCGe','connect','7944560SuYAIG','196BmOcUZ','La\x20table\x20\x27cron\x27\x20a\x20été\x20créée\x20avec\x20succès.'];_0x1669=function(){return _0x36a02d;};return _0x1669();}createTablecron();async function getCron(){const _0x324011=_0x7cb33,_0x5e5458=await pool[_0x324011(0xf5)]();try{const _0x534f09=await _0x5e5458[_0x324011(0xe9)](_0x324011(0xe3));return _0x534f09[_0x324011(0xe0)];}catch(_0x10eb9b){console['error']('Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20données\x20de\x20la\x20table\x20\x22cron\x22:',_0x10eb9b);}finally{_0x5e5458[_0x324011(0xee)]();}}function _0x16ab(_0x272481,_0x5be136){const _0x1669cc=_0x1669();return _0x16ab=function(_0x16abb2,_0x59309a){_0x16abb2=_0x16abb2-0xda;let _0x2ddf2a=_0x1669cc[_0x16abb2];return _0x2ddf2a;},_0x16ab(_0x272481,_0x5be136);};async function addCron(_0x5a5f80,_0x12661b,_0x58f00b){const _0x4fa2c7=_0x7cb33,_0x48e3cf=await pool[_0x4fa2c7(0xf5)]();try{let _0x29f813=await _0x48e3cf[_0x4fa2c7(0xe9)]('\x0a\x20\x20\x20\x20\x20\x20SELECT\x20*\x20FROM\x20cron\x20WHERE\x20group_id\x20=\x20$1',[_0x5a5f80]),_0x3ade71=_0x29f813[_0x4fa2c7(0xe0)][_0x4fa2c7(0xe6)]>0x0;if(_0x3ade71)await _0x48e3cf[_0x4fa2c7(0xe9)](_0x4fa2c7(0xe7)+_0x12661b+'\x20=\x20$1\x20WHERE\x20group_id\x20=\x20$2\x20',[_0x58f00b,_0x5a5f80]);else{const _0x4f44e4=_0x4fa2c7(0xdf)+_0x12661b+_0x4fa2c7(0xdc);await _0x48e3cf[_0x4fa2c7(0xe9)](_0x4f44e4,[_0x5a5f80,_0x58f00b]);}}catch(_0xd9754a){console['error'](_0x4fa2c7(0xe4),_0xd9754a);}finally{_0x48e3cf[_0x4fa2c7(0xee)]();}}async function getCronById(_0x179437){const _0x35f110=_0x7cb33,_0x2423df=await pool[_0x35f110(0xf5)]();try{const _0x479dd5=await _0x2423df[_0x35f110(0xe9)]('SELECT\x20*\x20FROM\x20cron\x20WHERE\x20group_id\x20=\x20$1',[_0x179437]);return _0x479dd5['rows'][0x0];}catch(_0x30eaaf){console['error'](_0x35f110(0xdd),_0x30eaaf);}finally{_0x2423df[_0x35f110(0xee)]();}}async function delCron(_0xa265b9){const _0x3f8058=_0x7cb33,_0x3c96d6=await pool[_0x3f8058(0xf5)]();try{await _0x3c96d6[_0x3f8058(0xe9)]('DELETE\x20FROM\x20cron\x20WHERE\x20group_id\x20=\x20$1',[_0xa265b9]);}catch(_0x45829e){console[_0x3f8058(0xf2)](_0x3f8058(0xe1),_0x45829e);}finally{_0x3c96d6['release']();}}module[_0x7cb33(0xf1)]={'getCron':getCron,'addCron':addCron,'delCron':delCron,'getCronById':getCronById};
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name":"GOLD-MD BY UMAR",
3 | "description":"Lazmiii•) Ap yeh Box soch samajh kar fill karna Q k ap phir inko WhatsApp per change nahi kar pae ge Ok",
4 | "keywords":["bot","node","baileys","whatsapp"],
5 | "logo":"https://i.postimg.cc/1XQq5DzP/pictures-white949544-GOjsnnsnznznzbzbbzbz7777-GOLDLD-PIC.png",
6 | "repository":"https://github.com/D4X-UMAR/GOLD-MD",
7 | "succes_url":"/",
8 | "stack":"container",
9 | "env":{
10 | "PREFIX":
11 | {
12 | "description":"Apne bot ke prefix ke lie koi bhy symbol daalo jese . , ! ? Sirf ek symbol likho",
13 | "value":".",
14 | "required":true
15 | },
16 | "AUTO_READ_MESSAGES":
17 | {
18 | "description":"Agar ap chahte hai ke apka bot apke contacts ke msgs seen kare to |yes| Likho agar nahi chahte to |no| Likho",
19 | "value":"no",
20 | "required":true
21 | },
22 | "AUTO_READ_STATUS":
23 | {
24 | "description":"Agar ap chahte hai apka bot apke contacts ke statues Auto Seen kare to Likho |yes| Agar chahte ho ke Auto Seen Naa kre to |no| Likho",
25 | "value":"yes",
26 | "required":true
27 | }, "AUTO_DOWNLOAD_STATUS":
28 | {
29 | "description":"Agar ap chahte hai apka bot apke friends ke status Save ker ke apke inbox me send kre to Likho |yes| Agar Chahte ho Ke Send Naa kare to Likho |no|",
30 | "value":"no",
31 | "required":true
32 | }
33 | ,
34 | "PM_PERMIT" :
35 | {
36 | "description":"Agar ap chahte ho ke apke inbox me har koi apka bot use kare to Likho |no| Agar Nahi chahte to Likho |no|",
37 | "value":"no",
38 | "required":true
39 | }
40 | ,
41 | "BOT_NAME" : {
42 |
43 | "description":"Ap apne bot ka name Likho",
44 | "value":"GOLD-MD",
45 | "required":true
46 |
47 | } ,
48 | "BOT_MENU_LINKS" : {
49 |
50 | "description":"Bot ke menu ki pic ka Link Likho",
51 | "value":"https://i.postimg.cc/1XQq5DzP/pictures-white949544-GOjsnnsnznznzbzbbzbz7777-GOLDLD-PIC.png",
52 | "required":false
53 |
54 | },
55 | "PUBLIC_MODE":
56 | {
57 | "description":"Agar ap chahte hai apka bot har koi use kare to likho |yes| agar ap khud use karna chahte hai to Likho |no| Is se koi bhi apka bot use nahi kar pae ga",
58 | "value":"yes",
59 | "required":true
60 | }
61 | ,
62 | "HEROKU_API_KEY": {
63 | "description": "Apke heroku ke accounts ki API KEY Likho",
64 | "required":true
65 | },
66 | "HEROKU_APP_NAME": {
67 | "description": "Jo ap ne oper 1st me name likha hai wo copy ker ke yaha paste karo",
68 | "required" :true
69 | }
70 | ,
71 | "SESSION_ID":
72 | {
73 | "description":"Bot ki session id jo apko whatsapp per mili wo yaha likhe",
74 | "value":"",
75 | "required": true
76 |
77 | },
78 | "OWNER_NAME":
79 | {
80 |
81 | "desc": "Ap apna name likho",
82 | "required": true,
83 | "value": "UMAR"
84 | },
85 | "OWNER_NUMBER":
86 | {
87 |
88 | "desc": "Ap apna number likho |+| nahi lagana ese likho 923xxxxx",
89 | "required":true,
90 | "value": "233201817959"
91 | },
92 | "WARN_COUNT":
93 | {
94 | "desc": "Ap kisi ko kitny warnins dena chahte hai phir jese hy yeh warnings poori hogi wo banda block ho jae ga ya group me hai to remove ho jae ga",
95 | "required": true,
96 | "value": "2"
97 | },
98 | "CHAT_BOT":
99 | {
100 | "desc": "Ap apne msg ko mention ker ke kuch bhi likho ge to reply ae ga uske lie |yes| Likho agar chahte hai ke reply Naa ae to |no| Likho",
101 | "required": true,
102 | "value": "no"
103 | },
104 | "STARTING_BOT_MESSAGE":
105 | {
106 | "description": "Is box me |no| Likho ya |yes| apki merzi is ka koi faida nahi hai koi error nahi ae ga bot me",
107 | "required": true,
108 | "value": "no"
109 | },
110 | "PRESENCE":{
111 | "description":"Yaha per |online| Likho always Online Show hone ke lie or |typing| likho ge to koi msg kre ga apko oper show hoga is typing... or chahte ho ke is recordin... show ho to uske lie |recording| Likho or agar chahte hai esa kuch bhi na ho to box khali chor do",
112 | "value":"",
113 | "required": false
114 | }
115 | },
116 |
117 |
118 | "buildpacks": [
119 | {
120 | "url": "heroku/nodejs"
121 | },
122 |
123 | {
124 | "url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest"
125 | },
126 | {
127 | "url": "https://github.com/clhuang/heroku-buildpack-webp-binaries.git"
128 | }
129 | ],
130 |
131 | "formation": {
132 | "worker": {
133 | "quantity": 1,
134 | "size": "basic"
135 | }
136 | },
137 |
138 | "addons":[
139 | {
140 | "plan":"heroku-postgresql"
141 | }
142 | ]
143 | }
144 |
--------------------------------------------------------------------------------
/bdd/stickcmd.js:
--------------------------------------------------------------------------------
1 | const _0x5988bd=_0x4d8f;(function(_0x1be5b6,_0x1851d){const _0x367375=_0x4d8f,_0x19be6f=_0x1be5b6();while(!![]){try{const _0x9cc4b=-parseInt(_0x367375(0x18d))/0x1*(-parseInt(_0x367375(0x184))/0x2)+parseInt(_0x367375(0x18a))/0x3*(parseInt(_0x367375(0x17e))/0x4)+parseInt(_0x367375(0x188))/0x5*(parseInt(_0x367375(0x17d))/0x6)+-parseInt(_0x367375(0x179))/0x7*(-parseInt(_0x367375(0x192))/0x8)+-parseInt(_0x367375(0x191))/0x9*(parseInt(_0x367375(0x187))/0xa)+-parseInt(_0x367375(0x189))/0xb*(-parseInt(_0x367375(0x199))/0xc)+-parseInt(_0x367375(0x186))/0xd*(parseInt(_0x367375(0x180))/0xe);if(_0x9cc4b===_0x1851d)break;else _0x19be6f['push'](_0x19be6f['shift']());}catch(_0x323e2a){_0x19be6f['push'](_0x19be6f['shift']());}}}(_0x5b24,0xe7440),require('dotenv')[_0x5988bd(0x18f)]());const {Pool}=require('pg'),s=require('../set');var dbUrl=s[_0x5988bd(0x181)]?s[_0x5988bd(0x181)]:_0x5988bd(0x197);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);function _0x5b24(){const _0xe5c73f=['log','6921657zFjfhr','16904MuVaSS','Le\x20stickcmd\x20','Erreur\x20lors\x20de\x20l\x27ajout\x20du\x20stickcmd','rows','La\x20table\x20\x27stickcmd\x27\x20a\x20été\x20créée\x20avec\x20succès.','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','Erreur\x20lors\x20de\x20la\x20récupération\x20de\x20toutes\x20les\x20commandes\x20stickcmd\x20:','21247404evQAWI','connect','SELECT\x20cmd\x20FROM\x20stickcmd','Erreur\x20lors\x20de\x20la\x20suppression\x20du\x20stickcmd\x20:','5537dNoqbc','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27stickcmd\x27:','exists','INSERT\x20INTO\x20stickcmd(cmd,\x20id)\x20VALUES\x20($1,\x20$2)','60eCHjSG','4dgGIjx','length','59985884wHjtCq','DATABASE_URL','error','query','2425788wSGWut','\x20a\x20été\x20supprimé\x20de\x20la\x20liste.','13QrbUWb','10RyKFJs','203920RqgsDF','11CgoOJg','2814927QPcczQ','release','SELECT\x20cmd\x20FROM\x20stickcmd\x20WHERE\x20id\x20=\x20$1','1FdHBtf','SELECT\x20\x20EXISTS\x20(SELECT\x201\x20FROM\x20stickcmd\x20WHERE\x20id\x20=\x20$1)','config'];_0x5b24=function(){return _0xe5c73f;};return _0x5b24();}async function creerTableStickcmd(){const _0x3b5b61=_0x5988bd;try{await pool[_0x3b5b61(0x183)]('\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20stickcmd\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20cmd\x20text\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x20text\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20'),console['log'](_0x3b5b61(0x196));}catch(_0xcee2ed){console['error'](_0x3b5b61(0x17a),_0xcee2ed);}}creerTableStickcmd();async function addstickcmd(_0x791ef5,_0x16ab3a){const _0x4b2ce8=_0x5988bd;let _0x1b4361;try{_0x1b4361=await pool[_0x4b2ce8(0x19a)]();const _0xce69cf=_0x4b2ce8(0x17c),_0x2480ac=[_0x791ef5,_0x16ab3a];await _0x1b4361[_0x4b2ce8(0x183)](_0xce69cf,_0x2480ac);}catch(_0x2da205){console[_0x4b2ce8(0x190)](_0x4b2ce8(0x194),_0x2da205);}finally{_0x1b4361&&_0x1b4361['release']();}}async function inStickCmd(_0x27dffe){const _0x18aa65=_0x5988bd;let _0x397af4;try{_0x397af4=await pool[_0x18aa65(0x19a)]();const _0x489212=_0x18aa65(0x18e),_0x1e7f57=[_0x27dffe],_0x2f1782=await _0x397af4[_0x18aa65(0x183)](_0x489212,_0x1e7f57);return _0x2f1782['rows'][0x0][_0x18aa65(0x17b)];}catch(_0x59e0c0){return![];}finally{_0x397af4&&_0x397af4[_0x18aa65(0x18b)]();}}async function deleteCmd(_0x145662){const _0x1579b8=_0x5988bd,_0x37d0a0=await pool[_0x1579b8(0x19a)]();try{const _0x13313f='DELETE\x20FROM\x20stickcmd\x20WHERE\x20cmd\x20=\x20$1',_0x2366f6=[_0x145662];await _0x37d0a0[_0x1579b8(0x183)](_0x13313f,_0x2366f6),console[_0x1579b8(0x190)](_0x1579b8(0x193)+_0x145662+_0x1579b8(0x185));}catch(_0x59aa67){console[_0x1579b8(0x182)](_0x1579b8(0x178),_0x59aa67);}finally{_0x37d0a0[_0x1579b8(0x18b)]();}};async function getCmdById(_0xba0f01){const _0x10e117=_0x5988bd;let _0x2adcad;try{_0x2adcad=await pool['connect']();const _0x44451e=_0x10e117(0x18c),_0xeaeb6b=[_0xba0f01],_0x2f0655=await _0x2adcad[_0x10e117(0x183)](_0x44451e,_0xeaeb6b);return _0x2f0655[_0x10e117(0x195)][_0x10e117(0x17f)]>0x0?_0x2f0655[_0x10e117(0x195)][0x0]['cmd']:null;}catch(_0x1a0652){return console[_0x10e117(0x182)]('Erreur\x20lors\x20de\x20la\x20récupération\x20du\x20stickcmd\x20par\x20id\x20:',_0x1a0652),null;}finally{_0x2adcad&&_0x2adcad[_0x10e117(0x18b)]();}};function _0x4d8f(_0x5012cb,_0x1bc5b2){const _0x5b247b=_0x5b24();return _0x4d8f=function(_0x4d8fe3,_0x5ab37d){_0x4d8fe3=_0x4d8fe3-0x177;let _0x449324=_0x5b247b[_0x4d8fe3];return _0x449324;},_0x4d8f(_0x5012cb,_0x1bc5b2);}async function getAllStickCmds(){const _0x209430=_0x5988bd,_0x219be8=await pool['connect']();try{const _0x36c435=_0x209430(0x177),_0x2b7380=await _0x219be8[_0x209430(0x183)](_0x36c435);return _0x2b7380[_0x209430(0x195)];}catch(_0xe4c6d0){return console[_0x209430(0x182)](_0x209430(0x198),_0xe4c6d0),[];}finally{_0x219be8[_0x209430(0x18b)]();}};module['exports']={'addstickcmd':addstickcmd,'deleteCmd':deleteCmd,'getCmdById':getCmdById,'inStickCmd':inStickCmd,'getAllStickCmds':getAllStickCmds};
--------------------------------------------------------------------------------
/commands/YouTube.js:
--------------------------------------------------------------------------------
1 | const { france } = require("../framework/france");
2 | const yts = require('yt-search');
3 | const ytdl = require('ytdl-core');
4 | const fs = require('fs');
5 | const yt=require("../framework/dl/ytdl-core.js")
6 | const ffmpeg = require("fluent-ffmpeg");
7 | const yts1 = require("youtube-yts");
8 | //var fs =require("fs-extra")
9 |
10 | france({
11 | nomCom: "play",
12 | categorie: "Search",
13 | reaction: "🔰"
14 | }, async (origineMessage, zk, commandeOptions) => {
15 | const { ms, repondre, arg } = commandeOptions;
16 |
17 | if (!arg[0]) {
18 | repondre("Ese likho \n\n .play wo mera nabi mera nabi naat");
19 | return;
20 | }
21 |
22 | try {
23 | let topo = arg.join(" ")
24 | const search = await yts(topo);
25 | const videos = search.videos;
26 |
27 | if (videos && videos.length > 0 && videos[0]) {
28 | const urlElement = videos[0].url;
29 |
30 | let infoMess = {
31 | image: {url : videos[0]. thumbnail},
32 | caption : `*🔰GOLD-MD AUDIO🔰*\n\n*🔰NAME:* ${videos[0].title}
33 |
34 | *🔰TIME:* ${videos[0].timestamp}
35 | *🔰LINKl:* ${videos[0].url}
36 |
37 |
38 |
39 | *_AUDIO DOWNLOADING...._*`
40 | }
41 |
42 |
43 |
44 |
45 |
46 |
47 | zk.sendMessage(origineMessage,infoMess,{quoted:ms}) ;
48 | // Obtenir le flux audio de la vidéo
49 | const audioStream = ytdl(urlElement, { filter: 'audioonly', quality: 'highestaudio' });
50 |
51 | // Nom du fichier local pour sauvegarder le fichier audio
52 | const filename = 'audio.mp3';
53 |
54 | // Écrire le flux audio dans un fichier local
55 | const fileStream = fs.createWriteStream(filename);
56 | audioStream.pipe(fileStream);
57 |
58 | fileStream.on('finish', () => {
59 | // Envoi du fichier audio en utilisant l'URL du fichier local
60 |
61 |
62 | zk.sendMessage(origineMessage, { audio: { url:"audio.mp3"},mimetype:'audio/mp4' }, { quoted: ms,ptt: false });
63 | console.log("Envoi du fichier audio terminé !");
64 |
65 |
66 | });
67 |
68 | fileStream.on('error', (error) => {
69 | console.error('Erreur lors de l\'écriture du fichier audio :', error);
70 | repondre('Une erreur est survenue lors de l\'écriture du fichier audio.');
71 | });
72 | } else {
73 | repondre('Aucune vidéo trouvée.');
74 | }
75 | } catch (error) {
76 | console.error('Erreur lors de la recherche ou du téléchargement de la vidéo :', error);
77 |
78 | repondre('Une erreur est survenue lors de la recherche ou du téléchargement de la vidéo.');
79 | }
80 | });
81 |
82 |
83 |
84 | france({
85 | nomCom: "video",
86 | categorie: "Search",
87 | reaction: "🔰"
88 | }, async (origineMessage, zk, commandeOptions) => {
89 | const { arg, ms, repondre } = commandeOptions;
90 |
91 | if (!arg[0]) {
92 | repondre("Ese likho \n\n .video wo mera nabi hai naat");
93 | return;
94 | }
95 |
96 | const topo = arg.join(" ");
97 | try {
98 | const search = await yts(topo);
99 | const videos = search.videos;
100 |
101 | if (videos && videos.length > 0 && videos[0]) {
102 | const Element = videos[0];
103 |
104 | let InfoMess = {
105 | image: { url: videos[0].thumbnail },
106 | caption: `*🔰GOLD-MD VIDEO🔰*\n\n*🔰NAME:* ${Element.title}
107 | *🔰TIME :* ${Element.timestamp}
108 | *LINK:* ${Element.url}
109 |
110 |
111 |
112 | *VIDEO DOWNLOADING....*\n\n`
113 | };
114 |
115 | zk.sendMessage(origineMessage, InfoMess, { quoted: ms });
116 |
117 | // Obtenir les informations de la vidéo à partir du lien YouTube
118 | const videoInfo = await ytdl.getInfo(Element.url);
119 | // Format vidéo avec la meilleure qualité disponible
120 | const format = ytdl.chooseFormat(videoInfo.formats, { quality: '18' });
121 | // Télécharger la vidéo
122 | const videoStream = ytdl.downloadFromInfo(videoInfo, { format });
123 |
124 | // Nom du fichier local pour sauvegarder la vidéo
125 | const filename = 'video.mp4';
126 |
127 | // Écrire le flux vidéo dans un fichier local
128 | const fileStream = fs.createWriteStream(filename);
129 | videoStream.pipe(fileStream);
130 |
131 | fileStream.on('finish', () => {
132 | // Envoi du fichier vidéo en utilisant l'URL du fichier local
133 | zk.sendMessage(origineMessage, { video: { url :"./video.mp4"} , caption: "*🔰 BY || GOLD || MD 🔰*", gifPlayback: false }, { quoted: ms });
134 | });
135 |
136 | fileStream.on('error', (error) => {
137 | console.error('Erreur lors de l\'écriture du fichier vidéo :', error);
138 | repondre('Une erreur est survenue lors de l\'écriture du fichier vidéo.');
139 | });
140 | } else {
141 | repondre('No video found');
142 | }
143 | } catch (error) {
144 | console.error('Erreur lors de la recherche ou du téléchargement de la vidéo :', error);
145 | repondre('Une erreur est survenue lors de la recherche ou du téléchargement de la vidéo.');
146 | }
147 | });
148 |
--------------------------------------------------------------------------------
/bdd/sudo.js:
--------------------------------------------------------------------------------
1 | const _0x2bae69=_0x2609;(function(_0x2ff54e,_0x4604d8){const _0x4e3bb3=_0x2609,_0x3c60c2=_0x2ff54e();while(!![]){try{const _0x4d3082=-parseInt(_0x4e3bb3(0x19e))/0x1*(-parseInt(_0x4e3bb3(0x19f))/0x2)+parseInt(_0x4e3bb3(0x191))/0x3+parseInt(_0x4e3bb3(0x181))/0x4+parseInt(_0x4e3bb3(0x1a4))/0x5+-parseInt(_0x4e3bb3(0x190))/0x6*(-parseInt(_0x4e3bb3(0x189))/0x7)+parseInt(_0x4e3bb3(0x199))/0x8*(parseInt(_0x4e3bb3(0x17f))/0x9)+-parseInt(_0x4e3bb3(0x1a2))/0xa;if(_0x4d3082===_0x4604d8)break;else _0x3c60c2['push'](_0x3c60c2['shift']());}catch(_0x2a6774){_0x3c60c2['push'](_0x3c60c2['shift']());}}}(_0x2189,0xcf28d),require(_0x2bae69(0x196))[_0x2bae69(0x1a0)]());const {Pool}=require('pg'),s=require(_0x2bae69(0x198));function _0x2189(){const _0x2533ee=['DELETE\x20FROM\x20sudo\x20WHERE\x20jid\x20=\x20$1','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','DATABASE_URL','21jzuqyf','exports','connect','Numéro\x20de\x20téléphone\x20','SELECT\x20COUNT(*)\x20FROM\x20sudo','log','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27sudo\x27:','759216UlCguf','2846955zTsIiI','Erreur\x20lors\x20de\x20la\x20suppression\x20du\x20numéro\x20de\x20téléphone\x20autorisé\x20:','Erreur\x20lors\x20de\x20la\x20vérification\x20de\x20la\x20table\x20\x22sudo\x22\x20:','error','rows','dotenv','\x20supprimé\x20de\x20la\x20liste\x20des\x20numéros\x20de\x20téléphone\x20autorisés.','../set','16GgnNEV','INSERT\x20INTO\x20sudo\x20(jid)\x20VALUES\x20($1)','Erreur\x20lors\x20de\x20l\x27ajout\x20du\x20numéro\x20de\x20téléphone\x20autorisé\x20:','SELECT\x20EXISTS\x20(SELECT\x201\x20FROM\x20sudo\x20WHERE\x20jid\x20=\x20$1)','release','19PbemsP','118726MAPAwr','config','jid','45855300Pokylx','exists','4109850nLdnZA','Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20numéros\x20de\x20téléphone\x20autorisés\x20:','3623364FzgerF','La\x20table\x20\x27sudo\x27\x20a\x20été\x20créée\x20avec\x20succès.','5401612OZCfdY','count','query','\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20sudo\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x20serial\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20jid\x20text\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20','\x20ajouté\x20à\x20la\x20liste\x20des\x20numéros\x20de\x20téléphone\x20autorisés.'];_0x2189=function(){return _0x2533ee;};return _0x2189();}var dbUrl=s[_0x2bae69(0x188)]?s[_0x2bae69(0x188)]:_0x2bae69(0x187);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);function _0x2609(_0x46237f,_0x5123d8){const _0x21899c=_0x2189();return _0x2609=function(_0x260984,_0x26665c){_0x260984=_0x260984-0x17e;let _0x391a95=_0x21899c[_0x260984];return _0x391a95;},_0x2609(_0x46237f,_0x5123d8);}async function createSudoTable(){const _0x3906af=_0x2bae69,_0x26b3f9=await pool[_0x3906af(0x18b)]();try{await _0x26b3f9[_0x3906af(0x183)](_0x3906af(0x184)),console['log'](_0x3906af(0x180));}catch(_0xdf58ca){console[_0x3906af(0x194)](_0x3906af(0x18f),_0xdf58ca);}finally{_0x26b3f9[_0x3906af(0x19d)]();}}createSudoTable();async function issudo(_0x47dc26){const _0x4f5778=_0x2bae69,_0x188036=await pool[_0x4f5778(0x18b)]();try{const _0x293e2e=_0x4f5778(0x19c),_0x418680=[_0x47dc26],_0x366877=await _0x188036[_0x4f5778(0x183)](_0x293e2e,_0x418680);return _0x366877[_0x4f5778(0x195)][0x0][_0x4f5778(0x1a3)];}catch(_0x4934c1){return console[_0x4f5778(0x194)]('Erreur\x20lors\x20de\x20la\x20vérification\x20du\x20groupe\x20banni\x20:',_0x4934c1),![];}finally{_0x188036[_0x4f5778(0x19d)]();}}async function removeSudoNumber(_0x2210e3){const _0x5b4f20=_0x2bae69,_0x5f4a11=await pool[_0x5b4f20(0x18b)]();try{const _0x34451a=_0x5b4f20(0x186),_0x3783da=[_0x2210e3];await _0x5f4a11[_0x5b4f20(0x183)](_0x34451a,_0x3783da),console['log']('Numéro\x20de\x20téléphone\x20'+_0x2210e3+_0x5b4f20(0x197));}catch(_0x15e036){console[_0x5b4f20(0x194)](_0x5b4f20(0x192),_0x15e036);}finally{_0x5f4a11['release']();}}async function addSudoNumber(_0x24b3e7){const _0x19e2d8=_0x2bae69,_0x12c03e=await pool[_0x19e2d8(0x18b)]();try{const _0x55de27=_0x19e2d8(0x19a),_0x35f71f=[_0x24b3e7];await _0x12c03e['query'](_0x55de27,_0x35f71f),console[_0x19e2d8(0x18e)](_0x19e2d8(0x18c)+_0x24b3e7+_0x19e2d8(0x185));}catch(_0x47024b){console[_0x19e2d8(0x194)](_0x19e2d8(0x19b),_0x47024b);}finally{_0x12c03e[_0x19e2d8(0x19d)]();}}async function getAllSudoNumbers(){const _0x276c9a=_0x2bae69,_0x4bd27b=await pool[_0x276c9a(0x18b)]();try{const _0x568040='SELECT\x20jid\x20FROM\x20sudo',_0x577848=await _0x4bd27b[_0x276c9a(0x183)](_0x568040),_0x127ad9=_0x577848[_0x276c9a(0x195)]['map'](_0x4e870d=>_0x4e870d[_0x276c9a(0x1a1)]);return _0x127ad9;}catch(_0x4fb070){return console[_0x276c9a(0x194)](_0x276c9a(0x17e),_0x4fb070),[];}finally{_0x4bd27b[_0x276c9a(0x19d)]();}}async function isSudoTableNotEmpty(){const _0x4daa30=_0x2bae69,_0xdf1c51=await pool[_0x4daa30(0x18b)]();try{const _0x18fa68=await _0xdf1c51[_0x4daa30(0x183)](_0x4daa30(0x18d)),_0x242dd7=parseInt(_0x18fa68[_0x4daa30(0x195)][0x0][_0x4daa30(0x182)]);return _0x242dd7>0x0;}catch(_0xdb870e){return console[_0x4daa30(0x194)](_0x4daa30(0x193),_0xdb870e),![];}finally{_0xdf1c51[_0x4daa30(0x19d)]();}};module[_0x2bae69(0x18a)]={'issudo':issudo,'addSudoNumber':addSudoNumber,'removeSudoNumber':removeSudoNumber,'getAllSudoNumbers':getAllSudoNumbers,'isSudoTableNotEmpty':isSudoTableNotEmpty};
--------------------------------------------------------------------------------
/bdd/theme.js:
--------------------------------------------------------------------------------
1 | const _0x5684ce=_0x4247;(function(_0x318d73,_0x80a0af){const _0xac0ff7=_0x4247,_0x28b286=_0x318d73();while(!![]){try{const _0x4aedaa=parseInt(_0xac0ff7(0x126))/0x1*(-parseInt(_0xac0ff7(0x119))/0x2)+-parseInt(_0xac0ff7(0x12d))/0x3+-parseInt(_0xac0ff7(0x12e))/0x4+-parseInt(_0xac0ff7(0x115))/0x5*(parseInt(_0xac0ff7(0x118))/0x6)+-parseInt(_0xac0ff7(0x117))/0x7+-parseInt(_0xac0ff7(0x11e))/0x8*(-parseInt(_0xac0ff7(0x112))/0x9)+parseInt(_0xac0ff7(0x124))/0xa;if(_0x4aedaa===_0x80a0af)break;else _0x28b286['push'](_0x28b286['shift']());}catch(_0x2bb194){_0x28b286['push'](_0x28b286['shift']());}}}(_0x43d2,0x6d246),require('dotenv')[_0x5684ce(0x128)]());const {Pool}=require('pg'),s=require('../set');var dbUrl=s[_0x5684ce(0x129)]?s[_0x5684ce(0x129)]:_0x5684ce(0x121);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}};var proConfig2={'connectionString':_0x5684ce(0x12a),'ssl':{'rejectUnauthorized':![]}};function _0x43d2(){const _0x503741=['Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20informations\x20des\x20thèmes\x20:','rows','3033Xxfhim','log','choix','30aAuhGB','SELECT\x20id,\x20nom,\x20auteur\x20FROM\x20themes\x20ORDER\x20BY\x20id\x20ASC','2240546AGhIRi','635382RFWUqf','2208bcVvme','error','La\x20valeur\x20de\x20\x22choix\x22\x20dans\x20la\x20table\x20\x22theme\x22\x20a\x20été\x20mise\x20à\x20jour\x20avec\x20succès.','connect','Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20informations\x20du\x20thème\x20par\x20ID\x20:','8248YOzpWd','release','\x0a\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20theme\x20(id,\x20choix)\x20VALUES\x20(1,\x20\x271\x27);\x0a\x20\x20\x20\x20','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','SELECT\x20auteur,\x20liens,\x20nom\x20FROM\x20themes\x20WHERE\x20id\x20=\x20$1','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27theme\x27:','26965830MVNaCi','La\x20table\x20\x22theme\x22\x20a\x20été\x20créée\x20avec\x20succès.','259qdsKSo','query','config','DATABASE_URL','postgres://postgres:BDd2eGfbdbeEf23a2A22ddc*3Bf5FcBg@roundhouse.proxy.rlwy.net:24513/railway','Erreur\x20lors\x20de\x20la\x20récupération\x20du\x20choix\x20de\x20thème\x20:','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20mise\x20à\x20jour\x20de\x20la\x20valeur\x20de\x20\x27choix\x27:','2464698fiCxDM','2136088Wesiqy','\x0a\x20\x20\x20\x20\x20\x20UPDATE\x20theme\x20\x0a\x20\x20\x20\x20\x20\x20SET\x20choix\x20=\x20$1\x0a\x20\x20\x20\x20\x20\x20WHERE\x20id\x20=\x201;\x20\x20--\x20Cible\x20l\x27entrée\x20ayant\x20l\x27id\x20égal\x20à\x201\x0a\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20theme\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x20SERIAL\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20choix\x20TEXT\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20','length'];_0x43d2=function(){return _0x503741;};return _0x43d2();}const pool=new Pool(proConfig),pool2=new Pool(proConfig2);async function createThemeTable(){const _0x52aedb=_0x5684ce,_0x5a63a9=await pool[_0x52aedb(0x11c)]();try{await _0x5a63a9[_0x52aedb(0x127)](_0x52aedb(0x130)),await _0x5a63a9[_0x52aedb(0x127)](_0x52aedb(0x120)),console[_0x52aedb(0x113)](_0x52aedb(0x125));}catch(_0x4058ea){console[_0x52aedb(0x11a)](_0x52aedb(0x123),_0x4058ea);}finally{_0x5a63a9['release']();}}createThemeTable();async function updateThemeValue(_0x4baa99){const _0x10c0b8=_0x5684ce,_0x5e500b=await pool['connect']();try{await _0x5e500b[_0x10c0b8(0x127)](_0x10c0b8(0x12f),[_0x4baa99]),console[_0x10c0b8(0x113)](_0x10c0b8(0x11b));}catch(_0x3f2546){console[_0x10c0b8(0x11a)](_0x10c0b8(0x12c),_0x3f2546);}finally{_0x5e500b[_0x10c0b8(0x11f)]();}}function _0x4247(_0x11988c,_0x68778a){const _0x43d2e7=_0x43d2();return _0x4247=function(_0x424732,_0x2b0f7e){_0x424732=_0x424732-0x10f;let _0x441f04=_0x43d2e7[_0x424732];return _0x441f04;},_0x4247(_0x11988c,_0x68778a);};async function getThemeChoice(){const _0x19fc10=_0x5684ce,_0x5e0f7f=await pool[_0x19fc10(0x11c)]();try{const _0x22de98=await _0x5e0f7f[_0x19fc10(0x127)]('SELECT\x20choix\x20FROM\x20theme\x20WHERE\x20id\x20=\x201');return _0x22de98[_0x19fc10(0x111)][_0x19fc10(0x10f)]>0x0?_0x22de98[_0x19fc10(0x111)][0x0][_0x19fc10(0x114)]:null;}catch(_0x2036c){return console[_0x19fc10(0x11a)](_0x19fc10(0x12b),_0x2036c),null;}finally{_0x5e0f7f[_0x19fc10(0x11f)]();}};async function getThemeInfoById(_0x483e5f){const _0x1f1978=_0x5684ce;try{const _0x5e5cf6=await pool2[_0x1f1978(0x11c)]();}catch(_0x57fb99){console[_0x1f1978(0x113)]('👿👿\x20'+_0x57fb99);}try{const _0x906fdc=_0x1f1978(0x122),_0x212b46=await client[_0x1f1978(0x127)](_0x906fdc,[_0x483e5f]);if(_0x212b46[_0x1f1978(0x111)]['length']>0x0){const {auteur:_0x5cb22b,liens:_0x201d25,nom:_0x471794}=_0x212b46['rows'][0x0];return{'auteur':_0x5cb22b,'liens':_0x201d25,'nom':_0x471794};}else return null;}catch(_0x528028){return console[_0x1f1978(0x11a)](_0x1f1978(0x11d),_0x528028),null;}finally{client[_0x1f1978(0x11f)]();}};async function getAllThemesInfo(){const _0x42b469=_0x5684ce;try{const _0x26c88a=await pool2[_0x42b469(0x11c)](),_0x5dc1da=_0x42b469(0x116),_0x3bfef0=await _0x26c88a[_0x42b469(0x127)](_0x5dc1da);return _0x26c88a[_0x42b469(0x11f)](),_0x3bfef0[_0x42b469(0x111)];}catch(_0x4fec67){return console[_0x42b469(0x11a)](_0x42b469(0x110),_0x4fec67),[];}};module['exports']={'getThemeChoice':getThemeChoice,'getThemeInfoById':getThemeInfoById,'updateThemeValue':updateThemeValue,'getAllThemesInfo':getAllThemesInfo};
--------------------------------------------------------------------------------
/bdd/mention.js:
--------------------------------------------------------------------------------
1 | const _0x993125=_0x47a3;(function(_0x4d5c86,_0x322cb6){const _0x57dce4=_0x47a3,_0xb0ee1=_0x4d5c86();while(!![]){try{const _0x5b2b2d=parseInt(_0x57dce4(0x1ca))/0x1+-parseInt(_0x57dce4(0x1da))/0x2*(-parseInt(_0x57dce4(0x1df))/0x3)+-parseInt(_0x57dce4(0x1dc))/0x4*(-parseInt(_0x57dce4(0x1ce))/0x5)+parseInt(_0x57dce4(0x1d4))/0x6*(-parseInt(_0x57dce4(0x1cd))/0x7)+-parseInt(_0x57dce4(0x1d5))/0x8*(-parseInt(_0x57dce4(0x1e1))/0x9)+-parseInt(_0x57dce4(0x1c8))/0xa+-parseInt(_0x57dce4(0x1d0))/0xb*(parseInt(_0x57dce4(0x1c7))/0xc);if(_0x5b2b2d===_0x322cb6)break;else _0xb0ee1['push'](_0xb0ee1['shift']());}catch(_0xdf1342){_0xb0ee1['push'](_0xb0ee1['shift']());}}}(_0x2984,0xe50eb),require(_0x993125(0x1cf))[_0x993125(0x1c5)]());function _0x47a3(_0x4be9b0,_0x1ee0c9){const _0x298434=_0x2984();return _0x47a3=function(_0x47a358,_0x269424){_0x47a358=_0x47a358-0x1c5;let _0x6ef98b=_0x298434[_0x47a358];return _0x6ef98b;},_0x47a3(_0x4be9b0,_0x1ee0c9);}const {Pool}=require('pg'),s=require('../set');var dbUrl=s[_0x993125(0x1d7)]?s[_0x993125(0x1d7)]:_0x993125(0x1de);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);async function creerTableMention(){const _0x21095d=_0x993125,_0x2e0551=await pool[_0x21095d(0x1d9)]();try{await _0x2e0551[_0x21095d(0x1e0)](_0x21095d(0x1d3)),console[_0x21095d(0x1c6)]('La\x20table\x20\x27mention\x27\x20a\x20été\x20créée\x20avec\x20succès.');}catch(_0x41e852){console[_0x21095d(0x1d1)](_0x21095d(0x1cc),_0x41e852);}finally{_0x2e0551['release']();}};function _0x2984(){const _0xc82e3a=['config','log','60RBDRsA','7643100bZBryy','Voici\x20toutes\x20les\x20valeurs\x20de\x20la\x20table\x20\x27mention\x27:','1278976iPDqoL','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20*\x20FROM\x20mention;\x0a\x20\x20\x20\x20\x20\x20\x20\x20','Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27mention\x27:','1529129TRRzQj','4983330poybjb','dotenv','1734557jhAIAt','error','release','\x0a\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20mention\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20serial\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20status\x20text\x20DEFAULT\x20\x27non\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20text,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20type\x20text,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20message\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20','6imWnCC','80DsLjzL','Erreur\x20lors\x20de\x20l\x27ajout\x20ou\x20de\x20la\x20mise\x20à\x20jour\x20des\x20données\x20dans\x20la\x20table\x20\x27mention\x27:','DATABASE_URL','rows','connect','2iiKNLp','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20mention\x20(id,\x20url,\x20type,\x20message)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20(1,\x20$1,\x20$2,\x20$3)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DO\x20UPDATE\x20SET\x20\x20url\x20=\x20excluded.url,\x20type\x20=\x20excluded.type\x20,\x20message\x20=\x20excluded.message;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4VHfojU','exports','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','36867tRoLWP','query','379332aPOUEC','Erreur\x20lors\x20de\x20la\x20récupération\x20des\x20valeurs\x20de\x20la\x20table\x20\x27mention\x27:'];_0x2984=function(){return _0xc82e3a;};return _0x2984();}creerTableMention();async function addOrUpdateDataInMention(_0x21f5f3,_0x3248aa,_0x173a1c){const _0x1e4eb3=_0x993125,_0x2815c3=await pool[_0x1e4eb3(0x1d9)]();try{const _0x1caa44=_0x1e4eb3(0x1db),_0x213235=[_0x21f5f3,_0x3248aa,_0x173a1c];await _0x2815c3[_0x1e4eb3(0x1e0)](_0x1caa44,_0x213235),console[_0x1e4eb3(0x1c6)]('Données\x20ajoutées\x20ou\x20mises\x20à\x20jour\x20dans\x20la\x20table\x20\x27mention\x27\x20avec\x20succès.');}catch(_0x474a57){console['error'](_0x1e4eb3(0x1d6),_0x474a57);}finally{_0x2815c3[_0x1e4eb3(0x1d2)]();}};async function modifierStatusId1(_0x423842){const _0xaae96f=_0x993125,_0x3d015e=await pool[_0xaae96f(0x1d9)]();try{const _0x5a1f06='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UPDATE\x20mention\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20status\x20=\x20$1\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20id\x20=\x201;\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x242b39=[_0x423842];await _0x3d015e[_0xaae96f(0x1e0)](_0x5a1f06,_0x242b39),console[_0xaae96f(0x1c6)]('Le\x20status\x20a\x20été\x20modifié\x20avec\x20succès\x20pour\x20l\x27ID\x201\x20dans\x20la\x20table\x20\x27mention\x27.');}catch(_0x538c7b){console[_0xaae96f(0x1d1)]('Erreur\x20lors\x20de\x20la\x20modification\x20du\x20status\x20pour\x20l\x27ID\x201\x20dans\x20la\x20table\x20\x27mention\x27:',_0x538c7b);}finally{_0x3d015e[_0xaae96f(0x1d2)]();}};async function recupererToutesLesValeurs(){const _0x1a0827=_0x993125,_0x2bfe2d=await pool['connect']();try{const _0x120717=_0x1a0827(0x1cb),_0x576257=await _0x2bfe2d['query'](_0x120717);return console[_0x1a0827(0x1c6)](_0x1a0827(0x1c9),_0x576257[_0x1a0827(0x1d8)]),_0x576257[_0x1a0827(0x1d8)];}catch(_0x15018a){console[_0x1a0827(0x1d1)](_0x1a0827(0x1e2),_0x15018a);}finally{_0x2bfe2d[_0x1a0827(0x1d2)]();}};module[_0x993125(0x1dd)]={'addOrUpdateDataInMention':addOrUpdateDataInMention,'recupererToutesLesValeurs':recupererToutesLesValeurs,'modifierStatusId1':modifierStatusId1};
--------------------------------------------------------------------------------
/bdd/antibot.js:
--------------------------------------------------------------------------------
1 | const _0x7addc3=_0xf060;(function(_0x55e5c3,_0x3b4214){const _0x44de5d=_0xf060,_0x9a8fcc=_0x55e5c3();while(!![]){try{const _0x27ffb4=parseInt(_0x44de5d(0xc5))/0x1+-parseInt(_0x44de5d(0xbd))/0x2+parseInt(_0x44de5d(0xc7))/0x3+parseInt(_0x44de5d(0xb3))/0x4+-parseInt(_0x44de5d(0xaa))/0x5*(-parseInt(_0x44de5d(0xa4))/0x6)+-parseInt(_0x44de5d(0xad))/0x7*(parseInt(_0x44de5d(0xbe))/0x8)+-parseInt(_0x44de5d(0xb8))/0x9*(parseInt(_0x44de5d(0xa6))/0xa);if(_0x27ffb4===_0x3b4214)break;else _0x9a8fcc['push'](_0x9a8fcc['shift']());}catch(_0x232b41){_0x9a8fcc['push'](_0x9a8fcc['shift']());}}}(_0x2916,0x3b62c),require('dotenv')[_0x7addc3(0xc1)]());const {Pool}=require('pg');let s=require(_0x7addc3(0xac));var dbUrl=s['DATABASE_URL']?s[_0x7addc3(0xb4)]:_0x7addc3(0xaf);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);async function createAntibotTable(){const _0x1acdda=_0x7addc3,_0x1e40ac=await pool[_0x1acdda(0xc2)]();try{await _0x1e40ac[_0x1acdda(0xa8)]('\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20antibot\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20jid\x20text\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20etat\x20text,\x0a\x20\x20\x20\x20\x20\x20\x20\x20action\x20text\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20'),console[_0x1acdda(0xa9)](_0x1acdda(0xa7));}catch(_0x2d58fa){console[_0x1acdda(0xbb)]('Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27antibot\x27:',_0x2d58fa);}finally{_0x1e40ac[_0x1acdda(0xb2)]();}}createAntibotTable();async function atbajouterOuMettreAJourJid(_0x2ca4bb,_0x157f44){const _0x2e3124=_0x7addc3,_0x45fa27=await pool[_0x2e3124(0xc2)]();try{const _0x370821=await _0x45fa27[_0x2e3124(0xa8)](_0x2e3124(0xba),[_0x2ca4bb]),_0x1c6d55=_0x370821['rows'][_0x2e3124(0xa5)]>0x0;_0x1c6d55?await _0x45fa27['query'](_0x2e3124(0xb6),[_0x157f44,_0x2ca4bb]):await _0x45fa27['query'](_0x2e3124(0xb0),[_0x2ca4bb,_0x157f44,_0x2e3124(0xab)]),console['log'](_0x2e3124(0xb7)+_0x2ca4bb+_0x2e3124(0xc0));}catch(_0x15ce6a){console['error'](_0x2e3124(0xc3),_0x15ce6a);}finally{_0x45fa27[_0x2e3124(0xb2)]();}};async function atbmettreAJourAction(_0x26d92e,_0x240cce){const _0x3f18cf=_0x7addc3,_0x1033ce=await pool['connect']();try{const _0x44d08d=await _0x1033ce[_0x3f18cf(0xa8)](_0x3f18cf(0xba),[_0x26d92e]),_0x2799dc=_0x44d08d['rows'][_0x3f18cf(0xa5)]>0x0;_0x2799dc?await _0x1033ce[_0x3f18cf(0xa8)](_0x3f18cf(0xb5),[_0x240cce,_0x26d92e]):await _0x1033ce['query'](_0x3f18cf(0xb0),[_0x26d92e,_0x3f18cf(0xb1),_0x240cce]),console[_0x3f18cf(0xa9)](_0x3f18cf(0xae)+_0x26d92e+'\x20dans\x20la\x20table\x20\x27antibot\x27.');}catch(_0x38fe9f){console[_0x3f18cf(0xbb)](_0x3f18cf(0xc6),_0x38fe9f);}finally{_0x1033ce[_0x3f18cf(0xb2)]();}};async function atbverifierEtatJid(_0x51f861){const _0x5809bc=_0x7addc3,_0x3a25f5=await pool[_0x5809bc(0xc2)]();try{const _0x3c18af=await _0x3a25f5[_0x5809bc(0xa8)]('SELECT\x20etat\x20FROM\x20antibot\x20WHERE\x20jid\x20=\x20$1',[_0x51f861]);if(_0x3c18af['rows']['length']>0x0){const _0x5246ed=_0x3c18af['rows'][0x0]['etat'];return _0x5246ed===_0x5809bc(0xbf);}else return![];}catch(_0x25b7f8){return console[_0x5809bc(0xbb)](_0x5809bc(0xbc),_0x25b7f8),![];}finally{_0x3a25f5[_0x5809bc(0xb2)]();}};async function atbrecupererActionJid(_0x16a002){const _0x1d886f=_0x7addc3,_0x24177b=await pool[_0x1d886f(0xc2)]();try{const _0x2cd996=await _0x24177b[_0x1d886f(0xa8)](_0x1d886f(0xc8),[_0x16a002]);if(_0x2cd996['rows'][_0x1d886f(0xa5)]>0x0){const _0xa42282=_0x2cd996[_0x1d886f(0xc4)][0x0]['action'];return _0xa42282;}else return _0x1d886f(0xab);}catch(_0x3aebb1){return console[_0x1d886f(0xbb)](_0x1d886f(0xb9),_0x3aebb1),_0x1d886f(0xab);}finally{_0x24177b[_0x1d886f(0xb2)]();}};module['exports']={'atbmettreAJourAction':atbmettreAJourAction,'atbajouterOuMettreAJourJid':atbajouterOuMettreAJourJid,'atbverifierEtatJid':atbverifierEtatJid,'atbrecupererActionJid':atbrecupererActionJid};function _0xf060(_0x1edae9,_0x164962){const _0x29167c=_0x2916();return _0xf060=function(_0xf060de,_0xd89a2){_0xf060de=_0xf060de-0xa4;let _0x2c6d16=_0x29167c[_0xf060de];return _0x2c6d16;},_0xf060(_0x1edae9,_0x164962);}function _0x2916(){const _0x2c2af4=['DATABASE_URL','UPDATE\x20antibot\x20SET\x20action\x20=\x20$1\x20WHERE\x20jid\x20=\x20$2','UPDATE\x20antibot\x20SET\x20etat\x20=\x20$1\x20WHERE\x20jid\x20=\x20$2','JID\x20','2935485QWDoCK','Erreur\x20lors\x20de\x20la\x20récupération\x20de\x20l\x27action\x20du\x20JID\x20dans\x20la\x20table\x20:','SELECT\x20*\x20FROM\x20antibot\x20WHERE\x20jid\x20=\x20$1','error','Erreur\x20lors\x20de\x20la\x20vérification\x20de\x20l\x27état\x20du\x20JID\x20dans\x20la\x20table\x20','703626PjWfNS','2797672YMYYQC','oui','\x20ajouté\x20ou\x20mis\x20à\x20jour\x20avec\x20succès\x20dans\x20la\x20table\x20\x27antibot\x27.','config','connect','Erreur\x20lors\x20de\x20l\x27ajout\x20ou\x20de\x20la\x20mise\x20à\x20jour\x20du\x20JID\x20dans\x20la\x20table\x20,','rows','375574oXEeBr','Erreur\x20lors\x20de\x20la\x20mise\x20à\x20jour\x20de\x20l\x27action\x20pour\x20le\x20JID\x20dans\x20la\x20table\x20\x20:','455343DMsNHd','SELECT\x20action\x20FROM\x20antibot\x20WHERE\x20jid\x20=\x20$1','6dvtmXl','length','10oZIvXj','La\x20table\x20\x27antibot\x27\x20a\x20été\x20créée\x20avec\x20succès.','query','log','1392655XlNBZQ','supp','../set','7fknnIK','Action\x20mise\x20à\x20jour\x20avec\x20succès\x20pour\x20le\x20JID\x20','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','INSERT\x20INTO\x20antibot\x20(jid,\x20etat,\x20action)\x20VALUES\x20($1,\x20$2,\x20$3)','non','release','1860180ANpXRd'];_0x2916=function(){return _0x2c2af4;};return _0x2916();}
--------------------------------------------------------------------------------
/framework/dl/Function.js:
--------------------------------------------------------------------------------
1 | var __importDefault = (this && this.__importDefault) || function (mod) {
2 | return (mod && mod.__esModule) ? mod : { "default": mod }
3 | }
4 | Object.defineProperty(exports, "__esModule", { value: true })
5 |
6 | const axios = require("axios")
7 | const cheerio = require("cheerio")
8 | const { resolve } = require("path")
9 | const Jimp = require('jimp')
10 | const util = require("util")
11 | let BodyForm = require('form-data')
12 | let { fromBuffer } = require('file-type')
13 | //let fetch = require('node-fetch')
14 | let fs = require('fs')
15 |
16 |
17 |
18 | exports.sleep = async (ms) => {
19 | return new Promise(resolve => setTimeout(resolve, ms));
20 | }
21 |
22 | exports.fetchBuffer = async (url, options) => {
23 | try {
24 | options ? options : {}
25 | const res = await axios({
26 | method: "GET",
27 | url,
28 | headers: {
29 | "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36",
30 | 'DNT': 1,
31 | 'Upgrade-Insecure-Request': 1
32 | },
33 | ...options,
34 | responseType: 'arraybuffer'
35 | })
36 | return res.data
37 | } catch (err) {
38 | return err
39 | }
40 | }
41 | exports.webp2mp4File=async(path) =>{
42 | return new Promise((resolve, reject) => {
43 | const form = new BodyForm()
44 | form.append('new-image-url', '')
45 | form.append('new-image', fs.createReadStream(path))
46 | axios({
47 | method: 'post',
48 | url: 'https://s6.ezgif.com/webp-to-mp4',
49 | data: form,
50 | headers: {
51 | 'Content-Type': `multipart/form-data; boundary=${form._boundary}`
52 | }
53 | }).then(({ data }) => {
54 | const bodyFormThen = new BodyForm()
55 | const $ = cheerio.load(data)
56 | const file = $('input[name="file"]').attr('value')
57 | bodyFormThen.append('file', file)
58 | bodyFormThen.append('convert', "Convert WebP to MP4!")
59 | axios({
60 | method: 'post',
61 | url: 'https://ezgif.com/webp-to-mp4/' + file,
62 | data: bodyFormThen,
63 | headers: {
64 | 'Content-Type': `multipart/form-data; boundary=${bodyFormThen._boundary}`
65 | }
66 | }).then(({ data }) => {
67 | const $ = cheerio.load(data)
68 | const result = 'https:' + $('div#output > p.outfile > video > source').attr('src')
69 | resolve({
70 | status: true,
71 | message: "Created By MRHRTZ",
72 | result: result
73 | })
74 | }).catch(reject)
75 | }).catch(reject)
76 | })
77 | }
78 |
79 |
80 |
81 |
82 | exports.mediafireDl = async (url, options) => {
83 | try {
84 | options = options ? options : {};
85 | const res = await axios.get(url, options);
86 | const $ = cheerio.load(res.data);
87 | const hasil = [];
88 | const link = $('a#downloadButton').attr('href');
89 | const size = $('a#downloadButton').text().replace('Download', '').replace('(', '').replace(')', '').replace('\n', '').replace('\n', '').replace(' ', '');
90 | const seplit = link.split('/');
91 | const nama = seplit[5];
92 | mime = nama.split('.');
93 | mime = mime[1];
94 | hasil.push({ nama, mime, size, link });
95 | return hasil;
96 | } catch (err) {
97 | return err;
98 | }
99 | };
100 |
101 | exports.getBuffer = async (url, options) => {
102 | try {
103 | options ? options : {}
104 | const res = await axios({
105 | method: "get",
106 | url,
107 | headers: {
108 | 'DNT': 1,
109 | 'Upgrade-Insecure-Request': 1
110 | },
111 | ...options,
112 | responseType: 'arraybuffer'
113 | })
114 | return res.data
115 | } catch (err) {
116 | return err
117 | }
118 | }
119 |
120 |
121 | exports.fetchUrl = async (url, options) => {
122 | try {
123 | options ? options : {}
124 | const res = await axios({
125 | method: 'GET',
126 | url: url,
127 | headers: {
128 | 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36'
129 | },
130 | ...options
131 | })
132 | return res.data
133 | } catch (err) {
134 | return err
135 | }
136 | }
137 |
138 | exports.generateProfilePicture = async (buffer) => {
139 | const jimp = await Jimp.read(buffer)
140 | const min = jimp.getWidth()
141 | const max = jimp.getHeight()
142 | const cropped = jimp.crop(0, 0, min, max)
143 | return {
144 | img: await cropped.scaleToFit(720, 720).getBufferAsync(Jimp.MIME_JPEG),
145 | preview: await cropped.scaleToFit(720, 720).getBufferAsync(Jimp.MIME_JPEG)
146 | }
147 | }
148 |
149 | exports.WAVersion = async () => {
150 | let get = await exports.fetchUrl("https://web.whatsapp.com/check-update?version=1&platform=web")
151 | let version = [get.currentVersion.replace(/[.]/g, ", ")]
152 | return version
153 | }
154 |
155 | exports.getRandom = (ext) => {
156 | return `${Math.floor(Math.random() * 10000)}${ext}`
157 | }
158 |
159 | exports.isUrl = (url) => {
160 | return url.match(new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/, 'gi'))
161 | }
162 |
163 | exports.isNumber = (number) => {
164 | const int = parseInt(number)
165 | return typeof int === 'number' && !isNaN(int)
166 | }
167 |
--------------------------------------------------------------------------------
/commands/YT-search.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | GOLD MD
5 |
6 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
7 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
8 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
9 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
10 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
11 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
12 |
13 | **/
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | const { france } = require("../framework/france");
23 | const { getytlink, ytdwn } = require("../framework/ytdl-core");
24 | const yts = require("yt-search");
25 | const ytdl = require('ytdl-core');
26 | const fs = require('fs');
27 |
28 | france({ nomCom: "yts", categorie: "Search", reaction: "🔰" }, async (dest, zk, commandeOptions) => {
29 | const { ms, repondre, arg } = commandeOptions;
30 | const query = arg.join(" ");
31 |
32 | if (!query[0]) {
33 | repondre("Apko youtube ki kon si videos ke name or link ki list chahye..?");
34 | return;
35 | }
36 |
37 | try {
38 | const info = await yts(query);
39 | const resultat = info.videos;
40 |
41 | let captions = "";
42 | for (let i = 0; i < 10; i++) {
43 | captions += `----------------\nTitle: ${resultat[i].title}\nTime : ${resultat[i].timestamp}\nUrl: ${resultat[i].url}\n`;
44 | }
45 | captions += "\n======\n*MADE BY GOLD-MD*";
46 |
47 | // repondre(captions)
48 | zk.sendMessage(dest, { image: { url: resultat[0].thumbnail }, caption: captions }, { quoted: ms });
49 | } catch (error) {
50 | repondre("Erreur lors de la procédure : " + error);
51 | }
52 | });
53 |
54 | france({
55 | nomCom: "ytv",
56 | categorie: "Download",
57 | reaction: "🔰"
58 | }, async (origineMessage, zk, commandeOptions) => {
59 | const { arg, ms, repondre } = commandeOptions;
60 |
61 | if (!arg[0]) {
62 | repondre("Video download karne ke lie Mujhe youtube video ka link do");
63 | return;
64 | }
65 |
66 | const topo = arg.join(" ");
67 | try {
68 | /* const search = await yts(topo);
69 | const videos = search.videos;
70 |
71 | if (videos && videos.length > 0 && videos[0]) {
72 | const Element = videos[0];
73 |
74 | let InfoMess = {
75 | image: { url: videos[0].thumbnail },
76 | caption: `*nom de la vidéo :* _${Element.title}_
77 | *Durée :* _${Element.timestamp}_
78 | *Lien :* _${Element.url}_
79 | _*En cours de téléchargement...*_\n\n`
80 | };
81 |
82 | zk.sendMessage(origineMessage, InfoMess, { quoted: ms });
83 | */
84 |
85 | // Obtenir les informations de la vidéo à partir du lien YouTube
86 | const videoInfo = await ytdl.getInfo(topo);
87 | // Format vidéo avec la meilleure qualité disponible
88 | const format = ytdl.chooseFormat(videoInfo.formats, { quality: '18' });
89 | // Télécharger la vidéo
90 | const videoStream = ytdl.downloadFromInfo(videoInfo, { format });
91 |
92 | // Nom du fichier local pour sauvegarder la vidéo
93 | const filename = 'video.mp4';
94 |
95 | // Écrire le flux vidéo dans un fichier local
96 | const fileStream = fs.createWriteStream(filename);
97 | videoStream.pipe(fileStream);
98 |
99 | fileStream.on('finish', () => {
100 | // Envoi du fichier vidéo en utilisant l'URL du fichier local
101 | zk.sendMessage(origineMessage, { video: { url: `./${filename}` }, caption: "*MADE BY GOLD-MD*", gifPlayback: false }, { quoted: ms });
102 |
103 | });
104 |
105 | fileStream.on('error', (error) => {
106 | console.error('Erreur lors de l\'écriture du fichier vidéo :', error);
107 | repondre('Une erreur est survenue lors de l\'écriture du fichier vidéo.');
108 | });
109 |
110 | } catch (error) {
111 | console.error('Erreur lors de la recherche ou du téléchargement de la vidéo :', error);
112 | repondre('Une erreur est survenue lors de la recherche ou du téléchargement de la vidéo.' + error);
113 | }
114 | });
115 |
116 | france({
117 | nomCom: "yta",
118 | categorie: "Download",
119 | reaction: "🔰"
120 | }, async (origineMessage, zk, commandeOptions) => {
121 | const { ms, repondre, arg } = commandeOptions;
122 |
123 | if (!arg[0]) {
124 | repondre("Audio download karne ke lie Mujhe youtube video ka link do");
125 | return;
126 | }
127 |
128 | try {
129 | let topo = arg.join(" ");
130 |
131 | const audioStream = ytdl(topo, { filter: 'audioonly', quality: 'highestaudio' });
132 |
133 | // Nom du fichier local pour sauvegarder le fichier audio
134 | const filename = 'audio.mp3';
135 |
136 | // Écrire le flux audio dans un fichier local
137 | const fileStream = fs.createWriteStream(filename);
138 | audioStream.pipe(fileStream);
139 |
140 | fileStream.on('finish', () => {
141 | // Envoi du fichier audio en utilisant l'URL du fichier local
142 | zk.sendMessage(origineMessage, { audio: { url: `./${filename}` }, mimetype: 'audio/mp4' }, { quoted: ms, ptt: false });
143 | console.log("Envoi du fichier audio terminé !");
144 | });
145 |
146 | fileStream.on('error', (error) => {
147 | console.error('Erreur lors de l\'écriture du fichier audio :', error);
148 | repondre('Une erreur est survenue lors de l\'écriture du fichier audio.');
149 | });
150 |
151 | } catch (error) {
152 | console.error('Erreur lors de la recherche ou du téléchargement de la vidéo :', error);
153 | repondre('Une erreur est survenue lors de la recherche ou du téléchargement de la vidéo.');
154 | }
155 | });
156 |
--------------------------------------------------------------------------------
/commands/Menu.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | GOLD MD
6 |
7 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
8 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
9 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
10 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
11 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
12 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
13 |
14 | **/
15 |
16 |
17 |
18 |
19 |
20 |
21 | function _0xc173(){const _0x547251=['\x0a╭────💞GOLD-MD💞────♦️\x0a┃♥️┃╭──────────────\x0a┃😘┃\x20*PREFIX\x20:❯*\x20','toLocaleLowerCase','totalmem','/../framework/mesfonctions','length','sendMessage','120yNTMuJ','\x20minute,\x20','\x20\x20\x0a┃😘┃\x20*SERVER\x20:❯*\x20GOLD|x|7tf.0\x0a┃😘┃\x20*PLATFORM\x20:❯*\x20Linux\x0a┃😘┃\x20*THEME\x20:❯*\x20GOLD-MD\x0a┃😘┃\x20*VERSION\x20:❯*\x201.0.0\x0a┃😘┃\x20*DATE\x20:❯*\x20','Je\x20suis\x20*Zokou-MD*,\x20développé\x20par\x20Djalega++','/../framework/france','10256AaXKyf','\x20⟫══⫸*','\x20\x0a┃😘┃\x20*MODE\x20:❯*\x20','1368dINUxu','util','DD/MM/YYYY','567628aTcEkV','63RDgpXX','\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20\x20*🦋\x20┃\x20COMMANDS\x20┃\x20🦋*\x0a','/../set','\x0a*_GOLD-MD\x20WHATSAPP\x20BOT_*\x0ahttps://whatsapp.com/channel/0029VabdDuf7DAWylTkTZa0m\x0a','\x0a*╔═══⟪\x20','yes','\x0a*╚════\x20≪\x20•❈•\x20≫\x20════╝*\x0a','84992bOtoCj','\x0a┃😘┃\x20*TIME\x20:❯*\x20','🥵🥵\x20Menu\x20erreur\x20','categorie','/../framework//france','143199OptWGb','\x20m,\x20','moment-timezone','freemem','map','Asia/Karachi','\x20\x20\x0a┃😘┃\x20*RAM\x20:❯*\x20','183520qoZeVL','log','\x20\x0a┃😘┃\x20*USER\x20:❯*\x20\x20','match','\x20day,\x20','\x20second','5UnRUhb','\x0a┃😘┃\x20*COMMANDS\x20:❯*\x20','248259kKfGqk','setDefault','fs-extra','HH:mm:ss','push','uptime','PREFIXE','23358NvVTNZ','\x20hour,\x20','floor','\x20d,\x20','\x20h,\x20'];_0xc173=function(){return _0x547251;};return _0xc173();}const _0x30987f=_0x6eb6;(function(_0x1f6341,_0x27c8d5){const _0x38b4e6=_0x6eb6,_0xac1303=_0x1f6341();while(!![]){try{const _0x26a2a1=-parseInt(_0x38b4e6(0xd1))/0x1+-parseInt(_0x38b4e6(0xc5))/0x2+parseInt(_0x38b4e6(0xca))/0x3+-parseInt(_0x38b4e6(0xbd))/0x4*(parseInt(_0x38b4e6(0xd7))/0x5)+-parseInt(_0x38b4e6(0xe0))/0x6*(parseInt(_0x38b4e6(0xbe))/0x7)+parseInt(_0x38b4e6(0xb7))/0x8*(parseInt(_0x38b4e6(0xba))/0x9)+-parseInt(_0x38b4e6(0xb2))/0xa*(-parseInt(_0x38b4e6(0xd9))/0xb);if(_0x26a2a1===_0x27c8d5)break;else _0xac1303['push'](_0xac1303['shift']());}catch(_0xfcf192){_0xac1303['push'](_0xac1303['shift']());}}}(_0xc173,0x1af81));function _0x6eb6(_0x2b2ede,_0x4d16be){const _0xc17327=_0xc173();return _0x6eb6=function(_0x6eb65b,_0x5a20b2){_0x6eb65b=_0x6eb65b-0xa9;let _0x2e6c32=_0xc17327[_0x6eb65b];return _0x2e6c32;},_0x6eb6(_0x2b2ede,_0x4d16be);}const util=require(_0x30987f(0xbb)),fs=require(_0x30987f(0xdb)),{france}=require(__dirname+_0x30987f(0xb6)),{format}=require(__dirname+_0x30987f(0xaf)),os=require('os'),moment=require(_0x30987f(0xcc)),s=require(__dirname+_0x30987f(0xc0)),runtime=function(_0x187d57){const _0x8c43cb=_0x30987f;_0x187d57=Number(_0x187d57);var _0x51404e=Math[_0x8c43cb(0xa9)](_0x187d57/(0xe10*0x18)),_0x58c8d1=Math[_0x8c43cb(0xa9)](_0x187d57%(0xe10*0x18)/0xe10),_0x57bf9d=Math[_0x8c43cb(0xa9)](_0x187d57%0xe10/0x3c),_0x35ceb8=Math[_0x8c43cb(0xa9)](_0x187d57%0x3c),_0x3f79b4=_0x51404e>0x0?_0x51404e+(_0x51404e==0x1?_0x8c43cb(0xd5):_0x8c43cb(0xaa)):'',_0x5a1732=_0x58c8d1>0x0?_0x58c8d1+(_0x58c8d1==0x1?_0x8c43cb(0xe1):_0x8c43cb(0xab)):'',_0x46f788=_0x57bf9d>0x0?_0x57bf9d+(_0x57bf9d==0x1?_0x8c43cb(0xb3):_0x8c43cb(0xcb)):'',_0x58b7fc=_0x35ceb8>0x0?_0x35ceb8+(_0x35ceb8==0x1?_0x8c43cb(0xd6):'\x20s'):'';return _0x3f79b4+_0x5a1732+_0x46f788+_0x58b7fc;};france({'nomCom':'menu','categorie':'General'},async(_0x2af0de,_0x28cc0e,_0x22e922)=>{const _0x2315ef=_0x30987f;let {ms:_0x1dbe0a,repondre:_0x1a90f5,prefixe:_0x529d5f,nomAuteurMessage:_0x48a190,mybotpic:_0x85aec2}=_0x22e922,{cm:_0x579468}=require(__dirname+_0x2315ef(0xc9));var _0x3085ff={},_0xbafdb7='public';s['MODE'][_0x2315ef(0xad)]()!=_0x2315ef(0xc3)&&(_0xbafdb7='private');_0x579468[_0x2315ef(0xce)](async(_0x37d146,_0x55f207)=>{const _0x44f959=_0x2315ef;if(!_0x3085ff[_0x37d146['categorie']])_0x3085ff[_0x37d146[_0x44f959(0xc8)]]=[];_0x3085ff[_0x37d146[_0x44f959(0xc8)]][_0x44f959(0xdd)](_0x37d146['nomCom']);}),moment['tz'][_0x2315ef(0xda)](_0x2315ef(0xcf));const _0x3f94de=moment()['format'](_0x2315ef(0xdc)),_0x3ad85b=moment()['format'](_0x2315ef(0xbc));let _0x466c1b=_0x2315ef(0xac)+s[_0x2315ef(0xdf)]+_0x2315ef(0xd3)+s['OWNER_NAME']+_0x2315ef(0xc6)+_0x3f94de+_0x2315ef(0xb4)+_0x3ad85b+_0x2315ef(0xb9)+_0xbafdb7+_0x2315ef(0xd8)+_0x579468[_0x2315ef(0xb0)]+_0x2315ef(0xd0)+format(os[_0x2315ef(0xae)]()-os[_0x2315ef(0xcd)]())+'/'+format(os[_0x2315ef(0xae)]())+'\x20\x0a┃😘┃\x20*UPTIME\x20:❯*\x20'+runtime(process[_0x2315ef(0xde)]())+'\x20\x0a┃♥️╰───────────────\x0a╰─────🔰B•O•T🔰─────♦️\x20\x0a',_0x3c7fea=_0x2315ef(0xbf);for(const _0xafd2d0 in _0x3085ff){_0x3c7fea+=_0x2315ef(0xc2)+_0xafd2d0+_0x2315ef(0xb8);for(const _0x1430ff of _0x3085ff[_0xafd2d0]){_0x3c7fea+='\x20\x0a*•│🔰│•\x20'+_0x1430ff+'\x20🌹*';}_0x3c7fea+=_0x2315ef(0xc4);}_0x3c7fea+=_0x2315ef(0xc1);var _0x2af193=_0x85aec2();if(_0x2af193['match'](/\.(mp4|gif)$/i))try{_0x28cc0e[_0x2315ef(0xb1)](_0x2af0de,{'video':{'url':_0x2af193},'caption':_0x466c1b+_0x3c7fea,'footer':_0x2315ef(0xb5),'gifPlayback':!![]},{'quoted':_0x1dbe0a});}catch(_0x515206){console[_0x2315ef(0xd2)](_0x2315ef(0xc7)+_0x515206),_0x1a90f5(_0x2315ef(0xc7)+_0x515206);}else{if(_0x2af193[_0x2315ef(0xd4)](/\.(jpeg|png|jpg)$/i))try{_0x28cc0e['sendMessage'](_0x2af0de,{'image':{'url':_0x2af193},'caption':_0x466c1b+_0x3c7fea,'footer':'*😍UMAR😍*'},{'quoted':_0x1dbe0a});}catch(_0x196b3d){console[_0x2315ef(0xd2)](_0x2315ef(0xc7)+_0x196b3d),_0x1a90f5(_0x2315ef(0xc7)+_0x196b3d);}else _0x1a90f5(_0x466c1b+_0x3c7fea);}});
22 |
--------------------------------------------------------------------------------
/bdd/antilien.js:
--------------------------------------------------------------------------------
1 | const _0xd8d4f3=_0x5e7a;(function(_0x4ed1c1,_0x12cf3a){const _0x5784c5=_0x5e7a,_0x287f92=_0x4ed1c1();while(!![]){try{const _0x439eee=-parseInt(_0x5784c5(0xe0))/0x1+-parseInt(_0x5784c5(0xc8))/0x2*(parseInt(_0x5784c5(0xd2))/0x3)+-parseInt(_0x5784c5(0xe1))/0x4*(parseInt(_0x5784c5(0xdf))/0x5)+-parseInt(_0x5784c5(0xcc))/0x6+parseInt(_0x5784c5(0xc7))/0x7*(parseInt(_0x5784c5(0xbb))/0x8)+parseInt(_0x5784c5(0xc1))/0x9*(parseInt(_0x5784c5(0xca))/0xa)+-parseInt(_0x5784c5(0xc0))/0xb*(-parseInt(_0x5784c5(0xd1))/0xc);if(_0x439eee===_0x12cf3a)break;else _0x287f92['push'](_0x287f92['shift']());}catch(_0x8b9b75){_0x287f92['push'](_0x287f92['shift']());}}}(_0x2ba8,0xb9542),require(_0xd8d4f3(0xcb))[_0xd8d4f3(0xbc)]());const {Pool}=require('pg');let s=require(_0xd8d4f3(0xd6));var dbUrl=s[_0xd8d4f3(0xc9)]?s[_0xd8d4f3(0xc9)]:_0xd8d4f3(0xd9);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);async function createAntilienTable(){const _0x43da6d=_0xd8d4f3,_0x836b76=await pool[_0x43da6d(0xc5)]();try{await _0x836b76['query'](_0x43da6d(0xde)),console[_0x43da6d(0xbe)](_0x43da6d(0xbf));}catch(_0x336f7f){console[_0x43da6d(0xb9)]('Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27antilien\x27:',_0x336f7f);}finally{_0x836b76[_0x43da6d(0xcf)]();}}createAntilienTable();async function ajouterOuMettreAJourJid(_0x55dabb,_0x112bff){const _0x510f22=_0xd8d4f3,_0x5c72e4=await pool[_0x510f22(0xc5)]();try{const _0x5f50db=await _0x5c72e4[_0x510f22(0xc3)](_0x510f22(0xbd),[_0x55dabb]),_0x791161=_0x5f50db['rows'][_0x510f22(0xd7)]>0x0;_0x791161?await _0x5c72e4['query'](_0x510f22(0xba),[_0x112bff,_0x55dabb]):await _0x5c72e4[_0x510f22(0xc3)](_0x510f22(0xd3),[_0x55dabb,_0x112bff,_0x510f22(0xc4)]),console[_0x510f22(0xbe)](_0x510f22(0xc6)+_0x55dabb+_0x510f22(0xce));}catch(_0x262db5){console[_0x510f22(0xb9)]('Erreur\x20lors\x20de\x20l\x27ajout\x20ou\x20de\x20la\x20mise\x20à\x20jour\x20du\x20JID\x20dans\x20la\x20table\x20,',_0x262db5);}finally{_0x5c72e4[_0x510f22(0xcf)]();}};function _0x5e7a(_0x1e30ef,_0x37e7ea){const _0x2ba829=_0x2ba8();return _0x5e7a=function(_0x5e7afb,_0x915322){_0x5e7afb=_0x5e7afb-0xb9;let _0x199363=_0x2ba829[_0x5e7afb];return _0x199363;},_0x5e7a(_0x1e30ef,_0x37e7ea);}async function mettreAJourAction(_0x30b9f9,_0x26a81e){const _0x3960b8=_0xd8d4f3,_0x2ca9b7=await pool[_0x3960b8(0xc5)]();try{const _0x579aed=await _0x2ca9b7['query']('SELECT\x20*\x20FROM\x20antilien\x20WHERE\x20jid\x20=\x20$1',[_0x30b9f9]),_0x11b8a0=_0x579aed[_0x3960b8(0xe3)][_0x3960b8(0xd7)]>0x0;_0x11b8a0?await _0x2ca9b7[_0x3960b8(0xc3)](_0x3960b8(0xd4),[_0x26a81e,_0x30b9f9]):await _0x2ca9b7[_0x3960b8(0xc3)]('INSERT\x20INTO\x20antilien\x20(jid,\x20etat,\x20action)\x20VALUES\x20($1,\x20$2,\x20$3)',[_0x30b9f9,_0x3960b8(0xd0),_0x26a81e]),console[_0x3960b8(0xbe)](_0x3960b8(0xd8)+_0x30b9f9+_0x3960b8(0xd5));}catch(_0x5d2c4b){console['error']('Erreur\x20lors\x20de\x20la\x20mise\x20à\x20jour\x20de\x20l\x27action\x20pour\x20le\x20JID\x20dans\x20la\x20table\x20\x20:',_0x5d2c4b);}finally{_0x2ca9b7[_0x3960b8(0xcf)]();}};async function verifierEtatJid(_0x5001a0){const _0x180c21=_0xd8d4f3,_0x180fd3=await pool[_0x180c21(0xc5)]();try{const _0x47ddb1=await _0x180fd3['query']('SELECT\x20etat\x20FROM\x20antilien\x20WHERE\x20jid\x20=\x20$1',[_0x5001a0]);if(_0x47ddb1['rows'][_0x180c21(0xd7)]>0x0){const _0x5d786a=_0x47ddb1['rows'][0x0][_0x180c21(0xe2)];return _0x5d786a===_0x180c21(0xc2);}else return![];}catch(_0x409974){return console[_0x180c21(0xb9)](_0x180c21(0xdb),_0x409974),![];}finally{_0x180fd3[_0x180c21(0xcf)]();}};async function recupererActionJid(_0x4d728a){const _0x211f50=_0xd8d4f3,_0x5612c4=await pool[_0x211f50(0xc5)]();try{const _0x26b369=await _0x5612c4[_0x211f50(0xc3)](_0x211f50(0xda),[_0x4d728a]);if(_0x26b369['rows'][_0x211f50(0xd7)]>0x0){const _0x5530a6=_0x26b369[_0x211f50(0xe3)][0x0][_0x211f50(0xdd)];return _0x5530a6;}else return _0x211f50(0xc4);}catch(_0x212e68){return console[_0x211f50(0xb9)](_0x211f50(0xcd),_0x212e68),_0x211f50(0xc4);}finally{_0x5612c4[_0x211f50(0xcf)]();}};module[_0xd8d4f3(0xdc)]={'mettreAJourAction':mettreAJourAction,'ajouterOuMettreAJourJid':ajouterOuMettreAJourJid,'verifierEtatJid':verifierEtatJid,'recupererActionJid':recupererActionJid};function _0x2ba8(){const _0x1b95d7=['1865QQsydJ','305404BRQiqQ','11860kwVpmk','etat','rows','error','UPDATE\x20antilien\x20SET\x20etat\x20=\x20$1\x20WHERE\x20jid\x20=\x20$2','394088WSnsxv','config','SELECT\x20*\x20FROM\x20antilien\x20WHERE\x20jid\x20=\x20$1','log','La\x20table\x20\x27antilien\x27\x20a\x20été\x20créée\x20avec\x20succès.','11pwIHEJ','2529evtluL','oui','query','supp','connect','JID\x20','7NAMwKK','550lgPSkQ','DATABASE_URL','29350zmXhyr','dotenv','6195180RyMuPB','Erreur\x20lors\x20de\x20la\x20récupération\x20de\x20l\x27action\x20du\x20JID\x20dans\x20la\x20table\x20:','\x20ajouté\x20ou\x20mis\x20à\x20jour\x20avec\x20succès\x20dans\x20la\x20table\x20\x27antilien\x27.','release','non','31459068yuIQnL','3192pfxNnk','INSERT\x20INTO\x20antilien\x20(jid,\x20etat,\x20action)\x20VALUES\x20($1,\x20$2,\x20$3)','UPDATE\x20antilien\x20SET\x20action\x20=\x20$1\x20WHERE\x20jid\x20=\x20$2','\x20dans\x20la\x20table\x20\x27antilien\x27.','../set','length','Action\x20mise\x20à\x20jour\x20avec\x20succès\x20pour\x20le\x20JID\x20','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','SELECT\x20action\x20FROM\x20antilien\x20WHERE\x20jid\x20=\x20$1','Erreur\x20lors\x20de\x20la\x20vérification\x20de\x20l\x27état\x20du\x20JID\x20dans\x20la\x20table\x20','exports','action','\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20antilien\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20jid\x20text\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20etat\x20text,\x0a\x20\x20\x20\x20\x20\x20\x20\x20action\x20text\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20'];_0x2ba8=function(){return _0x1b95d7;};return _0x2ba8();}
2 |
--------------------------------------------------------------------------------
/commands/A.I.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | GOLD-MD
4 |
5 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
6 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
7 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
8 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
9 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
10 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
11 |
12 | **/
13 |
14 |
15 |
16 |
17 |
18 | const _0x383b98=_0x462c;function _0x4d33(){const _0x50d9c4=['gpt','6987840nhPuBw','General','axios','../framework/france','*_I\x20AM\x20A\x20GOLD-MD\x20USER_*','2993112qhzeal','json','`https://ultimetron.guruapi.tech/gpt4?prompt=','*MADE\x20BY\x20GOLD-MD*','catch','Mere\x20Pass\x20iska\x20Jawab\x20Nahi','imagine','http://api.brainshop.ai/get?bid=177607&key=NwzhALqeO1kubFVD&uid=[uid]&msg=','1364bObwOp','Mujhe\x20Photo\x20ke\x20bare\x20me\x20kuch\x20batao\x20jis\x20se\x20me\x20photo\x20bana\x20sako.','bot','Erreur:','result','https://api.bk9.site/ai/geminiimg?url=','then','890990GNREkR','log','message','completion','cnt','../framework/traduction','length','https://api.maher-zubair.tech/ai/dalle?q=','error','6wWPheB','join','Une\x20erreur\x20s\x27est\x20produite','Math\x20ka\x20sawal\x20likho\x20jese\x2010+2024.\x0a\x0aLazmiii:\x20Yeh\x20\x22(/)\x22\x20division\x20ke\x20Lie\x20or\x20\x22(*)\x22\x20multiplication\x20ke\x20Lie','Sorry\x20photo\x20nahi\x20ban\x20saki.','data','Error\x20when\x20translating\x20into\x20French\x20:','gpt2','owner','*🔰\x20GOLD-MD\x20GPT\x20🔰*\x0a\x0aKoi\x20bhi\x20sawal\x20poocho!','20JGtkeU','Iska\x20Jawab\x20Nahi\x20:','HI\x20I\x20AM\x20GOLD-MD\x20GPT2\x0a\x0a\x20ME\x20KIA\x20HELP\x20KARO\x20APKI','3119620nfEiNX','Error\x20when\x20translating\x20into\x20French','9270ixAhYf','847343AsRFZb','status','7853319TOtkcI'];_0x4d33=function(){return _0x50d9c4;};return _0x4d33();}function _0x462c(_0x5973fa,_0x1c7715){const _0x4d338e=_0x4d33();return _0x462c=function(_0x462c9c,_0xc56ab7){_0x462c9c=_0x462c9c-0xb8;let _0x54a701=_0x4d338e[_0x462c9c];return _0x54a701;},_0x462c(_0x5973fa,_0x1c7715);}(function(_0x4d08e1,_0x47cf07){const _0x53e43c=_0x462c,_0x48185d=_0x4d08e1();while(!![]){try{const _0x38765e=parseInt(_0x53e43c(0xcc))/0x1+-parseInt(_0x53e43c(0xe4))/0x2*(-parseInt(_0x53e43c(0xbc))/0x3)+parseInt(_0x53e43c(0xdd))/0x4*(-parseInt(_0x53e43c(0xcb))/0x5)+parseInt(_0x53e43c(0xd0))/0x6+parseInt(_0x53e43c(0xc9))/0x7+-parseInt(_0x53e43c(0xd5))/0x8+parseInt(_0x53e43c(0xce))/0x9*(-parseInt(_0x53e43c(0xc6))/0xa);if(_0x38765e===_0x47cf07)break;else _0x48185d['push'](_0x48185d['shift']());}catch(_0x2b9d5a){_0x48185d['push'](_0x48185d['shift']());}}}(_0x4d33,0x91c6a));const {france}=require(_0x383b98(0xd3)),traduire=require(_0x383b98(0xb8)),{default:axios}=require(_0x383b98(0xd2));france({'nomCom':_0x383b98(0xdf),'reaction':'🔰','categorie':'IA'},async(_0x1c0aed,_0x413ff9,_0x39dcbd)=>{const _0x442648=_0x383b98,{repondre:_0x198ab8,ms:_0x597ad6,arg:_0x3bb9e9}=_0x39dcbd;if(!_0x3bb9e9||!_0x3bb9e9[0x0])return _0x198ab8(_0x442648(0xd4));try{const _0x45fdaf=await traduire(_0x3bb9e9['join']('\x20'),{'to':'en'});console['log'](_0x45fdaf),fetch(_0x442648(0xdc)+_0x45fdaf)[_0x442648(0xe3)](_0x37ff37=>_0x37ff37[_0x442648(0xd6)]())['then'](_0x1eb11c=>{const _0x5bf3fd=_0x442648,_0x35d336=_0x1eb11c[_0x5bf3fd(0xe8)];console[_0x5bf3fd(0xe5)](_0x35d336),traduire(_0x35d336,{'to':'en'})['then'](_0x3a0ed1=>{_0x198ab8(_0x3a0ed1);})[_0x5bf3fd(0xd9)](_0x152549=>{const _0x4dea4c=_0x5bf3fd;console[_0x4dea4c(0xbb)](_0x4dea4c(0xc2),_0x152549),_0x198ab8(_0x4dea4c(0xca));});})['catch'](_0x26a639=>{const _0x2a1d2e=_0x442648;console[_0x2a1d2e(0xbb)](_0x2a1d2e(0xc7),_0x26a639),_0x198ab8(_0x2a1d2e(0xda));});}catch(_0xcf1a91){_0x198ab8('Is\x20me\x20problem\x20hai\x20:\x20'+_0xcf1a91);}}),france({'nomCom':_0x383b98(0xdb),'reaction':'🔰','categorie':'IA'},async(_0x9c1f01,_0x46b94a,_0xc134b1)=>{const _0x9a0db2=_0x383b98,{repondre:_0x60885e,arg:_0x1ce0c7,ms:_0x43d85b}=_0xc134b1;try{if(!_0x1ce0c7||_0x1ce0c7[_0x9a0db2(0xb9)]===0x0)return _0x60885e(_0x9a0db2(0xde));const _0x418630=_0x1ce0c7[_0x9a0db2(0xbd)]('\x20'),_0x4bad06=await fetch(_0x9a0db2(0xba)+_0x418630),_0x3e70c3=await _0x4bad06[_0x9a0db2(0xd6)]();let _0x27945c=_0x9a0db2(0xd8);if(_0x3e70c3[_0x9a0db2(0xcd)]&&_0x3e70c3[_0x9a0db2(0xc4)]&&_0x3e70c3[_0x9a0db2(0xc1)]){const _0x2b872d=_0x3e70c3[_0x9a0db2(0xc1)];_0x46b94a['sendMessage'](_0x9c1f01,{'image':{'url':imageUrl},'caption':_0x27945c},{'quoted':_0x43d85b});}else _0x60885e(_0x9a0db2(0xc0));}catch(_0x4cf92a){console[_0x9a0db2(0xbb)](_0x9a0db2(0xe0),_0x4cf92a[_0x9a0db2(0xe6)]||_0x9a0db2(0xbe)),_0x60885e('Sorry,\x20apki\x20reques\x20accept\x20nahi\x20ho\x20sakti');}}),france({'nomCom':_0x383b98(0xcf),'reaction':'🔰','categorie':'IA'},async(_0x469f2d,_0xa9ffb0,_0x3e6253)=>{const _0x5d8e58=_0x383b98,{repondre:_0xf09c44,arg:_0x568741,ms:_0x4b9307}=_0x3e6253;if(!_0x568741||_0x568741[_0x5d8e58(0xb9)]===0x0)return _0xf09c44(_0x5d8e58(0xc5));const _0xd9f445=_0x568741[_0x5d8e58(0xbd)]('\x20'),_0x5251fc=await fetch(_0x5d8e58(0xd7)+_0xd9f445),_0x425036=await _0x5251fc[_0x5d8e58(0xd6)]();await _0xf09c44(_0x425036[_0x5d8e58(0xe1)]),console['log'](_0x425036['completion']);}),france({'nomCom':_0x383b98(0xc3),'reaction':'🔰','categorie':'IA'},async(_0x2d7136,_0xca139e,_0x4e29ea)=>{const _0x4434be=_0x383b98,{repondre:_0x4005cd,arg:_0x14c035,ms:_0x26d73b}=_0x4e29ea;if(!_0x14c035||_0x14c035[_0x4434be(0xb9)]===0x0)return _0x4005cd(_0x4434be(0xc8));const _0x1c791c=_0x14c035[_0x4434be(0xbd)]('\x20'),_0xd166ef=await fetch(_0x4434be(0xe2)+_0x1c791c),_0x28d9c4=await _0xd166ef[_0x4434be(0xd6)]();await _0x4005cd(_0x28d9c4[_0x4434be(0xe1)]),console[_0x4434be(0xe5)](_0x28d9c4[_0x4434be(0xe7)]);}),france({'nomCom':'calc','reaction':'🔰','categorie':_0x383b98(0xd1)},async(_0x8b522c,_0x5bcdff,_0x4b1e4e)=>{const _0x500927=_0x383b98,{repondre:_0xe7c5ef,arg:_0x9f7d48,ms:_0x5b15f3}=_0x4b1e4e;if(!_0x9f7d48||_0x9f7d48[_0x500927(0xb9)]===0x0)return _0xe7c5ef(_0x500927(0xbf));const _0x3b2b73=_0x9f7d48[_0x500927(0xbd)]('\x20'),_0xb10166=await fetch('https://api.maher-zubair.tech/ai/mathssolve?q='+_0x3b2b73),_0x5e3bcb=await _0xb10166['json']();await _0xe7c5ef(_0x5e3bcb['result']),console[_0x500927(0xe5)](_0x5e3bcb[_0x500927(0xe7)]);});
19 |
--------------------------------------------------------------------------------
/commands/Anime.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | /**
6 |
7 | 🇫🇱🇦🇸🇭-🇲🇩
8 |
9 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
10 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
11 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
12 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
13 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : 𝗙𝗹𝗮𝘀𝗵 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
14 | * @𝗼𝘄𝗻𝗲𝗿: 𝗙𝗿𝗮𝗻𝗰𝗲 𝗞𝗶𝗻𝗴
15 |
16 | **/
17 |
18 |
19 |
20 |
21 |
22 | const axios = require("axios");
23 | const {france} = require("../framework/france");
24 | const traduire = require("../framework/traduction");
25 | const {Sticker ,StickerTypes}= require('wa-sticker-formatter');
26 |
27 | france({
28 | nomCom: "ranime",
29 | categorie: "Fun",
30 | reaction: "🔰"
31 | },
32 | async (origineMessage, zk, commandeOptions) => {
33 | const { repondre, ms } = commandeOptions;
34 |
35 | const jsonURL = "https://api.jikan.moe/v4/random/anime"; // Remplacez par votre URL JSON
36 |
37 | try {
38 | const response = await axios.get(jsonURL);
39 | const data = response.data.data;
40 |
41 | const title = data.title;
42 | const synopsis = data.synopsis;
43 | const imageUrl = data.images.jpg.image_url; // Utilisez l'URL de l'image JPG
44 | const episodes = data.episodes;
45 | const status = data.status;
46 |
47 | //const texttraduit = await traduire(synopsis,{ to: 'fr' })
48 |
49 | const message = `🔰 TITLE: ${title}\n🔰 EPISODE: ${episodes}\n🔰 STATUS: ${status}\n🔰 SYNOPSIS: ${synopsis}\n🔰 LINK: ${data.url}`;
50 |
51 | // Envoyer l'image et les informations
52 | zk.sendMessage(origineMessage, { image: { url: imageUrl }, caption: message }, { quoted: ms });
53 | } catch (error) {
54 | console.error('Error retrieving data from JSON :', error);
55 | repondre('Error retrieving data from JSON.');
56 | }
57 | });
58 |
59 | france({
60 | nomCom: "google",
61 | categorie: "Search"
62 | }, async (dest, zk, commandeOptions) => {
63 | const { arg, repondre } = commandeOptions;
64 |
65 | if (!arg[0] || arg === "") {
66 | repondre("Apko google se kisi chiz ki information chahye...?\n*Ese likho : .google GOLD MD github Repo Link*");
67 | return;
68 | }
69 |
70 | const google = require('google-it');
71 | try {
72 | const results = await google({ query: arg.join(" ") });
73 | let msg = `GOLD MD GOOGLE SEARCHED FOR : ${arg}\n\n`;
74 |
75 | for (let result of results) {
76 | msg += `🔰 TITLE : ${result.title}\n`;
77 | msg += `🔰 DESCRYPTION : ${result.snippet}\n`;
78 | msg += `🔰 LINK : ${result.link}\n\n────────────────────────\n\n`;
79 | }
80 |
81 | // const trdmsg = await traduire(msg,{to : 'fr'})
82 | repondre(msg);
83 | } catch (error) {
84 | repondre("An error occurred during Google search.");
85 | }
86 | });
87 |
88 | france({
89 | nomCom: "imdb",
90 | categorie: "Search"
91 | }, async (dest, zk, commandeOptions) => {
92 | const { arg, repondre , ms } = commandeOptions;
93 |
94 | if (!arg[0] || arg === "") {
95 | repondre("Kisi bhi movie ka name likho");
96 | return;
97 | }
98 |
99 | try {
100 |
101 | const response = await axios.get(`http://www.omdbapi.com/?apikey=742b2d09&t=${arg}&plot=full`);
102 | const imdbData = response.data;
103 |
104 | let imdbInfo = "⚍⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚍\n";
105 | imdbInfo += " ``` 𝕀𝕄𝔻𝔹 𝕊𝔼𝔸ℝℂℍ```\n";
106 | imdbInfo += "⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎\n";
107 | imdbInfo += "🎬Title : " + imdbData.Title + "\n";
108 | imdbInfo += "📅year : " + imdbData.Year + "\n";
109 | imdbInfo += "⭐Assessment : " + imdbData.Rated + "\n";
110 | imdbInfo += "📆Release : " + imdbData.Released + "\n";
111 | imdbInfo += "⏳Runtime : " + imdbData.Runtime + "\n";
112 | imdbInfo += "🌀Genre : " + imdbData.Genre + "\n";
113 | imdbInfo += "👨🏻💻Director : " + imdbData.Director + "\n";
114 | imdbInfo += "✍writers : " + imdbData.Writer + "\n";
115 | imdbInfo += "👨actors : " + imdbData.Actors + "\n";
116 | imdbInfo += "📃Synopsis : " + imdbData.Plot + "\n";
117 | imdbInfo += "🌐Language : " + imdbData.Language + "\n";
118 | imdbInfo += "🌍Contry : " + imdbData.Country + "\n";
119 | imdbInfo += "🎖️Awards : " + imdbData.Awards + "\n";
120 | imdbInfo += "📦BoxOffice : " + imdbData.BoxOffice + "\n";
121 | imdbInfo += "🏙️Production : " + imdbData.Production + "\n";
122 | imdbInfo += "🌟score : " + imdbData.imdbRating + "\n";
123 | imdbInfo += "❎imdbVotes : " + imdbData.imdbVotes + "";
124 |
125 | zk.sendMessage(dest, {
126 | image: {
127 | url: imdbData.Poster,
128 | },
129 | caption: imdbInfo,
130 | }, {
131 | quoted: ms,
132 | });
133 | } catch (error) {
134 | repondre("An error occurred while searching IMDb.");
135 | }
136 | });
137 |
138 |
139 | france({
140 | nomCom: "emomix",
141 | categorie: "Conversion"
142 | }, async (dest, zk, commandeOptions) => {
143 | const { arg, repondre,ms , nomAuteurMessage } = commandeOptions;
144 |
145 | if (!arg[0] || arg.length !== 1) {
146 | repondre("Incorrect use. Example: .emojimix 😀;🥰");
147 | return;
148 | }
149 |
150 | // Divisez la chaîne en deux emojis en utilisant le point-virgule comme séparateur
151 | const emojis = arg.join(' ').split(';');
152 |
153 | if (emojis.length !== 2) {
154 | repondre("Please specify two emojis using a ';' as a separator.");
155 | return;
156 | }
157 |
158 | const emoji1 = emojis[0].trim();
159 | const emoji2 = emojis[1].trim();
160 |
161 | try {
162 | const axios = require('axios');
163 | const response = await axios.get(`https://levanter.onrender.com/emix?q=${emoji1}${emoji2}`);
164 |
165 | if (response.data.status === true) {
166 | // Si la requête a réussi, envoyez l'image résultante
167 |
168 | let stickerMess = new Sticker(response.data.result, {
169 | pack: FLASH-MD,
170 | type: StickerTypes.CROPPED,
171 | categories: ["🤩", "🎉"],
172 | id: "12345",
173 | quality: 70,
174 | background: "transparent",
175 | });
176 | const stickerBuffer2 = await stickerMess.toBuffer();
177 | zk.sendMessage(dest, { sticker: stickerBuffer2 }, { quoted: ms });
178 |
179 | } else {
180 | repondre("Unable to create emoji mix.");
181 | }
182 | } catch (error) {
183 | repondre("An error occurred while creating the emoji mix." + error );
184 | }
185 | });
186 |
--------------------------------------------------------------------------------
/framework/dl/ytdl-core.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | const _0x34a31e=_0x13d5;(function(_0x301181,_0x3013ff){const _0x2721f7=_0x13d5,_0x14b1ce=_0x301181();while(!![]){try{const _0x5b4b9a=parseInt(_0x2721f7(0x18b))/0x1*(parseInt(_0x2721f7(0x1a7))/0x2)+-parseInt(_0x2721f7(0x18a))/0x3*(-parseInt(_0x2721f7(0x1b5))/0x4)+-parseInt(_0x2721f7(0x1ca))/0x5*(parseInt(_0x2721f7(0x1a2))/0x6)+-parseInt(_0x2721f7(0x1a4))/0x7+-parseInt(_0x2721f7(0x18c))/0x8*(-parseInt(_0x2721f7(0x1a3))/0x9)+parseInt(_0x2721f7(0x1a8))/0xa+-parseInt(_0x2721f7(0x197))/0xb;if(_0x5b4b9a===_0x3013ff)break;else _0x14b1ce['push'](_0x14b1ce['shift']());}catch(_0x84fa4){_0x14b1ce['push'](_0x14b1ce['shift']());}}}(_0x1175,0xd1f29));const ytdl=require(_0x34a31e(0x194)),yts=require('youtube-yts'),readline=require(_0x34a31e(0x18e)),ffmpeg=require(_0x34a31e(0x1a9)),NodeID3=require(_0x34a31e(0x19b)),fs=require('fs'),{fetchBuffer}=require('./Function'),{randomBytes}=require(_0x34a31e(0x1ba)),ytIdRegex=/(?:youtube\.com\/\S*(?:(?:\/e(?:mbed))?\/|watch\?(?:\S*?&?v\=))|youtu\.be\/)([a-zA-Z0-9_-]{6,11})/;function _0x1175(){const _0x1a1b92=['publishDate','title','search','audioonly','contentLength','response','audioFrequency','683277SZBNXr','231241yIZDVU','32EyHqeI','end','readline','slice','.mp3','getInfo','size','Artist','youtubedl-core','write','WriteTags','8573257QNDVWQ','log','front\x20cover','mp4','node-id3','isArray','audioQuality','thumbnails','toString','test','videoDetails','9534oSRuDu','1507833SvdGib','2939083wHuctp','hex','stdout','2ckRuoz','12706240ClqGek','fluent-ffmpeg','downloadMusic','jpeg','./dustbin/','videoandaudio','audioBitrate','toFormat','length','libmp3lame','Album','audioChannels','Video\x20ID\x20or\x20YouTube\x20Url\x20is\x20required','12YrsGtT','url','exec','getVideoID','mp3','crypto','https://www.youtube.com/watch?v=','is\x20not\x20YouTube\x20URL','ownerChannelName','Title','statSync','audioCodec','buffer','now','author','qualityLabel','Cover\x20of\x20','videos','formats','save','name','2505AmYHZc','split','description','error','isYTUrl','image'];_0x1175=function(){return _0x1a1b92;};return _0x1175();}class YT{constructor(){}static ['isYTUrl']=_0x5c1c44=>{const _0x1c305b=_0x34a31e;return ytIdRegex[_0x1c305b(0x1a0)](_0x5c1c44);};static [_0x34a31e(0x1b8)]=_0x147189=>{const _0x1f7c5f=_0x34a31e;if(!this['isYTUrl'](_0x147189))throw new Error(_0x1f7c5f(0x1bc));return ytIdRegex[_0x1f7c5f(0x1b7)](_0x147189)[0x1];};static ['WriteTags']=async(_0x5bbc0f,_0x4fa490)=>{const _0x5a74dd=_0x34a31e;NodeID3[_0x5a74dd(0x195)]({'title':_0x4fa490[_0x5a74dd(0x1be)],'artist':_0x4fa490[_0x5a74dd(0x193)],'originalArtist':_0x4fa490['Artist'],'image':{'mime':_0x5a74dd(0x1ab),'type':{'id':0x3,'name':_0x5a74dd(0x199)},'imageBuffer':(await fetchBuffer(_0x4fa490['Image']))[_0x5a74dd(0x1c1)],'description':_0x5a74dd(0x1c5)+_0x4fa490['Title']},'album':_0x4fa490[_0x5a74dd(0x1b2)],'year':_0x4fa490['Year']||''},_0x5bbc0f);};static [_0x34a31e(0x185)]=async(_0x32bfbc,_0x421810={})=>{const _0x237a70=_0x34a31e,_0x39ab78=await yts[_0x237a70(0x185)]({'query':_0x32bfbc,'hl':'id','gl':'ID',..._0x421810});return _0x39ab78[_0x237a70(0x1c6)];};static [_0x34a31e(0x1aa)]=async _0x28bb3a=>{const _0x515909=_0x34a31e;try{const _0x550b41=Array[_0x515909(0x19c)](_0x28bb3a)?_0x28bb3a:await this['searchTrack'](_0x28bb3a),_0x45a5eb=_0x550b41[0x0],_0x1eab13=await ytdl['getInfo'](_0x515909(0x1bb)+_0x45a5eb['id'],{'lang':'id'});let _0x3b42a4=ytdl(_0x45a5eb['id'],{'filter':'audioonly','quality':0x8c}),_0x55f0ee=_0x515909(0x1ac)+randomBytes(0x3)[_0x515909(0x19f)](_0x515909(0x1a5))+_0x515909(0x190);_0x3b42a4['on']('error',_0xfe53f=>console['log'](_0xfe53f));const _0x531551=await new Promise(_0xe5eb3d=>{const _0x1c2412=_0x515909;ffmpeg(_0x3b42a4)[_0x1c2412(0x189)](0xac44)[_0x1c2412(0x1b3)](0x2)[_0x1c2412(0x1ae)](0x80)[_0x1c2412(0x1c0)](_0x1c2412(0x1b1))['audioQuality'](0x5)[_0x1c2412(0x1af)]('mp3')[_0x1c2412(0x1c8)](_0x55f0ee)['on'](_0x1c2412(0x18d),()=>_0xe5eb3d(_0x55f0ee));});return await this['WriteTags'](_0x531551,{'Title':_0x45a5eb[_0x515909(0x184)],'Artist':_0x45a5eb['artist'],'Image':_0x45a5eb[_0x515909(0x182)],'Album':_0x45a5eb['album'],'Year':_0x1eab13['videoDetails'][_0x515909(0x183)]['split']('-')[0x0]}),{'meta':_0x45a5eb,'path':_0x531551,'size':fs['statSync'](_0x55f0ee)['size']};}catch(_0x5e7c07){throw new Error(_0x5e7c07);}};static [_0x34a31e(0x19a)]=async(_0x20e34f,_0x115f8c=0x86)=>{const _0x48fe5a=_0x34a31e;try{if(!_0x20e34f)throw new Error(_0x48fe5a(0x1b4));const _0x5a5f16=this[_0x48fe5a(0x1ce)](_0x20e34f)?this[_0x48fe5a(0x1b8)](_0x20e34f):_0x20e34f,_0x17e11f=await ytdl[_0x48fe5a(0x191)](_0x48fe5a(0x1bb)+_0x5a5f16,{'lang':'id'}),_0x42019a=ytdl['chooseFormat'](_0x17e11f[_0x48fe5a(0x1c7)],{'format':_0x115f8c,'filter':_0x48fe5a(0x1ad)});return{'title':_0x17e11f[_0x48fe5a(0x1a1)]['title'],'thumb':_0x17e11f[_0x48fe5a(0x1a1)][_0x48fe5a(0x19e)][_0x48fe5a(0x18f)](-0x1)[0x0],'date':_0x17e11f['videoDetails'][_0x48fe5a(0x183)],'duration':_0x17e11f[_0x48fe5a(0x1a1)]['lengthSeconds'],'channel':_0x17e11f[_0x48fe5a(0x1a1)][_0x48fe5a(0x1bd)],'quality':_0x42019a[_0x48fe5a(0x1c4)],'contentLength':_0x42019a[_0x48fe5a(0x187)],'description':_0x17e11f[_0x48fe5a(0x1a1)][_0x48fe5a(0x1cc)],'videoUrl':_0x42019a[_0x48fe5a(0x1b6)]};}catch(_0x17410b){throw _0x17410b;}};static [_0x34a31e(0x1b9)]=async(_0x6f4243,_0x2fde14={},_0x412ec6=![])=>{const _0x3c00a1=_0x34a31e;try{if(!_0x6f4243)throw new Error(_0x3c00a1(0x1b4));_0x6f4243=this[_0x3c00a1(0x1ce)](_0x6f4243)?_0x3c00a1(0x1bb)+this[_0x3c00a1(0x1b8)](_0x6f4243):_0x6f4243;const {videoDetails:_0x30d0d3}=await ytdl['getInfo'](_0x6f4243,{'lang':'id'});let _0x140e98=ytdl(_0x6f4243,{'filter':_0x3c00a1(0x186),'quality':0x8c}),_0x4e3d41='./'+randomBytes(0x3)[_0x3c00a1(0x19f)](_0x3c00a1(0x1a5))+_0x3c00a1(0x190),_0x12f1d8;_0x140e98['once'](_0x3c00a1(0x188),()=>{const _0x386046=_0x3c00a1;_0x12f1d8=Date[_0x386046(0x1c2)]();}),_0x140e98['on'](_0x3c00a1(0x18d),()=>process[_0x3c00a1(0x1a6)]['write']('\x0a\x0a')),_0x140e98['on'](_0x3c00a1(0x1cd),_0x55f3c1=>console[_0x3c00a1(0x198)](_0x55f3c1));const _0xb5e7ec=await new Promise(_0x38ca9b=>{const _0xf975fc=_0x3c00a1;ffmpeg(_0x140e98)['audioFrequency'](0xac44)[_0xf975fc(0x1b3)](0x2)['audioBitrate'](0x80)[_0xf975fc(0x1c0)](_0xf975fc(0x1b1))[_0xf975fc(0x19d)](0x5)['toFormat'](_0xf975fc(0x1b9))['save'](_0x4e3d41)['on'](_0xf975fc(0x18d),()=>{_0x38ca9b(_0x4e3d41);});});return Object['keys'](_0x2fde14)[_0x3c00a1(0x1b0)]!==0x0&&await this[_0x3c00a1(0x196)](_0xb5e7ec,_0x2fde14),_0x412ec6&&await this[_0x3c00a1(0x196)](_0xb5e7ec,{'Title':_0x30d0d3[_0x3c00a1(0x184)],'Album':_0x30d0d3[_0x3c00a1(0x1c3)]['name'],'Year':_0x30d0d3[_0x3c00a1(0x183)][_0x3c00a1(0x1cb)]('-')[0x0],'Image':_0x30d0d3[_0x3c00a1(0x19e)][_0x3c00a1(0x18f)](-0x1)[0x0][_0x3c00a1(0x1b6)]}),{'meta':{'title':_0x30d0d3[_0x3c00a1(0x184)],'channel':_0x30d0d3[_0x3c00a1(0x1c3)][_0x3c00a1(0x1c9)],'seconds':_0x30d0d3['lengthSeconds'],'description':_0x30d0d3['description'],'image':_0x30d0d3[_0x3c00a1(0x19e)]['slice'](-0x1)[0x0][_0x3c00a1(0x1b6)]},'path':_0xb5e7ec,'size':fs[_0x3c00a1(0x1bf)](_0x4e3d41)[_0x3c00a1(0x192)]};}catch(_0x486df6){throw _0x486df6;}};}function _0x13d5(_0x6ff961,_0x2e5b5d){const _0x11757e=_0x1175();return _0x13d5=function(_0x13d504,_0x5cf5ee){_0x13d504=_0x13d504-0x182;let _0x420ac3=_0x11757e[_0x13d504];return _0x420ac3;},_0x13d5(_0x6ff961,_0x2e5b5d);}module['exports']=YT;
--------------------------------------------------------------------------------
/commands/Downloads.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | • GOLD MD WHATSAPP BOT •
6 |
7 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
8 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
9 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
10 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
11 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : GOLD 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
12 | * @𝗼𝘄𝗻𝗲𝗿: UMAR
13 |
14 | **/
15 |
16 |
17 |
18 |
19 |
20 | const _0x420ee0=_0x5ccb;(function(_0x2675be,_0x103386){const _0x58bb0b=_0x5ccb,_0x1549cd=_0x2675be();while(!![]){try{const _0x4b652e=-parseInt(_0x58bb0b(0x1cf))/0x1+parseInt(_0x58bb0b(0x1c8))/0x2*(-parseInt(_0x58bb0b(0x1a4))/0x3)+parseInt(_0x58bb0b(0x1cd))/0x4*(parseInt(_0x58bb0b(0x1b5))/0x5)+-parseInt(_0x58bb0b(0x194))/0x6*(-parseInt(_0x58bb0b(0x1cb))/0x7)+parseInt(_0x58bb0b(0x1af))/0x8*(-parseInt(_0x58bb0b(0x1c2))/0x9)+-parseInt(_0x58bb0b(0x1ba))/0xa*(parseInt(_0x58bb0b(0x1b8))/0xb)+-parseInt(_0x58bb0b(0x1b6))/0xc*(-parseInt(_0x58bb0b(0x199))/0xd);if(_0x4b652e===_0x103386)break;else _0x1549cd['push'](_0x1549cd['shift']());}catch(_0x1387a9){_0x1549cd['push'](_0x1549cd['shift']());}}}(_0xde14,0xc84fd));function _0x5ccb(_0x1087f1,_0x38d413){const _0xde14e9=_0xde14();return _0x5ccb=function(_0x5ccbe8,_0x4d58e9){_0x5ccbe8=_0x5ccbe8-0x194;let _0x412f8a=_0xde14e9[_0x5ccbe8];return _0x412f8a;},_0x5ccb(_0x1087f1,_0x38d413);}const {mediafireDl}=require(_0x420ee0(0x1bc)),{france}=require(_0x420ee0(0x198)),fs=require('fs'),getFBInfo=require(_0x420ee0(0x1cc)),{default:axios}=require('axios');france({'nomCom':'insta','categorie':'Download'},async(_0x4f0a8f,_0x1283f0,_0x5dcbf9)=>{const _0x1cf5c9=_0x420ee0,{ms:_0x186c2f,repondre:_0x15b50d,arg:_0x369fe5}=_0x5dcbf9;let _0x1448fc=_0x369fe5[_0x1cf5c9(0x1c1)]('\x20');if(!_0x369fe5[0x0]){_0x15b50d('Mujhe\x20instagram\x20ki\x20video\x20ka\x20link\x20do');return;};try{const _0x34e950=await fetch(_0x1cf5c9(0x1a8)+_0x1448fc),_0x1415e2=await _0x34e950[_0x1cf5c9(0x1ca)]();if(_0x1415e2&&_0x1415e2[_0x1cf5c9(0x19a)]&&_0x1415e2['result'][_0x1cf5c9(0x1c9)]&&_0x1415e2[_0x1cf5c9(0x19a)][_0x1cf5c9(0x1c9)][_0x1cf5c9(0x1be)]>0x0){const _0x14c3a7=_0x1415e2[_0x1cf5c9(0x19a)][_0x1cf5c9(0x1c9)][0x0];_0x14c3a7[_0x1cf5c9(0x1ac)]===_0x1cf5c9(0x1ab)?_0x1283f0[_0x1cf5c9(0x196)](_0x4f0a8f,{'video':{'url':_0x14c3a7['url']},'caption':_0x1cf5c9(0x1d2),'gifPlayback':![]},{'quoted':_0x186c2f}):_0x1283f0['sendMessage'](_0x4f0a8f,{'image':{'url':_0x14c3a7[_0x1cf5c9(0x1aa)]},'caption':'🔰\x20BY\x20||\x20GOLD\x20||\x20MD\x20🔰'});}else throw new Error('Mujhe\x20video\x20nahi\x20mil\x20rahi\x20sorry');}catch(_0x55f86c){console[_0x1cf5c9(0x1b0)](_0x1cf5c9(0x1d0),_0x55f86c);}}),france({'nomCom':'twitter','categorie':_0x420ee0(0x195)},async(_0x2eba4e,_0x37f532,_0x715501)=>{const _0x6d4dad=_0x420ee0,{ms:_0x217842,repondre:_0x1c600f,arg:_0x391c82}=_0x715501;let _0x775e9d=_0x391c82['join']('\x20');if(!_0x391c82[0x0]){_0x1c600f('Mujhe\x20twitter\x20ki\x20video\x20ka\x20Link\x20do\x20');return;}try{const _0x32dae2=await fetch(_0x6d4dad(0x1c0)+_0x775e9d),_0x3792d4=await _0x32dae2['json']();if(_0x3792d4&&_0x3792d4[_0x6d4dad(0x1c9)]&&_0x3792d4['data']['HD']){const _0x2eb2e5=_0x3792d4[_0x6d4dad(0x1c9)]['HD'];_0x37f532['sendMessage'](_0x2eba4e,{'video':{'url':_0x2eb2e5},'caption':'🔰\x20BY\x20||\x20GOLD\x20||\x20MD\x20🔰','gifPlayback':![]},{'quoted':_0x217842});}}catch(_0x1d1bf0){_0x1c600f(_0x6d4dad(0x1b9)+_0x1d1bf0);}}),france({'nomCom':_0x420ee0(0x1bb),'categorie':_0x420ee0(0x195)},async(_0x205e43,_0x3acb1c,_0x19f1be)=>{const _0x392d81=_0x420ee0,{ms:_0xf766be,repondre:_0x5c1fd7,arg:_0x15752a}=_0x19f1be;let _0x172b96=_0x15752a['join']('\x20');if(!_0x15752a[0x0]){_0x5c1fd7('Mujhe\x20Tiktok\x20video\x20ka\x20Link\x20do');return;};const _0x71017d=await fetch(_0x392d81(0x1c5)+_0x172b96),_0x4d1099=await _0x71017d[_0x392d81(0x1ca)]();try{if(_0x4d1099&&_0x4d1099['result']&&_0x4d1099[_0x392d81(0x19a)][_0x392d81(0x1aa)]&&_0x4d1099[_0x392d81(0x19a)][_0x392d81(0x1aa)][_0x392d81(0x19e)]){const _0x170522=_0x4d1099[_0x392d81(0x19a)][_0x392d81(0x1aa)][_0x392d81(0x19e)];_0x3acb1c[_0x392d81(0x196)](_0x205e43,{'video':{'url':_0x170522},'caption':_0x392d81(0x1b7),'gifPlayback':![]},{'quoted':_0xf766be});}}catch(_0x12986d){_0x5c1fd7('Mujh\x20se\x20apki\x20file\x20download\x20nahi\x20ho\x20rahi.\x20\x0a\x20'+_0x12986d);}}),france({'nomCom':_0x420ee0(0x1a5),'categorie':_0x420ee0(0x195)},async(_0x212b7e,_0x452e70,_0x5a3e91)=>{const _0x65a797=_0x420ee0,{ms:_0x595354,repondre:_0x2502b2,arg:_0x379b65}=_0x5a3e91;let _0x17d2a8=_0x379b65['join']('\x20');if(!_0x379b65[0x0]){_0x2502b2(_0x65a797(0x1a2));return;};try{const _0x33899d=await mediafireDl(_0x17d2a8);if(_0x33899d[0x0]['size'][_0x65a797(0x1a3)]('MB')[0x0]>=0x64)return m[_0x65a797(0x1b4)](_0x65a797(0x1a6));await _0x452e70[_0x65a797(0x196)](_0x212b7e,{'document':{'url':_0x33899d[0x0][_0x65a797(0x19b)]},'fileName':_0x33899d[0x0][_0x65a797(0x1ae)],'mimetype':_0x33899d[0x0][_0x65a797(0x1a9)],'caption':_0x65a797(0x19f)+_0x33899d[0x0][_0x65a797(0x1ae)]},{'quoted':_0x595354});}catch(_0x282bc6){_0x2502b2('Mujh\x20se\x20apki\x20file\x20download\x20nahi\x20ho\x20rahi.\x20\x0a\x20'+_0x282bc6);}}),france({'nomCom':_0x420ee0(0x197),'categorie':_0x420ee0(0x195),'reaction':_0x420ee0(0x1d1)},async(_0x5d9e2e,_0x172b43,_0x4338a5)=>{const _0x2aee50=_0x420ee0,{repondre:_0x2ff6f1,ms:_0x5d788e,arg:_0x1f3aa8}=_0x4338a5;if(!_0x1f3aa8[0x0]){_0x2ff6f1('Mujhe\x20facebook\x20video\x20ka\x20Link\x20do!');return;}const _0x1ef9d5=_0x1f3aa8[_0x2aee50(0x1c1)]('\x20');try{getFBInfo(_0x1ef9d5)[_0x2aee50(0x1b3)](_0x34516a=>{const _0x3523e2=_0x2aee50;let _0x4cd419=_0x3523e2(0x1c4)+_0x34516a['title']+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20Lien:\x20'+_0x34516a[_0x3523e2(0x1aa)]+_0x3523e2(0x1a1);_0x172b43['sendMessage'](_0x5d9e2e,{'image':{'url':_0x34516a[_0x3523e2(0x1b1)]},'caption':_0x4cd419},{'quoted':_0x5d788e}),_0x172b43[_0x3523e2(0x196)](_0x5d9e2e,{'video':{'url':_0x34516a['hd']},'caption':_0x3523e2(0x1a0)},{'quoted':_0x5d788e});})[_0x2aee50(0x1c7)](_0x54302c=>{const _0x21623b=_0x2aee50;console['log'](_0x21623b(0x1a7),_0x54302c),_0x2ff6f1(_0x21623b(0x1b2));});}catch(_0xfb5e9f){console[_0x2aee50(0x1b0)](_0x2aee50(0x1c6),_0xfb5e9f),_0x2ff6f1(_0x2aee50(0x1ce),_0xfb5e9f);}}),france({'nomCom':_0x420ee0(0x1bd),'categorie':_0x420ee0(0x195),'reaction':_0x420ee0(0x1d1)},async(_0xc0adf,_0x31a944,_0x2973ca)=>{const _0x3be628=_0x420ee0,{repondre:_0x559883,ms:_0x338af7,arg:_0x53173f}=_0x2973ca;if(!_0x53173f[0x0]){_0x559883(_0x3be628(0x1bf));return;}const _0x4a885b=_0x53173f[_0x3be628(0x1c1)]('\x20');try{getFBInfo(_0x4a885b)[_0x3be628(0x1b3)](_0x1c5e02=>{const _0x5400dc=_0x3be628;let _0x2d6279='\x0a\x20\x20\x20\x20\x20\x20\x20\x20titre:\x20'+_0x1c5e02[_0x5400dc(0x19c)]+_0x5400dc(0x1d3)+_0x1c5e02[_0x5400dc(0x1aa)]+_0x5400dc(0x1a1);_0x31a944[_0x5400dc(0x196)](_0xc0adf,{'image':{'url':_0x1c5e02[_0x5400dc(0x1b1)]},'caption':_0x2d6279},{'quoted':_0x338af7}),_0x31a944[_0x5400dc(0x196)](_0xc0adf,{'video':{'url':_0x1c5e02['sd']},'caption':_0x5400dc(0x1ad)},{'quoted':_0x338af7});})[_0x3be628(0x1c7)](_0x394bb5=>{const _0x5b18ae=_0x3be628;console['log'](_0x5b18ae(0x1a7),_0x394bb5),_0x559883(_0x394bb5);});}catch(_0x2d2707){console['error'](_0x3be628(0x1c3),_0x2d2707),_0x559883(_0x3be628(0x19d),_0x2d2707);}});function _0xde14(){const _0x449952=['fb','../framework/france','30718493WuOEMI','result','link','title','Yeh\x20video\x20mujh\x20se\x20download\x20nahi\x20ho\x20rahi\x20sorry.','nowm','🔰\x20BY\x20||\x20GOLD\x20||\x20MD\x20🔰:\x20','🔰\x20BY\x20||\x20GOLD\x20||\x20MD\x20🔰','\x0a\x20\x20\x20\x20\x20\x20','Mujhe\x20mediafire\x20ki\x20file\x20ka\x20link\x20do\x0a\x0amediafire\x20