├── gif └── gif.js ├── auth └── author.json ├── commands ├── TKM.js ├── Reboot.js ├── Img.js ├── Ping.js ├── Tempmails.js ├── Fancy.js ├── View-once.js ├── Events.js ├── GroupQuotes.js ├── Warn.js ├── Sticker-Search.js ├── TTs.js ├── Sc.js ├── Channel.js ├── Canvacord.js ├── StickCMD.js ├── Alive.js ├── Heroku.js ├── Git.js ├── Weather.js ├── Uptime.js ├── General.js ├── Profile.js ├── Devinette.js ├── Weeb.js ├── Reactions.js ├── Parole.js ├── YT-search.js ├── YouTube.js ├── Menu.js ├── A.I.js ├── Anime.js └── Games.js ├── media ├── media.js ├── rm.gif ├── antibot.gif └── remover.gif ├── Takudzwa_M-Manjiro-Sano.js ├── 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.txt ├── set.env.Example ├── Dockerfile ├── 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 └── app.json /gif/gif.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /auth/author.json: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /commands/TKM.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /media/media.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Takudzwa_M-Manjiro-Sano.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /media/rm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cod3Uchiha/Manjiro-Sano-md/HEAD/media/rm.gif -------------------------------------------------------------------------------- /framework/dl/dl.json: -------------------------------------------------------------------------------- 1 | { 2 | "auther" : "UMAR", 3 | "regards" : "CODED BY UMAR" 4 | } 5 | -------------------------------------------------------------------------------- /media/antibot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cod3Uchiha/Manjiro-Sano-md/HEAD/media/antibot.gif -------------------------------------------------------------------------------- /media/remover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cod3Uchiha/Manjiro-Sano-md/HEAD/media/remover.gif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /auth 2 | /set.env 3 | /package-lock.json 4 | /node_modules 5 | /store.json 6 | /audio.mp3 7 | -------------------------------------------------------------------------------- /heroku.yml.txt: -------------------------------------------------------------------------------- 1 | build: 2 | docker: 3 | worker: Dockerfile 4 | run: 5 | worker: npm run flashmd 6 | -------------------------------------------------------------------------------- /set.env.Example: -------------------------------------------------------------------------------- 1 | OWNER_NAME="France King" 2 | PREFIX="-" 3 | PUBLIC_MODE='non' 4 | AUTO_READ_STATUS="non" 5 | AUTO_DOWNLOAD_STATUS="oui" 6 | BOT_NAME= "FLASH-MD" 7 | IMAGE_MENU= "https://static.animecorner.me/2023/08/op2.jpg" 8 | NUMERO_OWNER= "" 9 | OWNER_NAME= "᚛France King᚜" 10 | DATABASE_URL= "" 11 | WARN_COUNT= "" 12 | OPENAI_API_KEY= "" 13 | STARTING_BOT_MESSAGE='yes' 14 | ANTI_DELETE_MESSAGE='yes' 15 | -------------------------------------------------------------------------------- /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/Cod3Uchiha/Manjiro-Sano-md.git /root/Cod3Uchiha 13 | WORKDIR /root/Cod3Uchiha/ 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 | -------------------------------------------------------------------------------- /commands/Reboot.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | 4 | Manjiro-Sano-md 5 | by Cod3Uchiha 6 | Takudzwa Mlambo 7 | 8 | **/ 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | const {france}=require("../framework/france") 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | france({nomCom:"reboot",categorie:"Mods",reaction:"👨🏿💼"},async(dest,z,com)=>{ 26 | 27 | 28 | 29 | const{repondre,ms,dev,superUser}=com; 30 | 31 | if(!superUser) 32 | { 33 | return repondre("This command is for owner only"); 34 | } 35 | 36 | const {exec}=require("child_process") 37 | 38 | repondre("*Rebooting...*"); 39 | 40 | exec("pm2 restart all"); 41 | 42 | 43 | 44 | 45 | 46 | 47 | }) 48 | -------------------------------------------------------------------------------- /commands/Img.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Manjiro-Sano-md 4 | by Cod3Uchiha 5 | Takudzwa Mlambo 6 | 7 | **/ 8 | 9 | 10 | const {france} = require('../framework/france'); 11 | var gis = require('g-i-s'); 12 | 13 | 14 | france({ 15 | nomCom: "img", 16 | categorie: "Search", 17 | reaction: "📷" 18 | }, 19 | async (dest, zk, commandeOptions) => { 20 | const { repondre, ms, arg } = commandeOptions; 21 | 22 | if (!arg[0]) { 23 | repondre('which image ? !'); 24 | return; 25 | } 26 | 27 | const searchTerm = arg.join(" "); 28 | //repondre("termes " +searchTerm); 29 | gis(searchTerm,envoiImage); 30 | 31 | function envoiImage(e,r) 32 | { 33 | if(e){repondre("oups une error ")}else{for(var a=0;a<5;a++){zk.sendMessage(dest,{image:{url:r[a].url}},{quoted:ms});}} 34 | 35 | } 36 | 37 | //gis(searchTerm,envoiImage); 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /commands/Ping.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Manjiro-Sano-md 4 | by Cod3Uchiha 5 | Takudzwa Mlambo 6 | 7 | **/ 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | const { france } = require("../framework/france"); 20 | const moment = require("moment-timezone"); 21 | const { default: axios } = require('axios'); 22 | //const conf = require('../set'); 23 | 24 | 25 | france({ nomCom: 'ping', 26 | desc: 'To check ping', 27 | Categorie: 'General', 28 | reaction: '🚨', 29 | fromMe: 'true', 30 | 31 | 32 | }, 33 | async (dest, zk, commandeOptions) => { 34 | const { ms, arg, repondre } = commandeOptions; 35 | const { start} = new Date().getTime() 36 | return repondre('*Pong!!*\n ```' + 2000 + '``` *ms*') 37 | const { end } = new Date().getTime() 38 | await zok.sendMessage('*Pong!*\n ```' + (end - start) + '``` *ms*') 39 | } 40 | ) 41 | -------------------------------------------------------------------------------- /commands/Tempmails.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Manjiro-Sano-md 4 | by Cod3Uchiha 5 | Takudzwa Mlambo 6 | 7 | **/ 8 | 9 | 10 | 11 | 12 | 13 | "use strict"; 14 | Object.defineProperty(exports, "__esModule", { value: true }); 15 | const { france } = require("../framework/france"); 16 | france({ nomCom: "tempmail", reaction: "😌", nomFichier: __filename }, async (dest, zk, commandeOptions) => { 17 | console.log("Commande saisie !!!s"); 18 | let z = '*𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉* Temporary emails,Powered by *Cod3Uchiha* \n\n ' + "Click the links below to create unlimited TEMPORARY Emails. Powered by *Cod3Uchiha.*\n\n"; 19 | let d = ' 1️⃣ https://tempumail.com\n\n 2️⃣ https://etempmail.com\n\n 3️⃣ https://ghostmail.one\n\n 4️⃣ https://tempmailid.com'; 20 | let varmess = z + d; 21 | var img = 'https://telegra.ph/file/2645fb9536dad7eda6aee.jpg'; 22 | await zk.sendMessage(dest, { image: { url: img }, caption: varmess }); 23 | //console.log("montest") 24 | }); 25 | 26 | -------------------------------------------------------------------------------- /commands/Fancy.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | 5 | Manjiro-Sano-md 6 | by Cod3Uchiha 7 | Takudzwa Mlambo 8 | 9 | **/ 10 | 11 | 12 | 13 | 14 | const { france } = require("../framework/france"); 15 | const fancy = require("../commands/Styles"); 16 | 17 | france({ nomCom: "fancy", categorie: "Fun", reaction: "☑️" }, async (dest, zk, commandeOptions) => { 18 | const { arg, repondre, prefixe } = commandeOptions; 19 | const id = arg[0]?.match(/\d+/)?.join(''); 20 | const text = arg.slice(1).join(" "); 21 | 22 | try { 23 | if (id === undefined || text === undefined) { 24 | return await repondre(`\nExample : ${prefixe}fancy 10 Manjiro-Sano-md\n` + String.fromCharCode(8206).repeat(4001) + fancy.list('Manjiro-Sano-md', fancy)); 25 | } 26 | 27 | const selectedStyle = fancy[parseInt(id) - 1]; 28 | if (selectedStyle) { 29 | return await repondre(fancy.apply(selectedStyle, text)); 30 | } else { 31 | return await repondre('_Style introuvable :(_'); 32 | } 33 | } catch (error) { 34 | console.error(error); 35 | return await repondre('_Une erreur s\'est produite :(_'); 36 | } 37 | }); 38 | -------------------------------------------------------------------------------- /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("*Mentionne a view once media* .");} 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("this message is not on view once .") 34 | } 35 | 36 | 37 | 38 | }) 39 | 40 | 41 | 42 | 43 | /** 44 | 45 | Manjiro-Sano-md 46 | by Cod3Uchiha 47 | Takudzwa Mlambo 48 | 49 | **/ 50 | -------------------------------------------------------------------------------- /commands/Events.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Manjiro-Sano-md 4 | by Cod3Uchiha 5 | Takudzwa Mlambo 6 | 7 | **/ 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | const { france } = require('../framework/france'); 17 | const { attribuerUnevaleur } = require('../bdd/welcome'); 18 | 19 | async function events(nomCom) { 20 | france({ 21 | nomCom: nomCom, 22 | categorie: 'Group' 23 | }, async (dest, zk, commandeOptions) => { 24 | const { ms, arg, repondre, superUser, verifAdmin } = commandeOptions; 25 | 26 | if (verifAdmin || superUser) { 27 | if (!arg[0] || arg.join(' ') === ' ') { 28 | repondre(nomCom + ' ' + ' on to active and ' + ' ' + nomCom + ' ' + 'off to put off'); 29 | } else { 30 | if (arg[0] === 'on' || arg[0] === 'off') { 31 | 32 | await attribuerUnevaleur(dest, nomCom, arg[0]); 33 | repondre( nomCom + "is Successfully Activated" + arg[0]); 34 | } else { 35 | repondre('type on to activate or off to put it off'); 36 | } 37 | } 38 | } else { 39 | repondre('You can\'t use this commands '); 40 | } 41 | }); 42 | } 43 | 44 | // Appel de la fonction events pour les valeurs 'welcome' et 'goodbye' 45 | events('welcome'); 46 | events('goodbye'); 47 | events('antipromote'); 48 | events('antidemote') ; 49 | -------------------------------------------------------------------------------- /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; -------------------------------------------------------------------------------- /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/GroupQuotes.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Manjiro-Sano-md 4 | by Cod3Uchiha 5 | Takudzwa Mlambo 6 | 7 | **/ 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | const { france } = require('../framework/france'); 17 | 18 | france({ nomCom: 'quote', categorie: 'Group' }, async (dest, zk, commandeOptions) => { 19 | const { ms, repondre, verifGroupe, arg } = commandeOptions; 20 | if (!verifGroupe) { 21 | repondre('This Command works in groups only!!!'); 22 | return; 23 | } 24 | 25 | if (!arg[0]) { 26 | try { 27 | fetch('https://animechan.xyz/api/random') 28 | .then((response) => response.json()) 29 | .then(async (quote) => { 30 | repondre(`*𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉 Quotes* 31 | 32 | 🎬 Anime: ${quote.anime} 33 | 👤 Character: ${quote.character} 34 | 💬 Quote: ${quote.quote} 35 | 36 | Powered by *Cod3Uchiha-TKM*`); 37 | }); 38 | } catch (e) { 39 | repondre('Erreur lors de la génération de la citation : ' + e.message); 40 | } 41 | } else { 42 | const query = arg.join(' '); 43 | 44 | try { 45 | fetch('https://animechan.xyz/api/random/character?name=' + query) 46 | .then((response) => response.json()) 47 | .then(async (quote) => { 48 | repondre(`𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉 49 | 50 | 🎬 Anime: ${quote.anime} 51 | 👤 Character: ${quote.character} 52 | 💬 Quote: ${quote.quote} 53 | 54 | Powered by *𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉*`); 55 | }); 56 | } catch (e) { 57 | repondre('Erreur lors de la génération de la citation : ' + e.message); 58 | } 59 | } 60 | }); 61 | -------------------------------------------------------------------------------- /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/Warn.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Manjiro-Sano-md 4 | by Cod3Uchiha 5 | Takudzwa Mlambo 6 | 7 | **/ 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | const { france } = require('../framework/france'); 16 | const {ajouterUtilisateurAvecWarnCount , getWarnCountByJID , resetWarnCountByJID} = require('../bdd/warn') 17 | const s = require("../set") 18 | 19 | 20 | france( 21 | { 22 | nomCom : 'warn', 23 | categorie : 'Group' 24 | 25 | },async (dest,zk,commandeOptions) => { 26 | 27 | const {ms , arg, repondre,superUser,verifGroupe,verifAdmin , msgRepondu , auteurMsgRepondu} = commandeOptions; 28 | if(!verifGroupe ) {repondre('this is a group commands') ; return}; 29 | 30 | if(verifAdmin || superUser) { 31 | if(!msgRepondu){repondre('reply a message of user to warn'); return}; 32 | 33 | if (!arg || !arg[0] || arg.join('') === '') { 34 | await ajouterUtilisateurAvecWarnCount(auteurMsgRepondu) 35 | let warn = await getWarnCountByJID(auteurMsgRepondu) 36 | let warnlimit = s.WARN_COUNT 37 | 38 | if( warn >= warnlimit ) { await repondre('this user reach limit of warning , so i kick him/her'); 39 | zk.groupParticipantsUpdate(dest, [auteurMsgRepondu], "remove") 40 | } else { 41 | 42 | var rest = warnlimit - warn ; 43 | repondre(`this user is warned , rest before kick : ${rest} `) 44 | } 45 | } else if ( arg[0] === 'reset') { await resetWarnCountByJID(auteurMsgRepondu) 46 | 47 | repondre("Warn count is reset for this user")} else ( repondre('reply to a user by typing .warn ou .warn reset')) 48 | 49 | } else { 50 | repondre('you are not admin') 51 | } 52 | 53 | }); 54 | -------------------------------------------------------------------------------- /commands/Sticker-Search.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Manjiro-Sano-md 4 | by Cod3Uchiha 5 | Takudzwa Mlambo 6 | 7 | **/ 8 | 9 | 10 | 11 | 12 | 13 | 14 | const axios = require("axios"); 15 | const { Sticker, StickerTypes } = require("wa-sticker-formatter"); 16 | const {france} = require("../framework/france"); 17 | 18 | france({ 19 | nomCom: "stickersearch", 20 | categorie: 'Search', 21 | reaction: "🍁" 22 | }, 23 | async (dest, zk, commandeOptions) => { 24 | const { repondre, ms, arg, nomAuteurMessage } = commandeOptions; 25 | 26 | if (!arg[0]) { 27 | repondre("where is the request ? !"); 28 | return; 29 | } 30 | 31 | const gifSearchTerm = arg.join(" "); 32 | const tenorApiKey = "AIzaSyCyouca1_KKy4W_MG1xsPzuku5oa8W358c"; // Remplacez par votre clé d'API Tenor 33 | 34 | try { for ( i = 0 ; i < 5 ; i++) { 35 | const gif = await axios.get( 36 | `https://tenor.googleapis.com/v2/search?q=${gifSearchTerm}&key=${tenorApiKey}&client_key=my_project&limit=8&media_filter=gif` 37 | ); 38 | 39 | const gifUrl = gif.data.results[i].media_formats.gif.url; 40 | 41 | 42 | 43 | 44 | // Assurez-vous de remplacer les valeurs manquantes dans la création du sticker 45 | const packname = nomAuteurMessage; // Remplacez par le nom de votre pack de stickers 46 | 47 | const stickerMess = new Sticker(gifUrl, { 48 | pack: packname, 49 | author: '𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉', 50 | type: StickerTypes.FULL, 51 | categories: ["🤩", "🎉"], 52 | id: "12345", 53 | quality: 60, 54 | background: "transparent", 55 | }); 56 | const stickerBuffer2 = await stickerMess.toBuffer(); 57 | zk.sendMessage(dest, { sticker: stickerBuffer2 }, { quoted: ms }); } 58 | } catch (error) { 59 | console.error("Erreur lors de la recherche de stickers :", error); 60 | repondre("Erreur lors de la recherche de stickers."); 61 | } 62 | }); 63 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Manjiro Sano md* 2 | 3 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
15 |
16 | ***
17 |
18 | # *_GET • [SESSION ID](https://cod3session-00187e8a3f27.herokuapp.com/) • FOR Manjiro Sano md_*
19 |
20 | ***
21 |
22 |
23 | # thank you for using Manjiro-Sano-md
24 |
25 | ***
26 |
27 | # *_NOW • [DEPLOY](https://dashboard.heroku.com/new?button-url=https://github.com/Cod3Uchiha/Manjiro-Sano-md&template=https://github.com/Cod3Uchiha/Manjiro-Sano-md) • Manjiro Sano md ON HEROKU_*
28 |
29 | ***
30 |
31 | # *_FOLLOW • [WHATSAPP CHANNEL](https://whatsapp.com/channel/0029VaKjSra9WtC0kuJqvl0g) •_*
32 |
33 | ***
34 |
35 | # *_DEVELOPER_*
36 |
37 | # _=> • [Cod3Uchiha](https://github.com/Cod3Uchiha) • <=_
38 |
39 | # *_Acknowledgements_*
40 |
41 | # Special thanks to Franceking • https://github.com/Franceking1 thank you so much for your support
42 |
43 | # Venocyber_Tech • https://github.com/kingjux Thanks for your help and support Bro
44 |
45 | # Thank you, D4X-UMAR • https://github.com/D4X-UMAR
46 |
--------------------------------------------------------------------------------
/commands/TTs.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | Manjiro-Sano-md
5 | by Cod3Uchiha
6 | Takudzwa Mlambo
7 |
8 | **/
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | const googleTTS = require('google-tts-api');
18 | const {france} = require("../framework/france");
19 |
20 |
21 | france( {
22 | nomCom : "dit",
23 | categorie : "tts",
24 | reaction : "👄" },
25 | async(dest,zk, commandeOptions)=> {
26 |
27 | const {ms,arg,repondre} = commandeOptions;
28 | if (!arg[0]) {repondre("Insert a word");return} ;
29 | const mots = arg.join(" ")
30 |
31 | const url = googleTTS.getAudioUrl( mots, {
32 | lang: 'fr',
33 | slow: false,
34 | host: 'https://translate.google.com',
35 | });
36 | console.log(url);
37 | zk.sendMessage(dest, { audio: { url:url},mimetype:'audio/mp4' }, { quoted: ms,ptt: true });
38 |
39 |
40 |
41 | }
42 | ) ;
43 |
44 | france( {
45 | nomCom : "itta",
46 | categorie : "tts",
47 | reaction : "👄" },
48 | async(dest,zk, commandeOptions)=> {
49 |
50 | const {ms,arg,repondre} = commandeOptions;
51 | if (!arg[0]) {repondre("Insert a word");return} ;
52 | const mots = arg.join(" ")
53 |
54 | const url = googleTTS.getAudioUrl( mots, {
55 | lang: 'ja',
56 | slow: false,
57 | host: 'https://translate.google.com',
58 | });
59 | console.log(url);
60 | zk.sendMessage(dest, { audio: { url:url},mimetype:'audio/mp4' }, { quoted: ms,ptt: true });
61 |
62 |
63 |
64 | }
65 | ) ;
66 |
67 | france( {
68 | nomCom : "say",
69 | categorie : "tts",
70 | reaction : "👄" },
71 | async(dest,zk, commandeOptions)=> {
72 |
73 | const {ms,arg,repondre} = commandeOptions;
74 | if (!arg[0]) {repondre("Insert a word");return} ;
75 | const mots = arg.join(" ")
76 |
77 | const url = googleTTS.getAudioUrl( mots, {
78 | lang: 'en',
79 | slow: false,
80 | host: 'https://translate.google.com',
81 | });
82 | console.log(url);
83 | zk.sendMessage(dest, { audio: { url:url},mimetype:'audio/mp4' }, { quoted: ms,ptt: true });
84 |
85 |
86 |
87 | }
88 | ) ;
89 |
--------------------------------------------------------------------------------
/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;
--------------------------------------------------------------------------------
/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": "Manjiro-Sano-md",
3 | "version": "1.0.0",
4 | "description": "",
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 | "Manjiro-Sano-md",
16 | "whatsapp",
17 | "whatsapp-bot",
18 | "Cod3Uchiha"
19 | ],
20 | "author": "UMAR",
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:Luffy2ndAccount/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 |
--------------------------------------------------------------------------------
/commands/Sc.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | Manjiro-Sano-md
6 | by Cod3Uchiha
7 | Takudzwa Mlambo
8 |
9 | **/
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | 'use strict';function _0x5a91(){const _0xa2080d=['https://api.github.com/repos/Cod3Uchiha/Manjiro-Sano-md','\x20Fork\x20and\x20star\X20Manjiro-Sano-md.*\x0a\x0a*','20DhyKKs','stargazers_count','58482eDSGXw','31CVqpLl','\x0a*A\x20Total\x20of\x20','sendMessage','2013615ACRzSN','Could\x20not\x20fetch\x20data','forks','../framework/france','3368547DReqgE','5qnwJaV','7774984fIeqTg','stars','json','defineProperty','2450814QEWoxp','log','120972rAqnMV','253DldEuf','fmd','176068bFSyOt','14cQwpkf','\x20People\x20have\x20starred\x20it\x20as\x20a\x20sign\x20of\x20Loving\x20it._\x0a\x0a*Keep\x20Using\x20Manjiro-Sano-md_\x20\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_Made\x20With_\x20love','__esModule'];_0x5a91=function(){return _0xa2080d;};return _0x5a91();}const _0x33577f=_0x2672;function _0x2672(_0x1727da,_0x3c7296){const _0x5a911f=_0x5a91();return _0x2672=function(_0x2672dc,_0x3d31fb){_0x2672dc=_0x2672dc-0x8f;let _0x131c88=_0x5a911f[_0x2672dc];return _0x131c88;},_0x2672(_0x1727da,_0x3c7296);}(function(_0x5a29e5,_0x42f47f){const _0xaf16b9=_0x2672,_0x3c18bb=_0x5a29e5();while(!![]){try{const _0x9e6c68=parseInt(_0xaf16b9(0x93))/0x1*(-parseInt(_0xaf16b9(0x92))/0x2)+parseInt(_0xaf16b9(0x96))/0x3+parseInt(_0xaf16b9(0xa5))/0x4*(parseInt(_0xaf16b9(0x9b))/0x5)+parseInt(_0xaf16b9(0xa0))/0x6*(parseInt(_0xaf16b9(0xa6))/0x7)+parseInt(_0xaf16b9(0x9c))/0x8+-parseInt(_0xaf16b9(0x9a))/0x9*(parseInt(_0xaf16b9(0x90))/0xa)+parseInt(_0xaf16b9(0xa3))/0xb*(-parseInt(_0xaf16b9(0xa2))/0xc);if(_0x9e6c68===_0x42f47f)break;else _0x3c18bb['push'](_0x3c18bb['shift']());}catch(_0x1454ba){_0x3c18bb['push'](_0x3c18bb['shift']());}}}(_0x5a91,0x96aad));Object[_0x33577f(0x9f)](exports,_0x33577f(0xa8),{'value':!![]});const {france}=require(_0x33577f(0x99));france({'nomCom':_0x33577f(0xa4),'reaction':'😌'},async(_0x3b5c5b,_0x36008e,_0x2f66cd)=>{const _0x448cfe=_0x33577f,_0x5ca71f=_0x448cfe(0xa9),_0x15d782='https://telegra.ph/file/7cc6e55a2ea3d8cd7f30e.jpg',_0x20e692=await fetch(_0x5ca71f),_0x3283f0=await _0x20e692[_0x448cfe(0x9e)]();if(_0x3283f0){const _0x5a2f21={'stars':_0x3283f0[_0x448cfe(0x91)],'forks':_0x3283f0['forks_count']},_0x263678=_0x448cfe(0x94)+_0x5a2f21[_0x448cfe(0x98)]+_0x448cfe(0x8f)+_0x5a2f21[_0x448cfe(0x9d)]+_0x448cfe(0xa7);await _0x36008e[_0x448cfe(0x95)](_0x3b5c5b,{'image':{'url':_0x15d782},'caption':_0x263678});}else console[_0x448cfe(0xa1)](_0x448cfe(0x97));});
18 |
--------------------------------------------------------------------------------
/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 || 'FLASH-MD-WA-BOT;;;=>',
11 | PREFIXE: process.env.PREFIX || "+",
12 | OWNER_NAME: process.env.OWNER_NAME || "Cod3Uchiha",
13 | NUMERO_OWNER : process.env.OWNER_NUMBER || "263785028126",
14 |
15 | AUTO_READ_STATUS: process.env.AUTO_READ_STATUS || "yes",
16 | AUTOREAD_MESSAGES: process.env.AUTO_READ_MESSAGES || "yes",
17 | CHATBOT: process.env.CHAT_BOT || "yes",
18 | AUTO_DOWNLOAD_STATUS: process.env.AUTO_DOWNLOAD_STATUS || 'no',
19 | BOT : process.env.BOT_NAME || 'FLASH-MD',
20 | OPENAI_API_KEY : process.env.OPENAI_API_KEY || '',
21 | URL : process.env.BOT_MENU_LINKS || 'https://static.animecorner.me/2023/08/op2.jpg',
22 | MODE: process.env.PUBLIC_MODE || "no",
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 || '3' ,
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 |
--------------------------------------------------------------------------------
/commands/Channel.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | Manjiro-Sano-md
6 | by Cod3Uchiha
7 | Takudzwa Mlambo
8 |
9 | **/
10 |
11 |
12 |
13 |
14 |
15 | 'use strict';const _0x3da531=_0x425c;(function(_0xd6778e,_0x4fd384){const _0x4060a1=_0x425c,_0x4ea66a=_0xd6778e();while(!![]){try{const _0x468670=parseInt(_0x4060a1(0xda))/0x1*(parseInt(_0x4060a1(0xdc))/0x2)+-parseInt(_0x4060a1(0xd6))/0x3*(parseInt(_0x4060a1(0xe3))/0x4)+parseInt(_0x4060a1(0xe1))/0x5*(-parseInt(_0x4060a1(0xdb))/0x6)+parseInt(_0x4060a1(0xd4))/0x7+-parseInt(_0x4060a1(0xd8))/0x8*(-parseInt(_0x4060a1(0xe0))/0x9)+-parseInt(_0x4060a1(0xd9))/0xa*(parseInt(_0x4060a1(0xd0))/0xb)+parseInt(_0x4060a1(0xde))/0xc;if(_0x468670===_0x4fd384)break;else _0x4ea66a['push'](_0x4ea66a['shift']());}catch(_0x1832ab){_0x4ea66a['push'](_0x4ea66a['shift']());}}}(_0x432a,0x841fc));function _0x432a(){const _0x400937=['../framework/france','332JEbIkU','__esModule','mon\x20test','https://whatsapp.com/channel/0029VaKjSra9WtC0kuJqvl0g','242qHBbds','log','sendMessage','wagroup','6421492ueaOAC','Commande\x20saisie\x20!!!s','3183aZuRXV','Hello\x20👋\x0a\x0aClick\x20The\x20link\x20below\x20to\x20Join\x20the\x20OFFICIAL\x20*𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉*\x20WhatsApp\x20Channel.\x0a\x0a','376czhBYk','489460cnPZmY','4639gIXFAQ','342nNNTal','130POBlcP','https://whatsapp.com/channel/0029VaKjSra9WtC0kuJqvl0g','16708284tdgbGX','Hello\x20👋\x0a\x0aClick\x20The\x20link\x20below\x20to\x20Join\x20the\x20OFFICIAL\x20*𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉*\x20WhatsApp\x20Group\x0a\x0a','25731fkOrko','91190TNizar'];_0x432a=function(){return _0x400937;};return _0x432a();}Object['defineProperty'](exports,_0x3da531(0xe4),{'value':!![]});function _0x425c(_0x4478f2,_0x3985d4){const _0x432a5c=_0x432a();return _0x425c=function(_0x425cf5,_0x461007){_0x425cf5=_0x425cf5-0xce;let _0x5a4d1d=_0x432a5c[_0x425cf5];return _0x5a4d1d;},_0x425c(_0x4478f2,_0x3985d4);}const {france}=require(_0x3da531(0xe2));france({'nomCom':_0x3da531(0xd3),'reaction':'😌','nomFichier':__filename},async(_0x178233,_0x56dc7d,_0x27aadc)=>{const _0x2207a7=_0x3da531;console[_0x2207a7(0xd1)](_0x2207a7(0xd5));let _0x933d8e=_0x2207a7(0xdf),_0x14ca84=_0x2207a7(0xdd),_0x1a7224=_0x933d8e+_0x14ca84;var _0x172263='https://telegra.ph/file/2645fb9536dad7eda6aee.jpg';await _0x56dc7d[_0x2207a7(0xd2)](_0x178233,{'image':{'url':_0x172263},'caption':_0x1a7224});}),console[_0x3da531(0xd1)](_0x3da531(0xce)),france({'nomCom':'channel','reaction':'🤍','nomFichier':__filename},async(_0xe689b2,_0x262c60,_0x5a0d3a)=>{const _0x4c4871=_0x3da531;console['log'](_0x4c4871(0xd5));let _0x2f31fc=_0x4c4871(0xd7),_0x29242c=_0x4c4871(0xcf),_0x3a5888=_0x2f31fc+_0x29242c;var _0x4e7804='https://telegra.ph/file/2645fb9536dad7eda6aee.jpg';await _0x262c60[_0x4c4871(0xd2)](_0xe689b2,{'image':{'url':_0x4e7804},'caption':_0x3a5888});}),console[_0x3da531(0xd1)]('mon\x20test');
16 |
--------------------------------------------------------------------------------
/commands/Canvacord.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | Manjiro-Sano-md
4 | by Cod3Uchiha
5 | Takudzwa Mlambo
6 |
7 | **/
8 |
9 |
10 |
11 |
12 |
13 | const { france } = require("../framework/france");
14 | const canvacord = require("canvacord");
15 | const {uploadImageToImgur} = require("../framework/imgur")
16 |
17 | // Generic function to create a canvacord order
18 | function createCanvacordCommand(commandName, canvacordFunction) {
19 | france({
20 | nomCom: commandName,
21 | categorie: "Image-Edit",
22 | reaction: "🎉"
23 | }, async (origineMessage, zk, commandeOptions) => {
24 | const { ms, msgRepondu, auteurMsgRepondu } = commandeOptions;
25 | const clientId = 'b40a1820d63cd4e' ;
26 |
27 | try {
28 | let img;
29 | if (msgRepondu) {
30 |
31 | if (msgRepondu.imageMessage) {
32 | const image = await zk.downloadAndSaveMediaMessage(msgRepondu.imageMessage)
33 | img = await uploadImageToImgur(image, clientId )
34 | } else {
35 |
36 | img = await zk.profilePictureUrl(auteurMsgRepondu, 'image'); }
37 | } else {
38 | img = "https://i.pinimg.com/564x/84/09/12/840912dd744e6662ab211b8070b5d84c.jpg";
39 | }
40 |
41 | const result = await canvacordFunction(img);
42 |
43 | await zk.sendMessage(origineMessage, { image: result }, { quoted: ms });
44 | } catch (error) {
45 | console.error(`Error when ordering "${commandName}":`, error);
46 | }
47 | });
48 | }
49 |
50 | // Créer des commandes avec différentes fonctions canvacord
51 | createCanvacordCommand("shit", canvacord.Canvacord.shit);
52 | createCanvacordCommand("wasted", canvacord.Canvacord.wasted);
53 | createCanvacordCommand("wanted", canvacord.Canvacord.wanted);
54 | createCanvacordCommand("trigger", canvacord.Canvacord.trigger);
55 | createCanvacordCommand("trash", canvacord.Canvacord.trash);
56 | createCanvacordCommand("rip", canvacord.Canvacord.rip);
57 | createCanvacordCommand("sepia", canvacord.Canvacord.sepia);
58 | createCanvacordCommand("rainbow", canvacord.Canvacord.rainbow);
59 | createCanvacordCommand("hitler", canvacord.Canvacord.hitler);
60 | createCanvacordCommand("invert", canvacord.Canvacord.invert);
61 | createCanvacordCommand("jail", canvacord.Canvacord.jail);
62 | createCanvacordCommand("affect", canvacord.Canvacord.affect);
63 | createCanvacordCommand("beautiful", canvacord.Canvacord.beautiful);
64 | createCanvacordCommand("blur", canvacord.Canvacord.blur);
65 |
66 | createCanvacordCommand("circle", canvacord.Canvacord.circle);
67 | createCanvacordCommand("facepalm", canvacord.Canvacord.facepalm);
68 | createCanvacordCommand("greyscale", canvacord.Canvacord.greyscale);
69 | createCanvacordCommand("joke", canvacord.Canvacord.jokeOverHead);
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/commands/StickCMD.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | Manjiro-Sano-md
5 | by Cod3Uchiha
6 | Takudzwa Mlambo
7 |
8 | **/
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | const {france }= require ('../framework/france') ;
22 | const {addstickcmd, deleteCmd, getCmdById, inStickCmd , getAllStickCmds} = require('../bdd/stickcmd') ;
23 |
24 |
25 |
26 | france(
27 | {
28 | nomCom : 'setcmd',
29 | categorie : 'stickcmd'
30 |
31 | }, async (dest,zk,commandeOptions) => {
32 |
33 | const {ms , arg, repondre,superUser , msgRepondu} = commandeOptions;
34 |
35 | if (!superUser) { repondre('you can\'t use this command') ; return} ;
36 |
37 | if(msgRepondu && msgRepondu.stickerMessage ) {
38 |
39 | if(!arg || !arg[0]) { repondre('put the name of the command') ; return} ;
40 |
41 |
42 | await addstickcmd(arg[0].toLowerCase() , msgRepondu.stickerMessage.url ) ;
43 |
44 | repondre('Stick cmd save successfully')
45 |
46 | } else {
47 |
48 | repondre('mention a sticker')
49 | }
50 |
51 | }) ;
52 |
53 | france(
54 | {
55 | nomCom: 'delcmd',
56 | categorie: 'stickcmd'
57 | },
58 | async (dest, zk, commandeOptions) => {
59 |
60 | const { ms, arg, repondre, superUser } = commandeOptions;
61 |
62 | if (!superUser) {
63 | repondre('only Mods can use this command');
64 | return;
65 | }
66 |
67 | if (!arg || !arg[0]) {
68 | repondre('put the name of the command that you want to delete');
69 | return;
70 | }
71 |
72 | const cmdToDelete = arg[0];
73 |
74 |
75 | try {
76 | await deleteCmd(cmdToDelete.toLowerCase());
77 | repondre(`the command ${cmdToDelete} is deleted successfully.`);
78 | } catch {
79 | repondre(`the command ${cmdToDelete} don't exist`);
80 | }
81 | }
82 | );
83 |
84 |
85 | france(
86 | {
87 | nomCom: 'allcmd',
88 | categorie: 'stickcmd'
89 | },
90 | async (dest, zk, commandeOptions) => {
91 | const { repondre, superUser } = commandeOptions;
92 |
93 | if (!superUser) {
94 | repondre('only Mods can use this command');
95 | return;
96 | }
97 |
98 | const allCmds = await getAllStickCmds();
99 |
100 | if (allCmds.length > 0) {
101 | const cmdList = allCmds.map(cmd => cmd.cmd).join(', ');
102 | repondre(`*List of all stickcmd :*
103 | ${cmdList}`);
104 | } else {
105 | repondre('No stickcmd save');
106 | }
107 | }
108 | );
109 |
--------------------------------------------------------------------------------
/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 | Manjiro-Sano-md
6 | by Cod3Uchiha
7 | Takudzwa Mlambo
8 |
9 | **/
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | const { france } = require('../framework/france');
19 | const {addOrUpdateDataInAlive , getDataFromAlive} = require('../bdd/alive')
20 | const moment = require("moment-timezone");
21 | const s = require(__dirname + "/../set");
22 |
23 | france(
24 | {
25 | nomCom : 'alive',
26 | categorie : 'General'
27 |
28 | },async (dest,zk,commandeOptions) => {
29 |
30 | const {ms , arg, repondre,superUser} = commandeOptions;
31 |
32 | const data = await getDataFromAlive();
33 |
34 | if (!arg || !arg[0] || arg.join('') === '') {
35 |
36 | if(data) {
37 |
38 | const {message , lien} = data;
39 |
40 |
41 | var mode = "public";
42 | if ((s.MODE).toLocaleLowerCase() != "yes") {
43 | mode = "private";
44 | }
45 |
46 |
47 |
48 | moment.tz.setDefault('Africa/Harare');
49 |
50 | // Créer une date et une heure en EAT
51 | const temps = moment().format('HH:mm:ss');
52 | const date = moment().format('DD/MM/YYYY');
53 |
54 | const alivemsg = `
55 | *Owner* : ${s.OWNER_NAME}
56 | *Mode* : ${mode}
57 | *Date* : ${date}
58 | *Time* : ${temps}
59 |
60 | ${message}
61 |
62 |
63 | *hello,I'm Manjiro-Sano-md,I was Made by Cod3Uchiha*`
64 |
65 | if (lien.match(/\.(mp4|gif)$/i)) {
66 | try {
67 | zk.sendMessage(dest, { video: { url: lien }, caption: alivemsg }, { quoted: ms });
68 | }
69 | catch (e) {
70 | console.log("🥵🥵 Menu erreur " + e);
71 | repondre("🥵🥵 Menu erreur " + e);
72 | }
73 | }
74 | // Checking for .jpeg or .png
75 | else if (lien.match(/\.(jpeg|png|jpg)$/i)) {
76 | try {
77 | zk.sendMessage(dest, { image: { url: lien }, caption: alivemsg }, { quoted: ms });
78 | }
79 | catch (e) {
80 | console.log("🥵🥵 Menu erreur " + e);
81 | repondre("🥵🥵 Menu erreur " + e);
82 | }
83 | }
84 | else {
85 |
86 | repondre(alivemsg);
87 |
88 | }
89 |
90 | } else {
91 | if(!superUser) { repondre("there is no alive for this bot") ; return};
92 |
93 | await repondre("You have not yet saved your alive, to do this; enter after alive your message and your image or video link in this context: .alive message;lien");
94 | repondre("don't do fake things :)")
95 | }
96 | } else {
97 |
98 | if(!superUser) { repondre ("Only the owner can modify the alive") ; return};
99 |
100 |
101 | const texte = arg.join(' ').split(';')[0];
102 | const tlien = arg.join(' ').split(';')[1];
103 |
104 |
105 |
106 | await addOrUpdateDataInAlive(texte , tlien)
107 |
108 | repondre('message alive refresh successfully')
109 |
110 | }
111 | });
112 |
--------------------------------------------------------------------------------
/commands/Heroku.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | Manjiro-Sano-md
5 | by Cod3Uchiha
6 | Takudzwa Mlambo
7 |
8 | **/
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | const { france } = require('../framework/france');
22 | const s = require('../set')
23 |
24 |
25 | france(
26 | {
27 | nomCom : "setvar",
28 | categorie : "heroku"
29 | }, async (dest , zk , commandeOptions) =>{
30 |
31 | const {ms,repondre,superUser , arg} = commandeOptions ;
32 |
33 | if(!superUser){repondre('only Mods can use this commande');return};
34 | if(!arg[0] || !(arg.join('').split('='))) {repondre('Bad format ; Exemple of using :\nSetvar OWNER_NAME=France King');return};
35 |
36 | const text = arg.join(" ")
37 | const Heroku = require("heroku-client");
38 |
39 | const heroku = new Heroku({
40 | token: s.HEROKU_APY_KEY,
41 | });
42 |
43 | let baseURI = "/apps/" + s.HEROKU_APP_NAME;
44 | await heroku.patch(baseURI + "/config-vars", {
45 | body: {
46 | [text.split('=')[0]]: text.split('=')[1],
47 | },
48 | });
49 | await repondre('That Heroku var is changing,The bot is rebooting....')
50 | }
51 | );
52 |
53 | france(
54 | {
55 | nomCom : "allvar",
56 | categorie : "heroku"
57 | }, async (dest , zk , commandeOptions) =>{
58 |
59 | const {ms,repondre,superUser , arg} = commandeOptions ;
60 |
61 | if(!superUser){repondre('only mods can use this commande');return};
62 |
63 | const Heroku = require("heroku-client");
64 |
65 | const heroku = new Heroku({
66 | token: s.HEROKU_APY_KEY,
67 | });
68 | let baseURI = "/apps/" + s.HEROKU_APP_NAME;
69 |
70 | let h = await heroku.get(baseURI+'/config-vars')
71 | let str = '*All my HEROKU Vars*\n\n'
72 | for (vr in h) {
73 | str+= '⚡ *'+vr+'* '+'= '+h[vr]+'\n'
74 | }
75 | repondre(str)
76 |
77 |
78 | }
79 |
80 | );
81 |
82 |
83 | france(
84 | {
85 | nomCom : "getvar",
86 | categorie : "heroku"
87 | }, async (dest , zk , commandeOptions) =>{
88 |
89 | const {ms,repondre,superUser , arg} = commandeOptions ;
90 |
91 | if(!superUser){repondre('Only Mods can use this command');return};
92 | if(!arg[0]) {repondre('insert the variable name in capital letter'); return} ;
93 |
94 | try {
95 | const Heroku = require("heroku-client");
96 |
97 | const heroku = new Heroku({
98 | token: s.HEROKU_API_KEY,
99 | });
100 | let baseURI = "/apps/" + s.HEROKU_APP_NAME;
101 | let h = await heroku.get(baseURI+'/config-vars')
102 | for (vr in h) {
103 | if( arg.join(' ') ===vr ) return repondre( vr+'= '+h[vr]) ;
104 | }
105 |
106 | } catch(e) {repondre('Error' + e)}
107 |
108 | });
109 |
--------------------------------------------------------------------------------
/commands/Git.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | /**
5 |
6 | Manjiro-Sano-md
7 | by Cod3Uchiha
8 | Takudzwa Mlambo
9 |
10 | **/
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | const _0x47fd9d=_0x2731;function _0x2731(_0x54bb73,_0x4a9794){const _0x94595e=_0x9459();return _0x2731=function(_0x2731fd,_0x51cd80){_0x2731fd=_0x2731fd-0x88;let _0x16472c=_0x94595e[_0x2731fd];return _0x16472c;},_0x2731(_0x54bb73,_0x4a9794);}(function(_0x4eef97,_0x4f4aaa){const _0x3133d8=_0x2731,_0x2315cd=_0x4eef97();while(!![]){try{const _0x114dd6=parseInt(_0x3133d8(0x8c))/0x1*(-parseInt(_0x3133d8(0x8d))/0x2)+-parseInt(_0x3133d8(0xb2))/0x3*(parseInt(_0x3133d8(0xa7))/0x4)+parseInt(_0x3133d8(0x93))/0x5+-parseInt(_0x3133d8(0x97))/0x6*(-parseInt(_0x3133d8(0xac))/0x7)+-parseInt(_0x3133d8(0x96))/0x8+parseInt(_0x3133d8(0x88))/0x9+parseInt(_0x3133d8(0xb5))/0xa;if(_0x114dd6===_0x4f4aaa)break;else _0x2315cd['push'](_0x2315cd['shift']());}catch(_0x3589bf){_0x2315cd['push'](_0x2315cd['shift']());}}}(_0x9459,0x869cc));const axios=require(_0x47fd9d(0x8f)),fs=require('fs'),{france}=require(_0x47fd9d(0x9f)+_0x47fd9d(0x9e)),{writeFile}=require('fs/promise'+'s');france({'nomCom':'github','reaction':'📃','categorie':_0x47fd9d(0x99)},async(_0x52e003,_0x14d9f6,_0x5f1e4d)=>{const _0x2433ef=_0x47fd9d,{repondre:_0x3b1d82,prefixe:_0x4fdb82,arg:_0x4f7595,ms:_0x506254}=_0x5f1e4d,_0x3c7f3f=_0x4f7595[_0x2433ef(0xb3)]('\x20');if(!_0x3c7f3f)return _0x3b1d82(_0x2433ef(0x8a)+_0x2433ef(0x92)+'ub\x20usernam'+_0x2433ef(0x98)+_0x4fdb82+('github\x20fra'+_0x2433ef(0x90)));const _0x5d3fd3=await fetch(_0x2433ef(0xb0)+_0x2433ef(0x95)+_0x2433ef(0xa4)+_0x3c7f3f),_0x546dd2=await _0x5d3fd3['json'](),_0x5892a1=_0x546dd2['id'],_0x9d02ae=_0x546dd2[_0x2433ef(0xa0)],_0x406595=_0x546dd2[_0x2433ef(0xae)],_0x3a4d0f=_0x546dd2[_0x2433ef(0xb1)],_0x34623f=_0x546dd2[_0x2433ef(0x8e)],_0x5b8e0e=_0x546dd2[_0x2433ef(0xa2)],_0x24d738=_0x546dd2['email'],_0x3a22e7=_0x546dd2[_0x2433ef(0x8b)],_0x170599=_0x546dd2[_0x2433ef(0xa8)],_0x1ada1e=_0x546dd2[_0x2433ef(0xaa)],_0x1f7a0c=_0x546dd2[_0x2433ef(0xad)],_0x86d2d1=_0x546dd2['following'];await _0x3b1d82('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2433ef(0xaf)+_0x2433ef(0x9a)+_0x2433ef(0xb6)+_0x2433ef(0xa9)+_0x5892a1+'\x0a🔖\x20Name\x20:\x20'+_0x9d02ae+('\x0a🔖\x20Usernam'+_0x2433ef(0x91))+_0x406595+'\x0a✨\x20Bio\x20:\x20'+_0x3a4d0f+(_0x2433ef(0xa3)+_0x2433ef(0xa1))+_0x34623f+('\x0a📍\x20Locatio'+_0x2433ef(0x9c))+_0x5b8e0e+(_0x2433ef(0xa6)+'\x20')+_0x24d738+_0x2433ef(0x9b)+_0x3a22e7+(_0x2433ef(0x89)+_0x2433ef(0xa5))+_0x170599+(_0x2433ef(0x94)+_0x2433ef(0xab))+_0x1ada1e+(_0x2433ef(0xb4)+'rs\x20:\x20')+_0x1f7a0c+('\x0a🫶\x20Followi'+_0x2433ef(0x9d))+_0x86d2d1);});function _0x9459(){const _0x58d79d=['gists_url','Gists\x20:\x20','28742lARhMh','followers','login','°GITHUB\x20US','https://ap','bio','72VBCjLB','join','\x0a👪\x20Followe','11314890TqfiZK','\x20\x20\x20\x20\x20\x20\x0a🚩\x20I','5700663nCMSTU','\x0a🔓\x20Public\x20','Give\x20me\x20a\x20','blog','401aSYSyB','1138goMozx','company','axios','nceking1','e\x20:\x20','valid\x20gith','908945Dtstry','\x0a🔐\x20Public\x20','i.github.c','5523856gaTXXQ','726jpkjPH','e\x20like:\x20','Search','ER\x20INFO°\x0a\x20','\x0a📰\x20Blog\x20:\x20','n\x20:\x20','ng\x20:\x20','rk/france','../framewo','name','\x20:\x20','location','\x0a🏢\x20Company','om/users/','Repo\x20:\x20','\x0a📧\x20Email\x20:','162248nQcgPh','repos_url','d\x20:\x20'];_0x9459=function(){return _0x58d79d;};return _0x9459();}
24 |
--------------------------------------------------------------------------------
/commands/Weather.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | Manjiro-Sano-md
5 | by Cod3Uchiha
6 | Takudzwa Mlambo
7 |
8 | **/
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 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*°Powered\x20by\x20FLASH-MD*','Give\x20me\x20location...','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));});
21 |
--------------------------------------------------------------------------------
/commands/Uptime.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | Manjiro-Sano-md
6 | by Cod3Uchiha
7 | Takudzwa Mlambo
8 |
9 | **/
10 |
11 |
12 |
13 |
14 | 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','\x20𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉','3402272uAfaoR','rk/france','\x20m,\x20','provide\x20a\x20','link...','\x20minute,\x20','i.maher-zu','misc/sstab','Powered\x20by','General','length','axios','ezone','3478971wpCuhE','../framewo','=720x720','join','&dimension','488njddVu','s\x20website','161cusiZC','387480QdYCLz','e-now','floor','sendMessag','moment-tim','To\x20check\x20r','*_Uptime\x20o','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)+'f\x20𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉'+':\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});});
15 |
--------------------------------------------------------------------------------
/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};
--------------------------------------------------------------------------------
/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();}
--------------------------------------------------------------------------------
/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};
--------------------------------------------------------------------------------
/commands/General.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | Manjiro-Sano-md
5 | by Cod3Uchiha
6 | Takudzwa Mlambo
7 |
8 | **/
9 |
10 |
11 |
12 |
13 | const { france } = require("../framework/france");
14 | const {getAllSudoNumbers,isSudoTableNotEmpty} = require("../bdd/sudo")
15 | const conf = require("../set");
16 |
17 | france({ nomCom: "owner", categorie: "General", reaction: "💞" }, async (dest, zk, commandeOptions) => {
18 | const { ms , mybotpic } = commandeOptions;
19 |
20 | const thsudo = await isSudoTableNotEmpty()
21 |
22 | if (thsudo) {
23 | let msg = `*My Super-User*\n
24 | *Owner Number*\n :
25 | - 🌟 @${conf.NUMERO_OWNER}
26 |
27 | ------ *other sudos* -----\n`
28 |
29 | let sudos = await getAllSudoNumbers()
30 |
31 | for ( const sudo of sudos) {
32 | if (sudo) { // Vérification plus stricte pour éliminer les valeurs vides ou indéfinies
33 | sudonumero = sudo.replace(/[^0-9]/g, '');
34 | msg += `- 💼 @${sudonumero}\n`;
35 | } else {return}
36 |
37 | } const ownerjid = conf.NUMERO_OWNER.replace(/[^0-9]/g) + "@s.whatsapp.net";
38 | const mentionedJid = sudos.concat([ownerjid])
39 | console.log(sudos);
40 | console.log(mentionedJid)
41 | zk.sendMessage(
42 | dest,
43 | {
44 | image : { url : mybotpic() },
45 | caption : msg,
46 | mentions : mentionedJid
47 | }
48 | )
49 | } else {
50 | const vcard =
51 | 'BEGIN:VCARD\n' + // metadata of the contact card
52 | 'VERSION:3.0\n' +
53 | 'FN:' + conf.OWNER_NAME + '\n' + // full name
54 | 'ORG:undefined;\n' + // the organization of the contact
55 | 'TEL;type=CELL;type=VOICE;waid=' + conf.NUMERO_OWNER + ':+' + conf.NUMERO_OWNER + '\n' + // WhatsApp ID + phone number
56 | 'END:VCARD';
57 | zk.sendMessage(dest, {
58 | contacts: {
59 | displayName: conf.OWNER_NAME,
60 | contacts: [{ vcard }],
61 | },
62 | },{quoted:ms});
63 | }
64 | });
65 |
66 | france({ nomCom: "developer", categorie: "General", reaction: "🐐" }, async (dest, zk, commandeOptions) => {
67 | const { ms, mybotpic } = commandeOptions;
68 |
69 | const devs = [
70 | { nom: "Tkm", numero: "263785028126" },
71 | { nom: "Cod3Uchiha", numero: "263775571820" },
72 | // Ajoute d'autres développeurs ici avec leur nom et numéro
73 | ];
74 |
75 | let message = "Hello 👋\n *Welcome to 𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉!*\n\n*✦━━◆CREATOR INFO◆━━✦*\n\n\n *◇NAME: _Takudzwa-Mlambo_*\n*◇AGE: 17*\n*◇LOCATION: _On Earth_*\n*◇BELIEVER: YES ✅*\n*◇FRIENDLY: slightly ✅*\n*◇EGOISTIC: _YEEES ✅_*\n*◇FAV Game: _Mortal-kombat_*\n*◇INSTAGRAM: https://instagram.com/Cod3Uchiha*\n*◇Github: https://github.com/Cod3Uchiha*\n\n______________________________\n\n*💙KEEP USING Manjiro-Sano-md🤍*\n\n\n_The following are my contacts_:\n:";
76 | for (const dev of devs) {
77 | message += `----------------\n• ${dev.nom} : https://wa.me/${dev.numero}\n`;
78 | }
79 |
80 | var lien = mybotpic()
81 | if (lien.match(/\.(mp4|gif)$/i)) {
82 | try {
83 | zk.sendMessage(dest, { video: { url: lien }, caption: message }, { quoted: ms });
84 | }
85 | catch (e) {
86 | console.log("🥵🥵 Menu erreur " + e);
87 | repondre("🥵🥵 Menu erreur " + e);
88 | }
89 | }
90 | // Vérification pour .jpeg ou .png
91 | else if (lien.match(/\.(jpeg|png|jpg)$/i)) {
92 | try {
93 | zk.sendMessage(dest, { image: { url: lien }, caption:message }, { quoted: ms });
94 | }
95 | catch (e) {
96 | console.log("🥵🥵 Menu erreur " + e);
97 | repondre("🥵🥵 Menu erreur " + e);
98 | }
99 | }
100 | else {
101 | repondre(lien)
102 | repondre("link error");
103 |
104 | }
105 | });
106 |
107 | france({ nomCom: "support", categorie: "General" }, async (dest, zk, commandeOptions) => {
108 | const { ms, repondre, auteurMessage, } = commandeOptions;
109 |
110 | repondre("look on pm sir ")
111 | await zk.sendMessage(auteurMessage,{text : `https://wa.me/263785028126`},{quoted :ms})
112 |
113 | })
114 |
115 |
--------------------------------------------------------------------------------
/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};
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name":"Manjiro-Sano-md",
3 | "description":"Lazmiii•) You have to fill in this box with thought and understanding because you won't be able to change it on WhatsApp again, okay",
4 | "keywords":["bot","node","baileys","whatsapp"],
5 | "logo":"https://telegra.ph/file/2645fb9536dad7eda6aee.jpg",
6 | "repository":"https://github.com/Cod3Uchiha/Manjiro-Sano-md",
7 | "succes_url":"/",
8 | "stack":"container",
9 | "env":{
10 | "PREFIX":
11 | {
12 | "description":"Enter a symbol for your bot's prefix, e.g. . , ! ? Enter only one symbol",
13 | "value":".",
14 | "required":true
15 | },
16 | "AUTO_READ_MESSAGES":
17 | {
18 | "description":"If you want your bot to mark messages as read, enter |yes|, otherwise enter |no|",
19 | "value":"no",
20 | "required":true
21 | },
22 | "AUTO_READ_STATUS":
23 | {
24 | "description":"If you want your bot to auto-see status updates, enter |yes|, otherwise enter |no|",
25 | "value":"yes",
26 | "required":true
27 | }, "AUTO_DOWNLOAD_STATUS":
28 | {
29 | "description":"If you want your bot to save and send status updates to your inbox, enter |yes|, otherwise enter |no|",
30 | "value":"no",
31 | "required":true
32 | }
33 | ,
34 | "PM_PERMIT" :
35 | {
36 | "description":"If you want anyone to be able to use your bot in private messages, enter |no|, otherwise enter |no|",
37 | "value":"no",
38 | "required":true
39 | }
40 | ,
41 | "BOT_NAME" : {
42 |
43 | "description":"Enter your bot's name",
44 | "value":"Manjiro-Sano-md",
45 | "required":true
46 |
47 | } ,
48 | "BOT_MENU_LINKS" : {
49 |
50 | "description":"Bot ke menu ki pic ka Link Likho",
51 | "value":"https://telegra.ph/file/2645fb9536dad7eda6aee.jpg",
52 | "required":false
53 |
54 | },
55 | "PUBLIC_MODE":
56 | {
57 | "description":"If you want anyone to be able to use your bot, enter |yes|, otherwise enter |no|",
58 | "value":"yes",
59 | "required":true
60 | }
61 | ,
62 | "HEROKU_API_KEY": {
63 | "description": "Enter your Heroku API key",
64 | "required":true
65 | },
66 | "HEROKU_APP_NAME": {
67 | "description": "Enter the name of your Heroku app",
68 | "required" :true
69 | }
70 | ,
71 | "SESSION_ID":
72 | {
73 | "description":"Enter your bot's session ID",
74 | "value":"",
75 | "required": true
76 |
77 | },
78 | "OWNER_NAME":
79 | {
80 |
81 | "desc": "Enter your name",
82 | "required": true,
83 | "value": "Cod3Uchiha"
84 | },
85 | "OWNER_NUMBER":
86 | {
87 |
88 | "desc": "Enter your phone number (without the + sign, e.g. 263xxxxxx)",
89 | "required":true,
90 | "value": "263785028126"
91 | },
92 | "WARN_COUNT":
93 | {
94 | "desc": "Enter the number of warnings before a user is blocked or removed from a group",
95 | "required": true,
96 | "value": "2"
97 | },
98 | "CHAT_BOT":
99 | {
100 | "desc": "If you want your bot to respond to messages, enter |yes|, otherwise enter |no|",
101 | "required": true,
102 | "value": "no"
103 | },
104 | "STARTING_BOT_MESSAGE":
105 | {
106 | "description": "If you want a starting message to be sent when the bot is connected, enter |yes|, otherwise enter |no|",
107 | "required": true,
108 | "value": "no"
109 | },
110 | "PRESENCE":{
111 | "description":"Enter |online| to always show the bot as online, |typing| to show 'is typing...', |recording| to show 'is recording...', or leave blank for no presence",
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/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};
--------------------------------------------------------------------------------
/commands/Profile.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | /**
5 |
6 | Manjiro-Sano-md
7 | by Cod3Uchiha
8 | Takudzwa Mlambo
9 |
10 | **/
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | const _0x171415=_0xe699;(function(_0x5ef40d,_0x5b2006){const _0x19b304=_0xe699,_0x220cd9=_0x5ef40d();while(!![]){try{const _0x2e2a9e=-parseInt(_0x19b304(0xe7))/0x1*(-parseInt(_0x19b304(0xe2))/0x2)+-parseInt(_0x19b304(0xf4))/0x3+-parseInt(_0x19b304(0xe0))/0x4+parseInt(_0x19b304(0xe4))/0x5*(-parseInt(_0x19b304(0xe3))/0x6)+-parseInt(_0x19b304(0xf6))/0x7*(-parseInt(_0x19b304(0xed))/0x8)+-parseInt(_0x19b304(0xe6))/0x9+-parseInt(_0x19b304(0xf5))/0xa*(-parseInt(_0x19b304(0xe9))/0xb);if(_0x2e2a9e===_0x5b2006)break;else _0x220cd9['push'](_0x220cd9['shift']());}catch(_0x261c61){_0x220cd9['push'](_0x220cd9['shift']());}}}(_0x426c,0xe6053));const JavaScriptObfuscator=require('javascript-obfuscator'),{france}=require(_0x171415(0xef)),conf=require(_0x171415(0xea)),{jidDecode}=require(_0x171415(0xe5));function _0x426c(){const _0x192e34=['User','sendMessage','https://static.animecorner.me/2023/08/op2.jpg','*Name\x20:*\x20','3529806buThpx','37010540EngXOZ','20216jVQHHK','whois','image','status','Here\x20is\x20the\x20Profile\x20picture','*Nom\x20:*\x20','profilePictureUrl','Something\x20is\x20wrong,\x20check\x20if\x20your\x20code\x20is\x20logical\x20and\x20has\x20the\x20correct\x20syntax','General','3196424sYiBEp','obfuscate','1167190thbpqA','12Dckovg','2022985OMizia','@whiskeysockets/baileys','14297400pIrzXS','1aqrqYT','\x0a*Status\x20:*\x0a','11cDiDBu','../set','After\x20the\x20command,\x20provide\x20a\x20valid\x20JavaScript\x20code\x20for\x20encryption','split','2856kwBQAE','fetchStatus','../framework/france'];_0x426c=function(){return _0x192e34;};return _0x426c();}function _0xe699(_0x2381c8,_0x75df18){const _0x426c7a=_0x426c();return _0xe699=function(_0xe69910,_0x22860d){_0xe69910=_0xe69910-0xdd;let _0x538dc9=_0x426c7a[_0xe69910];return _0x538dc9;},_0xe699(_0x2381c8,_0x75df18);}france({'nomCom':'enc','categorie':_0x171415(0xdf)},async(_0x2baa80,_0x12d2ed,_0x40f610)=>{const _0x5791b0=_0x171415,{ms:_0x599e28,arg:_0x9c36c6,repondre:_0x1e727e,auteurMessage:_0x5cc637,nomAuteurMessage:_0x3661db,msgRepondu:_0x423289,auteurMsgRepondu:_0x230a21}=_0x40f610;try{let _0x3c9eb7=_0x9c36c6['join']('\x20');if(!_0x9c36c6[0x0]){_0x1e727e(_0x5791b0(0xeb));return;};const _0x112a10=JavaScriptObfuscator[_0x5791b0(0xe1)](_0x3c9eb7,{'compact':![],'controlFlowFlattening':!![],'controlFlowFlatteningThreshold':0x1,'numbersToExpressions':!![],'simplify':!![],'stringArrayShuffle':!![],'splitStrings':!![],'stringArrayThreshold':0x1});await _0x1e727e(_0x112a10['getObfuscatedCode']());}catch{_0x1e727e(_0x5791b0(0xde));}}),france({'nomCom':_0x171415(0xf7),'categorie':_0x171415(0xf0)},async(_0x3b6a45,_0x2ccf4a,_0x3ca19c)=>{const _0x3c18d8=_0x171415,{ms:_0x1ed492,arg:_0x505ef5,repondre:_0xa2ed9b,auteurMessage:_0x5be85d,nomAuteurMessage:_0x3a9bd2,msgRepondu:_0x1ec102,auteurMsgRepondu:_0x27cca5}=_0x3ca19c;let _0x280e3a=null,_0x4a5a8f=null;if(!_0x1ec102){_0x280e3a=_0x5be85d,_0x4a5a8f=_0x3a9bd2;try{ppUrl=await _0x2ccf4a[_0x3c18d8(0xdd)](_0x280e3a,_0x3c18d8(0xf8));}catch{ppUrl=_0x3c18d8(0xf2);};const _0x43dea5=await _0x2ccf4a[_0x3c18d8(0xee)](_0x280e3a);mess={'image':{'url':ppUrl},'caption':_0x3c18d8(0xfb)+_0x4a5a8f+_0x3c18d8(0xe8)+_0x43dea5[_0x3c18d8(0xf9)]};}else{_0x280e3a=_0x27cca5,_0x4a5a8f='@'+_0x27cca5[_0x3c18d8(0xec)]('@')[0x0];try{ppUrl=await _0x2ccf4a[_0x3c18d8(0xdd)](_0x280e3a,_0x3c18d8(0xf8));}catch{ppUrl=_0x3c18d8(0xf2);};const _0x2ef8d3=await _0x2ccf4a[_0x3c18d8(0xee)](_0x280e3a);mess={'image':{'url':ppUrl},'caption':_0x3c18d8(0xf3)+_0x4a5a8f+_0x3c18d8(0xe8)+_0x2ef8d3[_0x3c18d8(0xf9)],'mentions':[_0x27cca5]};};_0x2ccf4a[_0x3c18d8(0xf1)](_0x3b6a45,mess,{'quoted':_0x1ed492});}),france({'nomCom':'getpp','categorie':_0x171415(0xf0)},async(_0x223729,_0x1b6c08,_0x126512)=>{const _0x35492e=_0x171415,{ms:_0x4bb6c0,arg:_0x3742c0,repondre:_0x2690a3,auteurMessage:_0x5146f6,nomAuteurMessage:_0x48cf60,msgRepondu:_0x496af7,auteurMsgRepondu:_0x184bbe}=_0x126512;let _0x9c97ff=null,_0x1d1f7a=null;if(!_0x496af7){_0x9c97ff=_0x5146f6,_0x1d1f7a=_0x48cf60;try{ppUrl=await _0x1b6c08[_0x35492e(0xdd)](_0x9c97ff,_0x35492e(0xf8));}catch{ppUrl=_0x35492e(0xf2);};const _0x84c0d3=await _0x1b6c08['fetchStatus'](_0x9c97ff);mess={'image':{'url':ppUrl},'caption':_0x35492e(0xfa)};}else{_0x9c97ff=_0x184bbe,_0x1d1f7a='@'+_0x184bbe[_0x35492e(0xec)]('@')[0x0];try{ppUrl=await _0x1b6c08['profilePictureUrl'](_0x9c97ff,'image');}catch{ppUrl=_0x35492e(0xf2);};const _0x5287cd=await _0x1b6c08[_0x35492e(0xee)](_0x9c97ff);mess={'image':{'url':ppUrl},'caption':'Here\x20is\x20the\x20Profile\x20picture','mentions':[_0x184bbe]};};_0x1b6c08[_0x35492e(0xf1)](_0x223729,mess,{'quoted':_0x4bb6c0});});
21 |
--------------------------------------------------------------------------------
/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};
--------------------------------------------------------------------------------
/commands/Devinette.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | Manjiro-Sano-md
6 | by Cod3Uchiha
7 | Takudzwa Mlambo
8 |
9 | **/
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | const { france } = require('../framework/france');
18 |
19 | // Set a riddle list with questions and answers
20 | const devinettes = [
21 | {
22 | question: "I can fly without wings, who am I?",
23 | reponse: "The weather",
24 | },
25 | {
26 | question: "I'm always hungry, the more I eat, the fatter I become. Who am I ?",
27 | reponse: "A black hole",
28 | },
29 | {
30 | question: "I'm strong when I'm down, but I'm weak when I'm up. Who am I ?",
31 | reponse: "The number 6",
32 | },
33 | {
34 | question: "I can be short or long, hard or soft, I can be used by anyone, from young children to experienced musicians. Who am I ?",
35 | reponse: "A pencil",
36 | },
37 | {
38 | question: "I am the beginning of the end, the end of every place. I am the beginning of eternity, the end of time and space. Who am I ?",
39 | reponse: "The letter 'e'",
40 | },
41 | {
42 | question: "I am white when I am dirty and black when I am clean. Who am I ?",
43 | reponse: "A slate",
44 | },
45 | {
46 | question: "I'm liquid, but if you take water away from me, I become solid. Who am I ?",
47 | reponse: "Tea",
48 | },
49 | {
50 | question: "I fly without wings, I cry without eyes. Wherever I am, death always accompanies me. Who am I ?",
51 | reponse: "The wind",
52 | },
53 | {
54 | question: "I have towns, but no houses. I have mountains, but no trees. I have water, but no fish. Who am I ?",
55 | reponse: "A map",
56 | },
57 | {
58 | question: "I can be read, but you can't write about me. You always give to me, but rarely keep me. Who am I ?",
59 | reponse: "A borrowed book",
60 | },
61 | {
62 | question: "I come twice in a week, once in a year, but never in a day. Who am I ?",
63 | reponse: "The letter 'E'",
64 | },
65 | {
66 | question: "I'm hard to grasp, but you will hold me in your hand when you find me. Who am I ?",
67 | reponse: "Your breath",
68 | },
69 | {
70 | question: "The hotter I am, the colder I become. Who am I ?",
71 | reponse: "coffe",
72 | },
73 | {
74 | question: "I am the stuff of dreams. I cover broken ideas. I change souls into wings. Who am I ?",
75 | reponse: "A book",
76 | },
77 | {
78 | question: "I am white when I am dirty and black when I am clean. Who am I?",
79 | reponse: "A slate",
80 | },
81 | {
82 | question: "I can fly without having wings. I can cry without having eyes. Who am I ?",
83 | reponse: "A cloud",
84 | },
85 | {
86 | question: "I start at night and finish in the morning. Who am I ?",
87 | reponse: "The letter 'N'",
88 | },
89 | {
90 | question: "I can be read, but you can't write about me. You always give to me, but rarely keep me. Who am I ?",
91 | reponse: "A borrowed book",
92 | },
93 | {
94 | question: "I feed on everything around me, the air, the earth and even the trees. Who am I ?",
95 | reponse: "a fire",
96 | },
97 | {
98 | question: "I am white when I am dirty and black when I am clean. Who am I ?",
99 | reponse: "A slate",
100 | },
101 | {
102 | question: "I'm liquid, but if you take water away from me, I become solid. Who am I ?",
103 | reponse: "tea",
104 | },
105 | {
106 | question: "I am the beginning of the end and the end of every place. I am the beginning of eternity, the end of time and space. Who am I ?",
107 | reponse: "the letter'E'",
108 | },
109 | {
110 | question: "I'm hard to grasp, but you will hold me in your hand when you find me. Who am I ?",
111 | reponse: "Your breath",
112 | },
113 | ];
114 |
115 | france({ nomCom: "riddle", categorie: "Games" }, async (dest, zk, commandeOptions) => {
116 | const { ms, repondre } = commandeOptions;
117 |
118 | // Choose a random riddle
119 | const devinette = devinettes[Math.floor(Math.random() * devinettes.length)];
120 | // Send the riddle question
121 | await zk.sendMessage(
122 | dest,
123 | {
124 | text: `Riddle: ${devinette.question} . \n you have 30 seconds to think about.`,
125 | },
126 | { quoted: ms }
127 | );
128 |
129 | //Wait 60 seconds before sending the response
130 | await delay(30000);
131 |
132 | // Answer
133 | await zk.sendMessage(
134 | dest,
135 | {
136 | text: `The answer was : ${devinette.reponse}`,
137 | },
138 | { quoted: ms }
139 | );
140 | });
141 |
142 | // Function to create a pause/delay in milliseconds
143 | function delay(ms) {
144 | return new Promise((resolve) => setTimeout(resolve, ms));
145 | }
146 |
--------------------------------------------------------------------------------
/commands/Weeb.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | Manjiro-Sano-md
5 | by Cod3Uchiha
6 | Takudzwa Mlambo
7 |
8 | **/
9 |
10 |
11 |
12 |
13 |
14 |
15 | const axios = require('axios');
16 | const fs = require('fs');
17 | const { france } = require("../framework/france");
18 | const { writeFile } = require('fs/promises')
19 |
20 | // Commande waifu
21 | france({
22 | nomCom: "waifu",
23 | categorie: "Weeb",
24 | reaction: "😏"
25 | },
26 | async (origineMessage, zk, commandeOptions) => {
27 | const { repondre, ms } = commandeOptions;
28 |
29 | const url = 'https://api.waifu.pics/sfw/waifu'; // Remplacez avec le lien réel de l'API waifu.pics
30 |
31 | try {
32 |
33 | for (let i = 0; i < 5; i++) {
34 | const response = await axios.get(url);
35 | const imageUrl = response.data.url;
36 |
37 | zk.sendMessage(origineMessage, { image: { url: imageUrl } }, { quoted: ms });
38 | }
39 | } catch (error) {
40 | repondre('Erreur lors de la récupération des données :', error);
41 | }
42 | });
43 |
44 | // Commande neko
45 | france({
46 | nomCom: "neko",
47 | categorie: "Weeb",
48 | reaction: "😺"
49 | },
50 | async (origineMessage, zk, commandeOptions) => {
51 | const { repondre, ms } = commandeOptions;
52 |
53 | const url = 'https://api.waifu.pics/sfw/neko'; // Remplacez avec le lien réel de l'API waifu.pics ou une autre API de nekos
54 |
55 | try {
56 | for (let i = 0; i < 5; i++) {
57 | const response = await axios.get(url);
58 | const imageUrl = response.data.url;
59 |
60 | zk.sendMessage(origineMessage, { image: { url: imageUrl } }, { quoted: ms });
61 | }
62 | } catch (error) {
63 | repondre('Erreur lors de la récupération des données :', error);
64 | }
65 | });
66 |
67 | // Commande shinobu
68 | france({
69 | nomCom: "shinobu",
70 | categorie: "Weeb",
71 | reaction: "🦋"
72 | },
73 | async (origineMessage, zk, commandeOptions) => {
74 | const { repondre, ms } = commandeOptions;
75 |
76 | const url = 'https://api.waifu.pics/sfw/shinobu'; // Remplacez avec le lien réel de l'API waifu.pics ou une autre API avec des images de Shinobu
77 |
78 | try {
79 | for (let i = 0; i < 5; i++) {
80 | const response = await axios.get(url);
81 | const imageUrl = response.data.url;
82 |
83 | zk.sendMessage(origineMessage, { image: { url: imageUrl } }, { quoted: ms });
84 | }
85 | } catch (error) {
86 | repondre('Erreur lors de la récupération des données :', error);
87 | }
88 | });
89 |
90 | // Commande megumin
91 | france({
92 | nomCom: "megumin",
93 | categorie: "Weeb",
94 | reaction: "💥"
95 | },
96 | async (origineMessage, zk, commandeOptions) => {
97 | const { repondre, ms } = commandeOptions;
98 |
99 | const url = 'https://api.waifu.pics/sfw/megumin'; // Remplacez avec le lien réel de l'API waifu.pics ou une autre API avec des images de Megumin
100 |
101 | try {
102 | for (let i = 0; i < 5; i++) {
103 | const response = await axios.get(url);
104 | const imageUrl = response.data.url;
105 |
106 | zk.sendMessage(origineMessage,{ image: { url: imageUrl } }, { quoted: ms });
107 | }
108 | } catch (error) {
109 | repondre('Erreur lors de la récupération des données :', error);
110 | }
111 | });
112 |
113 |
114 |
115 | france({
116 | nomCom: "cosplay",
117 | categorie: "Weeb",
118 | reaction: "😏"
119 | },
120 | async (origineMessage, zk, commandeOptions) => {
121 | const { repondre, ms } = commandeOptions;
122 |
123 |
124 |
125 | try {
126 | for (let i = 0; i < 5; i++) {
127 | let url = 'https://fantox-cosplay-api.onrender.com/'
128 |
129 | const response = await axios.get(url, { responseType: 'arraybuffer' })
130 |
131 |
132 |
133 | const image = response.data;
134 |
135 | await writeFile('./cosplay.jpg', image)
136 | zk.sendMessage(origineMessage,{image : {url : `./cosplay.jpg`}},{quoted :ms}) }
137 |
138 | } catch (e) {
139 | repondre("je reçois malheureusement une erreur : " + e);
140 | }
141 | });
142 |
143 |
144 | france({nomCom:"couplepp",categorie: "Weeb",reaction : "💞"},async(dest,zk,commandeOptions)=>{ const {repondre , ms} = commandeOptions;
145 | let api = 'https://smiling-hosiery-bear.cyclic.app/weeb/couplepp'
146 | try {
147 | repondre('she/he dont love you :)')
148 | const result = await axios.get(api)
149 |
150 |
151 | zk.sendMessage(dest, { image: { url: result.data.male }, caption: `For Man` }, { quoted: ms })
152 | zk.sendMessage(dest, { image: { url: result.data.female }, caption: `_For woman_` }, { quoted: ms })
153 |
154 | } catch (e) { repondre(e)}
155 |
156 | }
157 | )
158 |
--------------------------------------------------------------------------------
/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/Reactions.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | 🇫🇱🇦🇸🇭-🇲🇩
4 |
5 | 𝗖𝗼𝗽𝘆𝗿𝗶𝗴𝗵𝘁 (𝗖) 2024.
6 | 𝗟𝗶𝗰𝗲𝗻𝘀𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝗠𝗜𝗧 𝗟𝗶𝗰𝗲𝗻𝘀𝗲;
7 | 𝗬𝗼𝘂 𝗺𝗮𝘆 𝗻𝗼𝘁 𝘂𝘀𝗲 𝘁𝗵𝗶𝘀 𝗳𝗶𝗹𝗲 𝗲𝘅𝗰𝗲𝗽𝘁 𝗶𝗻 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝗟𝗶𝗰𝗲𝗻𝘀𝗲.
8 | 𝗜𝘁 𝗶𝘀 𝘀𝘂𝗽𝗽𝗹𝗶𝗲𝗱 𝗶𝗻 𝘁𝗵𝗲 𝗵𝗼𝗽𝗲 𝘁𝗵𝗮𝘁 𝗶𝘁 𝗺𝗮𝘆 𝗯𝗲 𝘂𝘀𝗲𝗳𝘂𝗹.
9 | * @𝗽𝗿𝗼𝗷𝗲𝗰𝘁_𝗻𝗮𝗺𝗲 : 𝗙𝗹𝗮𝘀𝗵 𝗠𝗗, 𝗮 𝘀𝗶𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝗲𝗮𝘀𝘆 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝘂𝘀𝗲𝗿 𝗯𝗼𝘁
10 | * @𝗼𝘄𝗻𝗲𝗿: 𝗙𝗿𝗮𝗻𝗰𝗲 𝗞𝗶𝗻𝗴
11 |
12 | **/
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | const axios = require('axios');
22 | const { france } = require("../framework/france");
23 | const fs = require("fs-extra");
24 | const { exec } = require("child_process");
25 | const child_process = require('child_process');
26 | const {unlink } = require ('fs').promises ;
27 |
28 |
29 | // fonction sleep
30 |
31 | const sleep = (ms) =>{
32 | return new Promise((resolve) =>{ setTimeout (resolve, ms)})
33 |
34 | }
35 |
36 | // Fonction pour la conversion de GIF en vidéo et récupération du buffer vidéo
37 | const GIFBufferToVideoBuffer = async (image) => {
38 | const filename = `${Math.random().toString(36)}`;
39 | await fs.writeFileSync(`./${filename}.gif`, image);
40 | child_process.exec(
41 | `ffmpeg -i ./${filename}.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" ./${filename}.mp4`
42 | );
43 | await sleep(4000);
44 |
45 | var buffer5 = await fs.readFileSync(`./${filename}.mp4`);
46 | Promise.all([unlink(`./${filename}.mp4`), unlink(`./${filename}.gif`)]);
47 | return buffer5;
48 | };
49 |
50 | const generateReactionCommand = (reactionName, reactionEmoji) => {
51 | france({
52 | nomCom: reactionName,
53 | categorie: "Reaction",
54 | reaction: reactionEmoji,
55 | },
56 | async (origineMessage, zk, commandeOptions) => {
57 | const { auteurMessage, auteurMsgRepondu, repondre, ms, msgRepondu } = commandeOptions;
58 |
59 | const url = `https://api.waifu.pics/sfw/${reactionName}`;
60 | try {
61 | const response = await axios.get(url);
62 | const imageUrl = response.data.url;
63 |
64 | // Obtenir le buffer du GIF en utilisant la fonction getBuffer
65 | const gifBufferResponse = await axios.get(imageUrl, {
66 | responseType: 'arraybuffer' }) ;
67 | const gifBuffer = await gifBufferResponse.data;
68 |
69 | // Convertir le GIF en vidéo et obtenir le buffer vidéo
70 | const videoBuffer = await GIFBufferToVideoBuffer(gifBuffer);
71 |
72 | // Envoyer la vidéo avec france
73 | if (msgRepondu) {
74 | var txt =` @${auteurMessage.split("@")[0]} ${reactionName} @${auteurMsgRepondu.split("@")[0]}`
75 | zk.sendMessage(origineMessage, { video: videoBuffer,gifPlayback: true,caption:txt,mentions:[auteurMessage,auteurMsgRepondu] }, { quoted: ms });
76 |
77 | } else {
78 | const videoMessage = {
79 | video: videoBuffer,
80 | gifPlayback: true,
81 | caption: `@${auteurMessage.split("@")[0]} ${reactionName} everyone`,
82 | mentions: [auteurMessage]
83 | };
84 | zk.sendMessage(origineMessage, videoMessage, { quoted: ms });
85 | }
86 |
87 | } catch (error) {
88 | repondre('Erreur lors de la récupération des données :' + error);
89 | console.log(error);
90 | }
91 | });
92 | };
93 |
94 | // ... (utilisation de la fonction generateReactionCommand pour créer des commandes de réaction)
95 |
96 |
97 | generateReactionCommand("bully", "👊");
98 | generateReactionCommand("cuddle", "🤗");
99 | generateReactionCommand("cry", "😢");
100 | generateReactionCommand("hug", "😊");
101 | generateReactionCommand("awoo", "🐺");
102 | generateReactionCommand("kiss", "😘");
103 | generateReactionCommand("lick", "👅");
104 | generateReactionCommand("pat", "👋");
105 | generateReactionCommand("smug", "😏");
106 | generateReactionCommand("bonk", "🔨");
107 | generateReactionCommand("yeet", "🚀");
108 | generateReactionCommand("blush", "😊");
109 | generateReactionCommand("smile", "😄");
110 | generateReactionCommand("wave", "👋");
111 | generateReactionCommand("highfive");
112 | generateReactionCommand("handhold");
113 | generateReactionCommand("nom","👅" );
114 | generateReactionCommand("bite", "🦷");
115 | generateReactionCommand("glomp", "🤗");
116 | generateReactionCommand("slap", "👋");
117 | generateReactionCommand("kill", "💀");
118 | generateReactionCommand("kick", "🦵");
119 | generateReactionCommand("happy", "😄");
120 | generateReactionCommand("wink", "😉");
121 | generateReactionCommand("poke", "👉");
122 | generateReactionCommand("dance", "💃");
123 | generateReactionCommand("cringe", "😬");
124 |
--------------------------------------------------------------------------------
/commands/Parole.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | Manjiro-Sano-md
6 | by Cod3Uchiha
7 | Takudzwa Mlambo
8 |
9 | **/
10 |
11 |
12 |
13 |
14 |
15 | const _0x17690e=_0x36e3;(function(_0x5251b2,_0x471bea){const _0x3060bb=_0x36e3,_0x50cccd=_0x5251b2();while(!![]){try{const _0x10f6fa=parseInt(_0x3060bb(0x17f))/0x1+-parseInt(_0x3060bb(0x168))/0x2+-parseInt(_0x3060bb(0x17c))/0x3+-parseInt(_0x3060bb(0x181))/0x4+-parseInt(_0x3060bb(0x17a))/0x5+parseInt(_0x3060bb(0x187))/0x6*(-parseInt(_0x3060bb(0x15d))/0x7)+-parseInt(_0x3060bb(0x16c))/0x8*(-parseInt(_0x3060bb(0x171))/0x9);if(_0x10f6fa===_0x471bea)break;else _0x50cccd['push'](_0x50cccd['shift']());}catch(_0x24544e){_0x50cccd['push'](_0x50cccd['shift']());}}}(_0x298e,0x6b386));function _0x36e3(_0x2a301a,_0x228e7a){const _0x298efa=_0x298e();return _0x36e3=function(_0x36e34f,_0x169bf9){_0x36e34f=_0x36e34f-0x15c;let _0x185589=_0x298efa[_0x36e34f];return _0x185589;},_0x36e3(_0x2a301a,_0x228e7a);}function _0x298e(){const _0x4bc1ac=['quotes','\x0a\x20Example:\x20','.\x20Try\x20searching\x20a\x20different\x20song.','19828269MJemQi','split','I\x20did\x20not\x20find\x20any\x20lyrics\x20for\x20','../framework/france','json','fact','length','\x0a\x0a\x0a\x0a\x0a◇\x20_Powered\x20by:_\x20*France\x20TKM*\x0a\x0a\x0a╔═════◇\x0a║◇\x20*KEEP\x20USING\x20𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉*\x0a╚════════════════════>\x20','log','3429495LSoMKB','jKTbbU-6X2B9yWWl-KOm7Mh3_Z6hQsgE4mmvwV3P3Qe7oNa9-hsrLxQV5l5FiAZO','1379781bkdMQp','join','No\x20result\x20for\x20','464103zXKefz','author','1288296rQkdEY','genius-lyrics','example','General','Search','Incorrect\x20format.\x0aExample:\x20poll\x20what\x20is\x201+1/2,\x203,\x204','1236LyRswf','axios','replace','13909RNcWWN','quote','provide\x20a\x20term','_\x0a\x0a\x0a◇\x20*AUTHOR:*\x20','http://api.urbandictionary.com/v0/define?term=','◆━━━━━━✦FACT✦━━━━━━◆\x20\x20\x0a*◇*\x20','\x0a\x0a\x0a\x0a\x0a*◇*\x20Powered\x20by\x20*Cod3Uchiha\x20TKM*\x0a\x0a╔═════◇\x0a║◇\x20*KEEP\x20USING\x20𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉*\x0a╚════════════════════>\x20\x20','Client','search','list','https://nekos.life/api/v2/fact','701696IrHUko','lyrics','get','sendMessage','8RNPRBq','push'];_0x298e=function(){return _0x4bc1ac;};return _0x298e();}const {france}=require(_0x17690e(0x174)),axios=require(_0x17690e(0x188)),Genius=require(_0x17690e(0x182)),Client=new Genius[(_0x17690e(0x164))](_0x17690e(0x17b));france({'nomCom':'poll','reaction':'✨','categorie':_0x17690e(0x184)},async(_0x30c4fc,_0x12f9f4,_0x257571)=>{const _0x587029=_0x17690e,{repondre:_0x394782,arg:_0x3aacc5,ms:_0x50fea5}=_0x257571,_0x24dbc4=_0x3aacc5[_0x587029(0x17d)]('\x20');let [_0x48d7c3,_0x3c6856]=_0x24dbc4[_0x587029(0x172)]('/');if(_0x24dbc4['split']('/')<0x2)return _0x394782(_0x587029(0x186));let _0x28e247=[];for(let _0x44e06d of _0x3c6856[_0x587029(0x172)](',')){_0x28e247[_0x587029(0x16d)](_0x44e06d);}await _0x12f9f4['sendMessage'](_0x30c4fc,{'poll':{'name':_0x48d7c3,'values':_0x28e247}});}),france({'nomCom':'fact','reaction':'✌️','categorie':'User'},async(_0x3c85fa,_0xe0dd81,_0x20339c)=>{const _0x5c5d2a=_0x17690e,{repondre:_0x12e23a,arg:_0xec0687,ms:_0x5d5368}=_0x20339c,_0x5754a8=await fetch(_0x5c5d2a(0x167)),_0x21e127=await _0x5754a8['json']();_0x12e23a(_0x5c5d2a(0x162)+_0x21e127[_0x5c5d2a(0x176)]+_0x5c5d2a(0x163));}),france({'nomCom':_0x17690e(0x16e),'reaction':'🗿','categorie':'User'},async(_0x139e97,_0xb6d444,_0x53dc51)=>{const _0x26f45c=_0x17690e,{repondre:_0x3bef2d,arg:_0x135e01,ms:_0x4a891b}=_0x53dc51,_0x2784cf=await fetch('https://favqs.com/api/qotd'),_0x1f25fb=await _0x2784cf[_0x26f45c(0x175)](),_0x2b238b='\x0a◆━━━━━━✦QUOTE✦━━━━━━◆\x20\x0a◇\x20_'+_0x1f25fb[_0x26f45c(0x15e)]['body']+_0x26f45c(0x160)+_0x1f25fb['quote'][_0x26f45c(0x180)]+_0x26f45c(0x178);_0x3bef2d(_0x2b238b);}),france({'nomCom':'define','reaction':'😁','categorie':_0x17690e(0x185)},async(_0x2d6773,_0x1778cf,_0x5bcf7e)=>{const _0x586295=_0x17690e,{repondre:_0x3c6e3b,arg:_0x3997ea,ms:_0x10a9bb}=_0x5bcf7e;if(!_0x3997ea||_0x3997ea[_0x586295(0x177)]===0x0)return _0x3c6e3b(_0x586295(0x15f));const _0x243eb3=_0x3997ea[_0x586295(0x17d)]('\x20');try{let {data:_0x31830d}=await axios[_0x586295(0x16a)](_0x586295(0x161)+_0x243eb3);var _0x259634='\x0a\x20Word:\x20'+_0x243eb3+'\x0a\x20Definition:\x20'+_0x31830d[_0x586295(0x166)][0x0]['definition'][_0x586295(0x15c)](/\[/g,'')[_0x586295(0x15c)](/\]/g,'')+_0x586295(0x16f)+_0x31830d['list'][0x0][_0x586295(0x183)][_0x586295(0x15c)](/\[/g,'')[_0x586295(0x15c)](/\]/g,'');return _0x3c6e3b(_0x259634);}catch{return _0x3c6e3b(_0x586295(0x17e)+_0x243eb3);}}),france({'nomCom':_0x17690e(0x169),'reaction':'✨','categorie':_0x17690e(0x185)},async(_0x16b585,_0x24921b,_0x5047e1)=>{const _0xad5ea6=_0x17690e,{repondre:_0x323d88,arg:_0x47ee56,ms:_0x26dbd3}=_0x5047e1;try{if(!_0x47ee56||_0x47ee56[_0xad5ea6(0x177)]===0x0)return _0x323d88('please\x20provide\x20me\x20the\x20song\x20name');const _0x2d6993=_0x47ee56['join']('\x20'),_0x19a972=await Client['songs'][_0xad5ea6(0x165)](_0x2d6993),_0x349a1c=_0x19a972[0x0],_0x3e8204=await _0x349a1c[_0xad5ea6(0x169)]();await _0x24921b[_0xad5ea6(0x16b)](_0x16b585,{'text':_0x3e8204},{'quoted':_0x26dbd3});}catch(_0xe736b5){reply(_0xad5ea6(0x173)+text+_0xad5ea6(0x170)),console[_0xad5ea6(0x179)](_0xe736b5);}});
16 |
--------------------------------------------------------------------------------
/commands/YT-search.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 |
4 | Manjiro-Sano-md
5 | by Cod3Uchiha
6 | Takudzwa Mlambo
7 |
8 | **/
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | const { france } = require("../framework/france");
18 | const { getytlink, ytdwn } = require("../framework/ytdl-core");
19 | const yts = require("yt-search");
20 | const ytdl = require('ytdl-core');
21 | const fs = require('fs');
22 |
23 | france({ nomCom: "yts", categorie: "Search", reaction: "✋" }, async (dest, zk, commandeOptions) => {
24 | const { ms, repondre, arg } = commandeOptions;
25 | const query = arg.join(" ");
26 |
27 | if (!query[0]) {
28 | repondre("what do you want");
29 | return;
30 | }
31 |
32 | try {
33 | const info = await yts(query);
34 | const resultat = info.videos;
35 |
36 | let captions = "";
37 | for (let i = 0; i < 10; i++) {
38 | captions += `----------------\nTitle: ${resultat[i].title}\nTime : ${resultat[i].timestamp}\nUrl: ${resultat[i].url}\n`;
39 | }
40 | captions += "\n======\n*powered by 〘Manjiro-Sano-md〙*";
41 |
42 | // repondre(captions)
43 | zk.sendMessage(dest, { image: { url: resultat[0].thumbnail }, caption: captions }, { quoted: ms });
44 | } catch (error) {
45 | repondre("Erreur lors de la procédure : " + error);
46 | }
47 | });
48 |
49 | france({
50 | nomCom: "ytmp4",
51 | categorie: "Download",
52 | reaction: "🎥"
53 | }, async (origineMessage, zk, commandeOptions) => {
54 | const { arg, ms, repondre } = commandeOptions;
55 |
56 | if (!arg[0]) {
57 | repondre("insert a youtube link");
58 | return;
59 | }
60 |
61 | const topo = arg.join(" ");
62 | try {
63 | /* const search = await yts(topo);
64 | const videos = search.videos;
65 |
66 | if (videos && videos.length > 0 && videos[0]) {
67 | const Element = videos[0];
68 |
69 | let InfoMess = {
70 | image: { url: videos[0].thumbnail },
71 | caption: `*nom de la vidéo :* _${Element.title}_
72 | *Durée :* _${Element.timestamp}_
73 | *Lien :* _${Element.url}_
74 | _*En cours de téléchargement...*_\n\n`
75 | };
76 |
77 | zk.sendMessage(origineMessage, InfoMess, { quoted: ms });
78 | */
79 |
80 | // Obtenir les informations de la vidéo à partir du lien YouTube
81 | const videoInfo = await ytdl.getInfo(topo);
82 | // Format vidéo avec la meilleure qualité disponible
83 | const format = ytdl.chooseFormat(videoInfo.formats, { quality: '18' });
84 | // Télécharger la vidéo
85 | const videoStream = ytdl.downloadFromInfo(videoInfo, { format });
86 |
87 | // Nom du fichier local pour sauvegarder la vidéo
88 | const filename = 'video.mp4';
89 |
90 | // Écrire le flux vidéo dans un fichier local
91 | const fileStream = fs.createWriteStream(filename);
92 | videoStream.pipe(fileStream);
93 |
94 | fileStream.on('finish', () => {
95 | // Envoi du fichier vidéo en utilisant l'URL du fichier local
96 | zk.sendMessage(origineMessage, { video: { url: `./${filename}` }, caption: "Powered by *〘Manjiro-Sano-md〙*", gifPlayback: false }, { quoted: ms });
97 |
98 | });
99 |
100 | fileStream.on('error', (error) => {
101 | console.error('Erreur lors de l\'écriture du fichier vidéo :', error);
102 | repondre('Une erreur est survenue lors de l\'écriture du fichier vidéo.');
103 | });
104 |
105 | } catch (error) {
106 | console.error('Erreur lors de la recherche ou du téléchargement de la vidéo :', error);
107 | repondre('Une erreur est survenue lors de la recherche ou du téléchargement de la vidéo.' + error);
108 | }
109 | });
110 |
111 | france({
112 | nomCom: "ytmp3",
113 | categorie: "Download",
114 | reaction: "💿"
115 | }, async (origineMessage, zk, commandeOptions) => {
116 | const { ms, repondre, arg } = commandeOptions;
117 |
118 | if (!arg[0]) {
119 | repondre("Insert a youtube link");
120 | return;
121 | }
122 |
123 | try {
124 | let topo = arg.join(" ");
125 |
126 | const audioStream = ytdl(topo, { filter: 'audioonly', quality: 'highestaudio' });
127 |
128 | // Nom du fichier local pour sauvegarder le fichier audio
129 | const filename = 'audio.mp3';
130 |
131 | // Écrire le flux audio dans un fichier local
132 | const fileStream = fs.createWriteStream(filename);
133 | audioStream.pipe(fileStream);
134 |
135 | fileStream.on('finish', () => {
136 | // Envoi du fichier audio en utilisant l'URL du fichier local
137 | zk.sendMessage(origineMessage, { audio: { url: `./${filename}` }, mimetype: 'audio/mp4' }, { quoted: ms, ptt: false });
138 | console.log("Envoi du fichier audio terminé !");
139 | });
140 |
141 | fileStream.on('error', (error) => {
142 | console.error('Erreur lors de l\'écriture du fichier audio :', error);
143 | repondre('Une erreur est survenue lors de l\'écriture du fichier audio.');
144 | });
145 |
146 | } catch (error) {
147 | console.error('Erreur lors de la recherche ou du téléchargement de la vidéo :', error);
148 | repondre('Une erreur est survenue lors de la recherche ou du téléchargement de la vidéo.');
149 | }
150 | });
151 |
--------------------------------------------------------------------------------
/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("Please insert a song name.");
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 : `*𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉 SONG DOWNLOADER*\n\n*Title:* ${videos[0].title}
33 |
34 | *Duration:* ${videos[0].timestamp}
35 | *Song Url:* ${videos[0].url}
36 |
37 |
38 |
39 | *_Powered by Cod3Uchiha._*`
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("insert video name");
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: `*𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉 VIDEO DOWNLOADER*\n\n*Title :* ${Element.title}
107 | *Duration :* ${Element.timestamp}
108 | *Video Url:* ${Element.url}
109 |
110 |
111 |
112 | *Powered by Cod3Uchiha*\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: "*〘Manjiro-Sano-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};
--------------------------------------------------------------------------------
/commands/Menu.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 |
5 | Manjiro-Sano-md
6 | Creater=Cod3Uchiha
7 | Creater=Takudzwa Mlambo
8 |
9 | **/
10 |
11 |
12 |
13 |
14 |
15 |
16 | function _0xc173(){const _0x547251=['\x0a╭───〘Manjiro-Sano-md〙──◆\x0a┃╭──────────────\x0a┃│\x20Prefix\x20:\x20','toLocaleLowerCase','totalmem','/../framework/mesfonctions','length','sendMessage','120yNTMuJ','\x20minute,\x20','\x20\x20\x0a┃│\x20Platform\x20:\x20Linux\x0a┃│\x20Date\x20:\x20','Je\x20suis\x20*Zokou-MD*,\x20développé\x20par\x20Djalega++','/../framework/france','10256AaXKyf','〙*','\x20\x0a┃│\x20Mode\x20:\x20','1368dINUxu','util','DD/MM/YYYY','567628aTcEkV','63RDgpXX','\x20\x20\x0a\x0a*〘\x20Manjiro-Sano-md\x20CMDs\x20〙*\x0a','/../set','\x0a◇\x20*I\x20am\x20Manjiro-Sano\x20md*\x20◇\x0a\x0a\x20\x20\x20*github.com/Cod3Uchiha/Manjiro-Sano-md*\x0a\x20\x20\x20\x0a\x20_Thanks\x20For\x20choosing\x20Manjiro-Sano-md_\x0a\x0a\x20\x20Created\x20by\x20*Cod3Uchiha\x20AKA\x20Takudzwa*\x20\x0a\x20\x20\x0a\x20\x20\x20\x20\x20*KEEP\x20USING\x20Manjiro-Sano-md*\x0a','\x0a*╭────〘','yes','\x0a*╰═════════════▸*\x0a','84992bOtoCj','\x0a┃│\x20Time\x20:\x20','🥵🥵\x20Menu\x20erreur\x20','categorie','/../framework//france','143199OptWGb','\x20m,\x20','moment-timezone','freemem','map','Africa/Harare','\x20\x20\x0a┃│\x20Ram\x20:\x20','183520qoZeVL','log','\x20\x0a┃│\x20User\x20:\x20\x20','match','\x20day,\x20','\x20second','5UnRUhb','\x0a┃│\x20Commands\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┃│\x20Uptime\x20:\x20'+runtime(process[_0x2315ef(0xde)]())+'\x20\x0a┃╰───────────────\x0a╰────〘Manjiro-Sano-md〙───◆\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*│'+_0x1430ff+'*';}_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':'*📌Cod3Uchiha\x20TKM*'},{'quoted':_0x1dbe0a});}catch(_0x196b3d){console[_0x2315ef(0xd2)](_0x2315ef(0xc7)+_0x196b3d),_0x1a90f5(_0x2315ef(0xc7)+_0x196b3d);}else _0x1a90f5(_0x466c1b+_0x3c7fea);}});
17 |
--------------------------------------------------------------------------------
/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();}
--------------------------------------------------------------------------------
/commands/A.I.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | /**
5 |
6 |
7 |
8 | **/
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | function _0x202d(){const _0x2751b8=['\x20the\x20image','2427498sXfXLr','red\x20while\x20','essary\x20inf','Oops,\x20an\x20e','join','Une\x20erreur','Please\x20ent','went\x20wrong','calculatio','\x20an\x20Ai\x20dev','dalle','2983570czGitz','*powered\x20b','rror\x20occur','352594xdgcFM','sendMessag','ai/mathsso','227142FiBkdL','ert\x20maths\x20','log','lve?q=','\x20today?.','g\x20to\x20you._','ion','M.\x0a\x0a\x20What\x20','o\x20generate','1455055Oopsdw','something\x20','Cod3Uchiha\x20TK','cnt','YEAh!\x0a\x20_I\x27','bair.tech/','est','Please\x20ins','rk/france','d=181821&k','Hello\x20am\x20*','gemini','...','help\x20can\x20I','../framewo','e\x20\x22(/)\x22\x20fo','duite','result','m\x20listenin','Erreur:','\x20and\x20\x22(*)\x22','\x20s\x27est\x20pro','Please\x20ask','processing','60794jWaBhS','4ekKcmy','77PVIFyM','error','completion','length','ai/chatgpt','i.maher-zu','0000+2024.','3?q=','rk/traduct','or\x20letter\x20','gpt','axios','8nwcdrv','calc','477306gGqzPS','\x20offer\x20you','https://ap','json'];_0x202d=function(){return _0x2751b8;};return _0x202d();}const _0xd48ed1=_0xff82;(function(_0x2ba153,_0x46b7f5){const _0x315855=_0xff82,_0x5a5937=_0x2ba153();while(!![]){try{const _0x3d51a6=-parseInt(_0x315855(0xe7))/0x1+parseInt(_0x315855(0xc4))/0x2+parseInt(_0x315855(0xd4))/0x3+-parseInt(_0x315855(0xc5))/0x4*(-parseInt(_0x315855(0xf3))/0x5)+parseInt(_0x315855(0xea))/0x6*(-parseInt(_0x315855(0xc6))/0x7)+-parseInt(_0x315855(0xd2))/0x8*(-parseInt(_0x315855(0xd9))/0x9)+parseInt(_0x315855(0xe4))/0xa;if(_0x3d51a6===_0x46b7f5)break;else _0x5a5937['push'](_0x5a5937['shift']());}catch(_0x34efdc){_0x5a5937['push'](_0x5a5937['shift']());}}}(_0x202d,0x44410));const {france}=require(_0xd48ed1(0xba)+_0xd48ed1(0xfb)),traduire=require('../framewo'+_0xd48ed1(0xce)+_0xd48ed1(0xf0)),{default:axios}=require(_0xd48ed1(0xd1));function _0xff82(_0x26051c,_0x44182b){const _0x202d7c=_0x202d();return _0xff82=function(_0xff822e,_0x41d7a4){_0xff822e=_0xff822e-0xb7;let _0x127dcd=_0x202d7c[_0xff822e];return _0x127dcd;},_0xff82(_0x26051c,_0x44182b);}france({'nomCom':_0xd48ed1(0xb7),'reaction':'📡','categorie':'IA'},async(_0x4c29c0,_0x4e7f01,_0x5e6ef0)=>{const _0x41850f=_0xd48ed1,{repondre:_0x5aa4bf,ms:_0x28c1a2,arg:_0x7cf9e3}=_0x5e6ef0;if(!_0x7cf9e3||!_0x7cf9e3[0x0])return _0x5aa4bf(_0x41850f(0xf7)+_0x41850f(0xbe)+_0x41850f(0xef));try{const _0x4453b8=_0x7cf9e3[_0x41850f(0xdd)]('\x20'),_0x273cbd=await fetch('http://api'+'.brainshop'+'.ai/get?bi'+_0x41850f(0xfc)+'ey=ltFzFIX'+'rtj2SVMTX&'+'uid=[uid]&'+'msg='+_0x4453b8),_0x36572a=await _0x273cbd[_0x41850f(0xd7)]();await _0x5aa4bf(_0x36572a[_0x41850f(0xf6)]);}catch{_0x5aa4bf(_0x41850f(0xf4)+_0x41850f(0xe0)+_0x41850f(0xb8));}}),france({'nomCom':_0xd48ed1(0xe3),'reaction':'📡','categorie':'IA'},async(_0x29145a,_0x406bfc,_0x56783b)=>{const _0x4e3606=_0xd48ed1,{repondre:_0x16f4a4,arg:_0x3c7e8b,ms:_0x37c9b9}=_0x56783b;try{if(!_0x3c7e8b||_0x3c7e8b['length']===0x0)return _0x16f4a4(_0x4e3606(0xdf)+'er\x20the\x20nec'+_0x4e3606(0xdb)+'ormation\x20t'+_0x4e3606(0xf2)+_0x4e3606(0xd8)+'.');const _0x4271b6=_0x3c7e8b['join']('\x20'),_0x145045='https://ap'+_0x4e3606(0xcb)+'bair.tech/'+'ai/dalle?q'+'='+_0x4271b6;let _0x3e1f22=_0x4e3606(0xe5)+'y\x20FLASH-MD'+'*';_0x406bfc[_0x4e3606(0xe8)+'e'](_0x29145a,{'image':{'url':_0x145045},'caption':_0x3e1f22},{'quoted':_0x37c9b9});}catch(_0x957bce){console[_0x4e3606(0xc7)](_0x4e3606(0xbf),_0x957bce['message']||_0x4e3606(0xde)+_0x4e3606(0xc1)+_0x4e3606(0xbc)),_0x16f4a4(_0x4e3606(0xdc)+_0x4e3606(0xe6)+_0x4e3606(0xda)+_0x4e3606(0xc3)+'\x20your\x20requ'+_0x4e3606(0xf9));}}),france({'nomCom':_0xd48ed1(0xd0),'reaction':'📡','categorie':'IA'},async(_0x49efd5,_0x137878,_0x318485)=>{const _0x376f11=_0xd48ed1,{repondre:_0x2bd878,arg:_0x537bc1,ms:_0x59c815}=_0x318485;if(!_0x537bc1||_0x537bc1['length']===0x0)return _0x2bd878(_0x376f11(0xc2)+'\x20a\x20questio'+'n.');const _0x3db831=_0x537bc1['join']('\x20'),_0x5bd98e=await fetch(_0x376f11(0xd6)+_0x376f11(0xcb)+_0x376f11(0xf8)+'ai/chatgpt'+'v4?q='+_0x3db831),_0x53e4ae=await _0x5bd98e[_0x376f11(0xd7)]();await _0x2bd878(_0x53e4ae[_0x376f11(0xbd)]),console[_0x376f11(0xec)](_0x53e4ae[_0x376f11(0xc8)]);}),france({'nomCom':_0xd48ed1(0xfe),'reaction':'🤗','categorie':'IA'},async(_0x1c753b,_0x55355f,_0x5d8964)=>{const _0xa79a8f=_0xd48ed1,{repondre:_0x24f9f4,arg:_0x424bf0,ms:_0x94f646}=_0x5d8964;if(!_0x424bf0||_0x424bf0[_0xa79a8f(0xc9)]===0x0)return _0x24f9f4(_0xa79a8f(0xfd)+'FLASH-MD.*'+_0xa79a8f(0xe2)+'eloped\x20by\x20'+_0xa79a8f(0xf5)+_0xa79a8f(0xf1)+_0xa79a8f(0xb9)+_0xa79a8f(0xd5)+_0xa79a8f(0xee));const _0x8e5e01=_0x424bf0[_0xa79a8f(0xdd)]('\x20'),_0xcdca18=await fetch(_0xa79a8f(0xd6)+'i.maher-zu'+_0xa79a8f(0xf8)+_0xa79a8f(0xca)+_0xa79a8f(0xcd)+_0x8e5e01),_0x6e7833=await _0xcdca18[_0xa79a8f(0xd7)]();await _0x24f9f4(_0x6e7833[_0xa79a8f(0xbd)]),console['log'](_0x6e7833['completion']);}),france({'nomCom':_0xd48ed1(0xd3),'reaction':'🔢','categorie':'General'},async(_0xbf87b6,_0x5390bb,_0x2e2f68)=>{const _0x27e038=_0xd48ed1,{repondre:_0x11d4e1,arg:_0x22456f,ms:_0x439efa}=_0x2e2f68;if(!_0x22456f||_0x22456f[_0x27e038(0xc9)]===0x0)return _0x11d4e1(_0x27e038(0xfa)+_0x27e038(0xeb)+_0x27e038(0xe1)+'ns\x20like\x2010'+_0x27e038(0xcc)+'\x0a\x0aNOTE:\x20Us'+_0x27e038(0xbb)+'r\x20division'+_0x27e038(0xc0)+'\x20for\x20multi'+'plication\x20'+_0x27e038(0xcf)+'x');const _0x4c0dc4=_0x22456f[_0x27e038(0xdd)]('\x20'),_0xb60d0f=await fetch('https://ap'+_0x27e038(0xcb)+_0x27e038(0xf8)+_0x27e038(0xe9)+_0x27e038(0xed)+_0x4c0dc4),_0x1bb54c=await _0xb60d0f[_0x27e038(0xd7)]();await _0x11d4e1(_0x1bb54c[_0x27e038(0xbd)]),console[_0x27e038(0xec)](_0x1bb54c[_0x27e038(0xc8)]);});
20 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/Anime.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | /**
6 |
7 | Manjiro-Sano-md
8 | by Cod3Uchiha
9 | Takudzwa Mlambo
10 |
11 | **/
12 |
13 |
14 |
15 |
16 |
17 | const axios = require("axios");
18 | const {france} = require("../framework/france");
19 | const traduire = require("../framework/traduction");
20 | const {Sticker ,StickerTypes}= require('wa-sticker-formatter');
21 |
22 | france({
23 | nomCom: "anime",
24 | categorie: "Fun",
25 | reaction: "📺"
26 | },
27 | async (origineMessage, zk, commandeOptions) => {
28 | const { repondre, ms } = commandeOptions;
29 |
30 | const jsonURL = "https://api.jikan.moe/v4/random/anime"; // Remplacez par votre URL JSON
31 |
32 | try {
33 | const response = await axios.get(jsonURL);
34 | const data = response.data.data;
35 |
36 | const title = data.title;
37 | const synopsis = data.synopsis;
38 | const imageUrl = data.images.jpg.image_url; // Utilisez l'URL de l'image JPG
39 | const episodes = data.episodes;
40 | const status = data.status;
41 |
42 | //const texttraduit = await traduire(synopsis,{ to: 'fr' })
43 |
44 | const message = `📺 Titre: ${title}\n🎬 Épisodes: ${episodes}\n📡 Statut: ${status}\n📝 Synopsis: ${synopsis}\n🔗 URL: ${data.url}`;
45 |
46 | // Envoyer l'image et les informations
47 | zk.sendMessage(origineMessage, { image: { url: imageUrl }, caption: message }, { quoted: ms });
48 | } catch (error) {
49 | console.error('Error retrieving data from JSON :', error);
50 | repondre('Error retrieving data from JSON.');
51 | }
52 | });
53 |
54 | france({
55 | nomCom: "google",
56 | categorie: "Search"
57 | }, async (dest, zk, commandeOptions) => {
58 | const { arg, repondre } = commandeOptions;
59 |
60 | if (!arg[0] || arg === "") {
61 | repondre("Give me a query.\n*Example: .google What is a bot.*");
62 | return;
63 | }
64 |
65 | const google = require('google-it');
66 | try {
67 | const results = await google({ query: arg.join(" ") });
68 | let msg = `Google search for : ${arg}\n\n`;
69 |
70 | for (let result of results) {
71 | msg += `➣ Title : ${result.title}\n`;
72 | msg += `➣ Description : ${result.snippet}\n`;
73 | msg += `➣ Link : ${result.link}\n\n────────────────────────\n\n`;
74 | }
75 |
76 | // const trdmsg = await traduire(msg,{to : 'fr'})
77 | repondre(msg);
78 | } catch (error) {
79 | repondre("An error occurred during Google search.");
80 | }
81 | });
82 |
83 | france({
84 | nomCom: "imdb",
85 | categorie: "Search"
86 | }, async (dest, zk, commandeOptions) => {
87 | const { arg, repondre , ms } = commandeOptions;
88 |
89 | if (!arg[0] || arg === "") {
90 | repondre("give the name of a series or film.");
91 | return;
92 | }
93 |
94 | try {
95 |
96 | const response = await axios.get(`http://www.omdbapi.com/?apikey=742b2d09&t=${arg}&plot=full`);
97 | const imdbData = response.data;
98 |
99 | let imdbInfo = "⚍⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚍\n";
100 | imdbInfo += " ``` 𝕀𝕄𝔻𝔹 𝕊𝔼𝔸ℝℂℍ```\n";
101 | imdbInfo += "⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎⚎\n";
102 | imdbInfo += "🎬Title : " + imdbData.Title + "\n";
103 | imdbInfo += "📅year : " + imdbData.Year + "\n";
104 | imdbInfo += "⭐Assessment : " + imdbData.Rated + "\n";
105 | imdbInfo += "📆Release : " + imdbData.Released + "\n";
106 | imdbInfo += "⏳Runtime : " + imdbData.Runtime + "\n";
107 | imdbInfo += "🌀Genre : " + imdbData.Genre + "\n";
108 | imdbInfo += "👨🏻💻Director : " + imdbData.Director + "\n";
109 | imdbInfo += "✍writers : " + imdbData.Writer + "\n";
110 | imdbInfo += "👨actors : " + imdbData.Actors + "\n";
111 | imdbInfo += "📃Synopsis : " + imdbData.Plot + "\n";
112 | imdbInfo += "🌐Language : " + imdbData.Language + "\n";
113 | imdbInfo += "🌍Contry : " + imdbData.Country + "\n";
114 | imdbInfo += "🎖️Awards : " + imdbData.Awards + "\n";
115 | imdbInfo += "📦BoxOffice : " + imdbData.BoxOffice + "\n";
116 | imdbInfo += "🏙️Production : " + imdbData.Production + "\n";
117 | imdbInfo += "🌟score : " + imdbData.imdbRating + "\n";
118 | imdbInfo += "❎imdbVotes : " + imdbData.imdbVotes + "";
119 |
120 | zk.sendMessage(dest, {
121 | image: {
122 | url: imdbData.Poster,
123 | },
124 | caption: imdbInfo,
125 | }, {
126 | quoted: ms,
127 | });
128 | } catch (error) {
129 | repondre("An error occurred while searching IMDb.");
130 | }
131 | });
132 |
133 |
134 | france({
135 | nomCom: "emomix",
136 | categorie: "Conversion"
137 | }, async (dest, zk, commandeOptions) => {
138 | const { arg, repondre,ms , nomAuteurMessage } = commandeOptions;
139 |
140 | if (!arg[0] || arg.length !== 1) {
141 | repondre("Incorrect use. Example: .emojimix 😀;🥰");
142 | return;
143 | }
144 |
145 | // Divisez la chaîne en deux emojis en utilisant le point-virgule comme séparateur
146 | const emojis = arg.join(' ').split(';');
147 |
148 | if (emojis.length !== 2) {
149 | repondre("Please specify two emojis using a ';' as a separator.");
150 | return;
151 | }
152 |
153 | const emoji1 = emojis[0].trim();
154 | const emoji2 = emojis[1].trim();
155 |
156 | try {
157 | const axios = require('axios');
158 | const response = await axios.get(`https://levanter.onrender.com/emix?q=${emoji1}${emoji2}`);
159 |
160 | if (response.data.status === true) {
161 | // Si la requête a réussi, envoyez l'image résultante
162 |
163 | let stickerMess = new Sticker(response.data.result, {
164 | pack: Manjiro-md,
165 | type: StickerTypes.CROPPED,
166 | categories: ["🤩", "🎉"],
167 | id: "12345",
168 | quality: 70,
169 | background: "transparent",
170 | });
171 | const stickerBuffer2 = await stickerMess.toBuffer();
172 | zk.sendMessage(dest, { sticker: stickerBuffer2 }, { quoted: ms });
173 |
174 | } else {
175 | repondre("Unable to create emoji mix.");
176 | }
177 | } catch (error) {
178 | repondre("An error occurred while creating the emoji mix." + error );
179 | }
180 | });
181 |
--------------------------------------------------------------------------------
/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/Games.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | Manjiro-Sano-md
4 | by Cod3Uchiha
5 | Takudzwa Mlambo
6 |
7 | **/
8 |
9 |
10 |
11 |
12 |
13 |
14 | const {france} = require("../framework/france");
15 | const axios = require('axios');
16 | const traduire = require('../framework/traduction')
17 |
18 |
19 |
20 | france({
21 | nomCom: "chifumi",
22 | categorie: "Games",
23 | reaction: "📺"
24 | },
25 | async (origineMessage, zk, commandeOptions) => {
26 | const { repondre, ms, auteurMessage, auteurMsgRepondu, msgRepondu , arg , idBot } = commandeOptions;
27 |
28 | if (msgRepondu) {
29 | zk.sendMessage(origineMessage, {
30 | text: `@${auteurMessage.split('@')[0]} invites @${auteurMsgRepondu.split('@')[0]} to play the rock-paper-scissors game;
31 | To accept the challenge, type yes`,
32 | mentions: [auteurMessage, auteurMsgRepondu]
33 | });
34 |
35 | try {
36 | const repinv = await zk.awaitForMessage({
37 | sender: auteurMsgRepondu,
38 | chatJid: origineMessage,
39 | timeout: 30000 // 30 secondes
40 | });
41 | console.log(repinv) ;
42 |
43 | if (repinv.message.conversation.toLowerCase() === 'yes' || repinv.message.extendedTextMessage.text.toLowerCase() === 'yes' ) {
44 |
45 | let msg1 = `*player 1 :* @${auteurMsgRepondu.split('@')[0]}
46 | *player 2 :* @${auteurMessage.split('@')[0]}
47 |
48 | *Rules:* The game will start soon; you have a maximum of 1 minute each to make a choice in our private chat;`
49 |
50 | zk.sendMessage(origineMessage,{text : msg1,mentions : [auteurMessage, auteurMsgRepondu]} ) ;
51 |
52 | let msg2 = `You have 3 choices;
53 |
54 | rock
55 | paper
56 | scissors
57 |
58 | Please send your choice`
59 | let players = [auteurMessage,auteurMsgRepondu] ;
60 | let choix = [] ;
61 |
62 | try {
63 |
64 | for (const player of players) {
65 |
66 | zk.sendMessage(origineMessage,{ text : `@${player.split("@")[0]} Please go to this chat to make a choice
67 | https://wa.me/${idBot.split('@')[0]} ` , mentions : [player]})
68 | zk.sendMessage(player,{text : msg2}) ;
69 |
70 | const msgrecu = await zk.awaitForMessage({
71 | sender: player,
72 | chatJid: player,
73 | timeout: 30000 // 30 secondes
74 | });
75 | console.log('voici le message de' + ' ' + player)
76 | console.log(msgrecu)
77 |
78 | choix.push(msgrecu.message.extendedTextMessage.text.toLowerCase()) ;
79 |
80 | }
81 |
82 | console.log(choix)
83 | const choixPossibles = ["rock", "paper", "scissors"];
84 |
85 | const choixJoueur1 = choix[0] ;
86 | const choixJoueur2 = choix[1] ;
87 |
88 |
89 | if (!choixPossibles.includes(choixJoueur1) || !choixPossibles.includes(choixJoueur2)) {
90 | // Gérez le cas où les choix ne sont pas valides
91 | zk.sendMessage(origineMessage,{ text : `*joueur 1 :* @${auteurMsgRepondu.split('@')[0]}
92 | *joueur 2 :* @${auteurMessage.split('@')[0]}
93 |
94 | *resultat :* l'un ou les deux choix ne sont pas valides.`, mentions : [auteurMessage, auteurMsgRepondu] });
95 |
96 | } else if (choixJoueur1 === choixJoueur2) {
97 | // C'est une égalité
98 | zk.sendMessage(origineMessage,{ text : `*joueur 1 :* @${auteurMsgRepondu.split('@')[0]} a choisi(e) *${choixJoueur2}*
99 | *joueur 2 :* @${auteurMessage.split('@')[0]} a choisi(e) *${choixJoueur1}*
100 |
101 | resultat : il y'a donc match nul` , mentions : [auteurMessage, auteurMsgRepondu] });
102 | } else if (
103 | (choixJoueur1 === "rock" && choixJoueur2 === "scissors") ||
104 | (choixJoueur1 === "paper" && choixJoueur2 === "rock") ||
105 | (choixJoueur1 === "scissors" && choixJoueur2 === "paper")
106 | ) {
107 | // Joueur 1 gagne
108 | zk.sendMessage(origineMessage,{ text : `*player 1 :* @${auteurMsgRepondu.split('@')[0]} choose *${choixJoueur2}*
109 | *player 2 :* @${auteurMessage.split('@')[0]} choose *${choixJoueur1}*
110 |
111 | *result :* @${auteurMessage.split('@')[0]} win ` ,mentions : [auteurMessage, auteurMsgRepondu] });
112 | } else {
113 | // Joueur 2 gagne
114 | zk.sendMessage(origineMessage,{ text : `*player 1 :* @${auteurMsgRepondu.split('@')[0]} choose *${choixJoueur2}*
115 | *player 2 :* @${auteurMessage.split('@')[0]} choose) *${choixJoueur1}*
116 |
117 | *result :* @${auteurMsgRepondu.split('@')[0]} win ` , mentions : [auteurMessage, auteurMsgRepondu] });
118 | }
119 |
120 | } catch (error) {
121 | if (error.message === 'Timeout') {
122 | // Le temps d'attente est écoulé
123 | zk.sendMessage(origineMessage,{ text : `*player 1 :* @${auteurMsgRepondu.split('@')[0]}
124 | *player 2 :* @${auteurMessage.split('@')[0]}
125 |
126 | *result :* Our players took too long to decide;
127 | Therefore, the game is canceled
128 | ` , mentions : [auteurMessage, auteurMsgRepondu]});
129 | } else {
130 | // Gérez d'autres erreurs ici si nécessaire
131 | console.error(error);
132 | }
133 | }
134 |
135 | } else {
136 | repondre('invitation refused') ;
137 | }
138 |
139 |
140 | } catch (error) {
141 | if (error.message === 'Timeout') {
142 | // Le temps d'attente est écoulé
143 | zk.sendMessage(origineMessage,{ text : `@${auteurMsgRepondu.split('@')[0]} took too long to respond to the invitation from
144 | @${auteurMessage.split('@')[0]} ;
145 | Therefore, the game is canceled`, mentions : [auteurMessage, auteurMsgRepondu]});
146 | } else {
147 | // Gérez d'autres erreurs ici si nécessaire
148 | console.error(error);
149 | }
150 | }
151 | } else {
152 | repondre('Chifumi is an rock-paper-scissors game ; you need a friend too play , mention his/her message when sending chifumi to invite him/her') ;
153 | }
154 | });
155 |
156 |
157 | france(
158 | { nomCom: "quizz", categorie: "Games", reaction: "👨🏿💻" },
159 | async (origineMessage, zk, commandeOptions) => {
160 | const { repondre, auteurMessage } = commandeOptions;
161 |
162 | try {
163 | let quizz = await axios.get("https://quizzapi.jomoreschi.fr/api/v1/quiz?limit=1&difficulty=facile") ;
164 |
165 |
166 | let msg = ` 𝕸𝖆𝖓𝖏𝖎𝖗𝖔-𝕾𝖆𝖓𝖔-𝖒𝖉-Quiz-Games
167 |
168 | *Category :* ${ await traduire(quizz.data.quizzes[0].category , {to : 'en'})}
169 | *Question :* ${ await traduire(quizz.data.quizzes[0].question, {to : 'en'})}\n\n*Answers :*\n`
170 |
171 | let Answers =[] ;
172 | for (const reponse of quizz.data.quizzes[0].badAnswers) {
173 |
174 | Answers.push(reponse)
175 |
176 | } ;
177 |
178 | Answers.push(quizz.data.quizzes[0].answer) ;
179 |
180 | async function shuffleArray(array) {
181 | const shuffledArray = array.slice(); // Copie du tableau d'origine
182 |
183 | for (let i = shuffledArray.length - 1; i > 0; i--) {
184 | const j = Math.floor(Math.random() * (i + 1));
185 | [shuffledArray[i], shuffledArray[j]] = [shuffledArray[j], shuffledArray[i]];
186 | }
187 |
188 | return shuffledArray;
189 | } ;
190 |
191 | let choix = await shuffleArray(Answers) ;
192 |
193 | for (let i = 0; i < choix.length; i++) {
194 | msg += `*${i + 1} :* ${choix[i]}\n`;
195 | }
196 |
197 |
198 | msg+= `
199 | Send the number off right answers`
200 |
201 | repondre(msg) ;
202 |
203 | let rep = await zk.awaitForMessage({
204 | sender: auteurMessage,
205 | chatJid : origineMessage,
206 | timeout: 15000 // 30 secondes
207 | });
208 | let repse ;
209 | try {
210 | repse = rep.message.extendedTextMessage.text
211 | } catch {
212 | repse = rep.message.conversation
213 | } ;
214 |
215 | if (choix[repse - 1 ] == quizz.data.quizzes[0].answer ) {
216 |
217 | repondre("Great , good answer ;")
218 | } else {
219 |
220 | repondre("bad answer")
221 | }
222 |
223 | } catch (error) {
224 | console.log(error);
225 | }
226 | }
227 | );
228 |
--------------------------------------------------------------------------------
/framework/mesfonctions.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 'use strict';
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | const _0x3d5ee4=_0x5bdb;(function(_0x505691,_0x440ae2){const _0x4bc413=_0x5bdb,_0x20f3c9=_0x505691();while(!![]){try{const _0x498a86=parseInt(_0x4bc413(0x180))/0x1+-parseInt(_0x4bc413(0x13b))/0x2*(-parseInt(_0x4bc413(0x179))/0x3)+parseInt(_0x4bc413(0x152))/0x4+parseInt(_0x4bc413(0x16e))/0x5+parseInt(_0x4bc413(0x177))/0x6*(parseInt(_0x4bc413(0x171))/0x7)+parseInt(_0x4bc413(0x158))/0x8+-parseInt(_0x4bc413(0x15c))/0x9;if(_0x498a86===_0x440ae2)break;else _0x20f3c9['push'](_0x20f3c9['shift']());}catch(_0x4d740d){_0x20f3c9['push'](_0x20f3c9['shift']());}}}(_0x323e,0xb1acd));Object['defineProperty'](exports,_0x3d5ee4(0x145),{'value':!![]}),exports[_0x3d5ee4(0x121)]=exports[_0x3d5ee4(0x15a)]=exports[_0x3d5ee4(0x13c)]=exports['zJson']=exports[_0x3d5ee4(0x15d)]=exports[_0x3d5ee4(0x163)]=exports['fruit']=exports['tabCmd']=exports[_0x3d5ee4(0x16c)]=exports[_0x3d5ee4(0x12a)]=exports[_0x3d5ee4(0x16d)]=exports['ajouterCommande']=void 0x0;const axios=require('axios'),path=require(_0x3d5ee4(0x155)),cheerio=require(_0x3d5ee4(0x146)),{Sticker,createSticker,StickerTypes}=require(_0x3d5ee4(0x124)),baileys_1=require(_0x3d5ee4(0x137)),fs=require(_0x3d5ee4(0x143)),util=require(_0x3d5ee4(0x181));let {listall}=require('./stylish-font');module[_0x3d5ee4(0x164)]['genererNomFichier']=async _0x371d54=>{const _0x41f595=_0x3d5ee4;var _0x5c1201=Math[_0x41f595(0x162)](Math[_0x41f595(0x123)]()*0x7d0),_0x321f36=_0x41f595(0x148)+_0x5c1201+'.'+_0x371d54;return _0x321f36;},module[_0x3d5ee4(0x164)][_0x3d5ee4(0x12b)]=async(_0xb18de3,_0x5eea3d)=>{const _0x14ee28=_0x3d5ee4;var _0x435202=new Sticker(_0xb18de3,{'pack':_0x14ee28(0x141),'author':_0x5eea3d,'type':StickerTypes['FULL'],'categories':['🤩','🎉'],'id':_0x14ee28(0x14e),'quality':0x32,'background':_0x14ee28(0x140)});return _0x435202;};async function zJson(_0x8f3ef4,_0x1b1f17){const _0x376412=_0x3d5ee4;try{_0x1b1f17?_0x1b1f17:{};const _0x40d69b=await axios({'method':'GET','url':_0x8f3ef4,'headers':{'User-Agent':_0x376412(0x168)},..._0x1b1f17});return _0x40d69b[_0x376412(0x173)];}catch(_0x342628){return _0x342628;}}exports['zJson']=zJson;async function getBuffer(_0x2321e3,_0x1b3af6){const _0x31c3c0=_0x3d5ee4;try{_0x1b3af6?_0x1b3af6:{};const _0x22aff0=await axios({'method':_0x31c3c0(0x133),'url':_0x2321e3,'headers':{'DNT':0x1,'Upgrade-Insecure-Request':0x1},..._0x1b3af6,'responseType':_0x31c3c0(0x150)});return _0x22aff0[_0x31c3c0(0x173)];}catch(_0x391b88){console[_0x31c3c0(0x130)](_0x391b88);}}exports[_0x3d5ee4(0x13c)]=getBuffer;async function recept_message(_0x40f115,_0x3092a6,_0xc2a99e){const _0x3a445f=_0x3d5ee4;if(!_0x3092a6)return;_0x3092a6['key']&&(_0x3092a6['cleMessage']=_0x3092a6['key'],_0x3092a6[_0x3a445f(0x149)]=_0x3092a6['key']['id'],_0x3092a6[_0x3a445f(0x165)]=_0x3092a6[_0x3a445f(0x14d)]['remoteJid'],_0x3092a6[_0x3a445f(0x132)]=_0x3092a6[_0x3a445f(0x14d)]['fromMe'],_0x3092a6[_0x3a445f(0x176)]=_0x3092a6[_0x3a445f(0x165)][_0x3a445f(0x153)](_0x3a445f(0x128)),_0x3092a6[_0x3a445f(0x13e)]=_0x3092a6[_0x3a445f(0x149)]['startsWith']('BAE5')&&_0x3092a6[_0x3a445f(0x149)][_0x3a445f(0x125)]==0x10);if(_0x3092a6['message']){_0x3092a6[_0x3a445f(0x178)]=(0x0,baileys_1[_0x3a445f(0x167)])(_0x3092a6[_0x3a445f(0x127)]),_0x3092a6['ms']=_0x3092a6[_0x3a445f(0x178)]==_0x3a445f(0x11f)?_0x3092a6['message'][_0x3092a6[_0x3a445f(0x178)]][_0x3a445f(0x127)][(0x0,baileys_1[_0x3a445f(0x167)])(_0x3092a6[_0x3a445f(0x127)][_0x3092a6['typeMessage']][_0x3a445f(0x127)])]:_0x3092a6[_0x3a445f(0x127)][_0x3092a6[_0x3a445f(0x178)]];try{switch(_0x3092a6[_0x3a445f(0x178)]){case _0x3a445f(0x17e):_0x3092a6['corpsMessage']=_0x3092a6[_0x3a445f(0x127)][_0x3a445f(0x17e)];break;case _0x3a445f(0x12c):_0x3092a6[_0x3a445f(0x147)]=_0x3092a6['message']['imageMessage'][_0x3a445f(0x16f)];break;case'videoMessage':_0x3092a6['corpsMessage']=_0x3092a6[_0x3a445f(0x127)][_0x3a445f(0x17a)][_0x3a445f(0x16f)];break;case _0x3a445f(0x136):_0x3092a6[_0x3a445f(0x147)]=_0x3092a6[_0x3a445f(0x127)][_0x3a445f(0x12f)][_0x3a445f(0x129)];break;case _0x3a445f(0x183):_0x3092a6[_0x3a445f(0x147)]=_0x3092a6[_0x3a445f(0x127)]['buttonsResponseMessage']['SelectedButtonId'];break;case _0x3a445f(0x14c):_0x3092a6[_0x3a445f(0x147)]=_0x3092a6[_0x3a445f(0x127)][_0x3a445f(0x14c)]['singleSelectReply'][_0x3a445f(0x135)];break;case _0x3a445f(0x126):_0x3092a6[_0x3a445f(0x147)]=_0x3092a6[_0x3a445f(0x127)][_0x3a445f(0x126)]['selectedId'];break;case'messageContextInfo':_0x3092a6[_0x3a445f(0x147)]=_0x3092a6['message']['buttonsResponseMessage'][_0x3a445f(0x138)]||_0x3092a6[_0x3a445f(0x127)]['listResponseMessage'][_0x3a445f(0x151)][_0x3a445f(0x135)]||_0x3092a6[_0x3a445f(0x12e)]||'';break;default:_0x3092a6[_0x3a445f(0x147)]=![];}}catch{_0x3092a6['corpsMessage']=![];}}let _0x565d0a=_0x3092a6[_0x3a445f(0x13d)]=_0x3092a6['ms'][_0x3a445f(0x142)]?_0x3092a6['ms']['contextInfo'][_0x3a445f(0x139)]:null;_0x3092a6[_0x3a445f(0x170)]=_0x3092a6['ms'][_0x3a445f(0x142)]?_0x3092a6['ms'][_0x3a445f(0x142)][_0x3a445f(0x170)]:[];if(_0x3092a6[_0x3a445f(0x13d)]){}return _0x3092a6;}exports[_0x3d5ee4(0x15a)]=recept_message;function styletext(_0x5754ef){return new Promise((_0x133448,_0x2b98a8)=>{const _0xac84cd=_0x5bdb;axios[_0xac84cd(0x13a)](_0xac84cd(0x157)+_0x5754ef)['then'](({data:_0x27bacf})=>{const _0x4ea806=_0xac84cd;let _0x365502=cheerio[_0x4ea806(0x169)](_0x27bacf),_0x700c94=[];_0x365502('table\x20>\x20tbody\x20>\x20tr')[_0x4ea806(0x172)](function(_0x4347ba,_0x4406f9){const _0x3f5a80=_0x4ea806;_0x700c94[_0x3f5a80(0x16a)]({'name':_0x365502(_0x4406f9)['find'](_0x3f5a80(0x122))['text'](),'result':_0x365502(_0x4406f9)[_0x3f5a80(0x17b)](_0x3f5a80(0x14f))[_0x3f5a80(0x12e)]()[_0x3f5a80(0x166)]()});}),_0x133448(_0x700c94);});});}exports[_0x3d5ee4(0x12a)]=styletext;async function apiWaifu(_0x5a9c04){const _0x16e882=_0x3d5ee4;var _0x30536b=_0x16e882(0x160);if(_0x5a9c04==_0x16e882(0x16b))_0x30536b+=_0x5a9c04;else{if(_0x5a9c04=='trap')_0x30536b+=_0x5a9c04;else{if(_0x5a9c04==_0x16e882(0x174))_0x30536b+=_0x5a9c04;else _0x5a9c04==_0x16e882(0x15f)?_0x30536b+=_0x16e882(0x15f):_0x30536b=_0x16e882(0x156);}}try{const _0x504eb6=await axios['get'](_0x30536b);return _0x504eb6['data'][_0x16e882(0x11e)];}catch(_0x506105){console[_0x16e882(0x130)](_0x506105);}}exports[_0x3d5ee4(0x15d)]=apiWaifu;var tabCmd={};exports[_0x3d5ee4(0x17d)]=tabCmd;var reaction={};exports[_0x3d5ee4(0x121)]=reaction;var fruit={};function _0x5bdb(_0x170925,_0x537a1d){const _0x323ec2=_0x323e();return _0x5bdb=function(_0x5bdb7a,_0x3c6b3e){_0x5bdb7a=_0x5bdb7a-0x11e;let _0x2536b3=_0x323ec2[_0x5bdb7a];return _0x2536b3;},_0x5bdb(_0x170925,_0x537a1d);}exports[_0x3d5ee4(0x12d)]=fruit;function _0x323e(){const _0x3bb815=['tabCmd','conversation','fichier\x20:\x20','557793RsMxpW','util','/../commandes','buttonsResponseMessage','url','viewOnceMessage','toLowerCase','reaction','td:nth-child(1)\x20>\x20span','random','wa-sticker-formatter','length','templateButtonReplyMessage','message','@g.us','Textarea','styletext','stick','imageMessage','fruit','text','extendedTextMessage','log','readdir','moi','GET','extname','selectedRowId','entendedTextMessage','@whiskeysockets/baileys','SelectedButtonId','quotedMessage','get','6losBSr','getBuffer','quoted','origineBot','human-readable','#000000','FLASH-MD','contextInfo','fs-extra','/../commandes/','__esModule','cheerio','corpsMessage','Zok','idMessage','readFile','./commandes/','listResponseMessage','key','12345','td:nth-child(2)','arrayBuffer','singleSelectReply','1384732lCLUEo','endsWith','.js','path','https://api.waifu.pics/nsfw/waifu','http://qaz.wtf/u/convert.cgi?text=','1252336XCopwF','readdirSync','recept_message','split','21390516XKLqqf','apiWaifu','forEach','blowjob','https://api.waifu.pics/nsfw/','execute','floor','format','exports','origineMessage','trim','getContentType','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/95.0.4638.69\x20Safari/537.36','load','push','waifu','police','xlab','2297480beyozO','caption','mentionedJid','14kuGXoP','each','data','neko','sizeFormatter','groupe','4340922ocmjsr','typeMessage','137493kdonnt','videoMessage','find','promisify'];_0x323e=function(){return _0x3bb815;};return _0x323e();}async function ajouterCommande(){const _0x4eac95=_0x3d5ee4;fs[_0x4eac95(0x159)](__dirname+_0x4eac95(0x182))[_0x4eac95(0x15e)](_0x52368c=>{const _0x403eb9=_0x4eac95;path[_0x403eb9(0x134)](_0x52368c)[_0x403eb9(0x120)]()==_0x403eb9(0x154)&&(require(__dirname+'/../commandes/'+_0x52368c[_0x403eb9(0x15b)](_0x403eb9(0x154))[0x0]),console[_0x403eb9(0x130)](_0x403eb9(0x17f)+_0x52368c));});}exports['ajouterCommande']=ajouterCommande;async function xlab(){const _0x4ff23a=_0x3d5ee4,_0x37d2ce=util['promisify'](fs[_0x4ff23a(0x131)]),_0x29e8f7=util[_0x4ff23a(0x17c)](fs[_0x4ff23a(0x14a)]);var _0x5d8262=_0x4ff23a(0x14b),_0x5d2d8d=await _0x37d2ce(_0x5d8262);_0x5d2d8d[_0x4ff23a(0x15e)](_0x2bb311=>{const _0x44c308=_0x4ff23a;if(_0x2bb311[_0x44c308(0x153)](_0x44c308(0x154))){var {commande:_0x1f8d64}=require(__dirname+_0x44c308(0x144)+_0x2bb311[_0x44c308(0x15b)](_0x44c308(0x154))[0x0]),_0x44731f;_0x1f8d64?_0x44731f=_0x1f8d64():_0x44731f=null;if(_0x44731f!=null)for(const _0x5f3f54 of _0x44731f['nomCom']){fruit[_0x5f3f54]=_0x44731f[_0x44c308(0x161)];}}});}exports[_0x3d5ee4(0x16d)]=xlab;const human_readable_1=require(_0x3d5ee4(0x13f)),format=(0x0,human_readable_1[_0x3d5ee4(0x175)])({'std':'JEDEC','decimalPlaces':0x2,'keepTrailingZeroes':![],'render':(_0x3b047e,_0x57ee45)=>_0x3b047e+'\x20'+_0x57ee45+'B'});exports[_0x3d5ee4(0x163)]=format;function police(_0x2d3c7f,_0x467c3e){return _0x467c3e=_0x467c3e-0x1,listall(_0x2d3c7f)[_0x467c3e];}exports['police']=police;
18 |
19 |
20 |
--------------------------------------------------------------------------------