Best Python code snippet using mailosaur-python_python
ramlan.js
Source:ramlan.js
...481 addLevelingXp(sender, amountXp)482 if (requiredXp <= getLevelingXp(sender)) {483 addLevelingLevel(sender, 1)484 bayarLimit(sender, 3)485 await reply(nad.levelup(pushname, sender, getLevelingXp, getLevel, getLevelingLevel, role))486 }487 } catch (err) {488 console.error(err)489 }490 }491 const checkLimit = (sender) => {492 let found = false493 for (let lmt of _limit) {494 if (lmt.id === sender) {495 let limitCounts = limitawal - lmt.limit496 if (limitCounts <= 0) return rmln.sendMessage(from, `Limit Anda Sudah Habis\nUpgrade Premium Biar Bebas Limit Kak`, text, { quoted: Lan })497 rmln.sendMessage(from, nad.limitcount(isPrem, limitCounts), text, { quoted: Lan })498 found = true499 }500 }501 if (found === false) {502 let obj = { id: sender, limit: 0 }503 _limit.push(obj)504 fs.writeFileSync('./database/limit.json', JSON.stringify(_limit))505 rmln.sendMessage(from, nad.limitcount(isPrem, limitCounts), text, { quoted: Lan })506 }507 }508 const isLimit = (sender) => {509 let position = false510 for (let i of _limit) {511 if (i.id === sender) {512 let limits = i.limit513 if (limits >= limitawal) {514 position = true515 rmln.sendMessage(from, nad.limitend(pushname, prefix), text, { quoted: Lan })516 return true517 } else {518 _limit519 position = true520 return false521 }522 }523 }524 if (position === false) {525 const obj = { id: sender, limit: 0 }526 _limit.push(obj)527 fs.writeFileSync('./database/limit.json', JSON.stringify(_limit))528 return false529 }530 }531 if (isRegistered) {532 const checkATM = checkATMuser(sender)533 try {534 if (checkATM === undefined) addATM(sender)535 const uangsaku = Math.floor(Math.random() * 10) + 90536 addKoinUser(sender, uangsaku)537 } catch (err) {538 console.error(err)539 }540 }541 const limitAdd = (sender) => {542 if (isOwner && isPrem) { return false; }543 let position = false544 Object.keys(_limit).forEach((i) => {545 if (_limit[i].id == sender) {546 position = i547 }548 })549 if (position !== false) {550 _limit[position].limit += 1551 fs.writeFileSync('./database/limit.json', JSON.stringify(_limit))552 }553 }554 if (isGroup) {555 try {556 const getmemex = groupMembers.length557 if (getmemex <= memberlimit) {558 reply(`maaf kak membernya sedikit, aku gak bisa disini! Minimal member : ${memberlimit}`)559 setTimeout(() => {560 rmln.groupLeave(from)561 }, 5000)562 setTimeout(() => {563 rmln.updatePresence(from, Presence.composing)564 reply("See you kak")565 }, 4000)566 setTimeout(() => {567 rmln.updatePresence(from, Presence.composing)568 reply("Oh iya, jangan lupain aku ya:(")569 }, 3000)570 setTimeout(() => {571 rmln.updatePresence(from, Presence.composing)572 reply("Baru undang aku lagi:)")573 }, 2000)574 setTimeout(() => {575 rmln.updatePresence(from, Presence.composing)576 reply("Membernya tambahin dulu")577 }, 1000)578 setTimeout(() => {579 rmln.updatePresence(from, Presence.composing)580 reply("Aku pamit ya kak:)")581 }, 0)582 }583 } catch (err) { console.error(err) }584 }585 586 for (let kemem of bad) {587588 if (budy.includes(kemem)) {589590 if (!isGroup) return591 if (!isBadWord) return592 if (isGroupAdmins) return reply('Untung Kau Admin:) Btw Jangan Ngegas Omð')593 rmln.updatePresence(from, Presence.composing)594 var kic = `${sender.split("@")[0]}@s.whatsapp.net`595 reply(`Woyy ${sender.split("@")[0]} Jangan Ngomong Kasar Ngemtodð¡`)596 setTimeout(() => {597 rmln.groupRemove(from, [kic]).catch((e) => { reply(`BOT HARUS JADI ADMIN`) })598 }, 3000)599 setTimeout(() => {600 rmln.updatePresence(from, Presence.composing)601 reply("Babay")602 }, 2000)603 setTimeout(() => {604 rmln.updatePresence(from, Presence.composing)605 reply("Siap Siap Di Kick")606 }, 1000)607 setTimeout(() => {608 rmln.updatePresence(from, Presence.composing)609 reply("Lu Udah Ngomong Kasar")610 }, 0)611 }612 }613 if (budy.includes("https://chat.whatsapp.com/")) {614 if (!isGroup) return615 if (!isAntiLink) return616 if (isGroupAdmins) return reply('Atasan grup mah bebas yakan:v')617 rmln.updatePresence(from, Presence.composing)618 if (budy.includes("#izinbos")) return reply("Iya kak jangan spam ya")619 var kic = `${sender.split("@")[0]}@s.whatsapp.net`620 reply(`Woyy ${sender.split("@")[0]} Gak Boleh Share Link`)621 setTimeout(() => {622 rmln.groupRemove(from, [kic]).catch((e) => { reply(`BOT HARUS JADI ADMIN`) })623 }, 3000)624 setTimeout(() => {625 rmln.updatePresence(from, Presence.composing)626 reply("Hedsot :v")627 }, 2000)628 setTimeout(() => {629 rmln.updatePresence(from, Presence.composing)630 reply("Bismillah")631 }, 1000)632 setTimeout(() => {633 rmln.updatePresence(from, Presence.composing)634 reply("Ready?")635 }, 0)636 }637 colors = ['red', 'white', 'black', 'blue', 'yellow', 'green']638 const isMedia = (type === 'imageMessage' || type === 'videoMessage')639 const isQuotedImage = type === 'extendedTextMessage' && content.includes('imageMessage')640 const isQuotedAudio = type === 'extendedTextMessage' && content.includes('audioMessage')641 const isQuotedVideo = type === 'extendedTextMessage' && content.includes('videoMessage')642 const isQuotedSticker = type === 'extendedTextMessage' && content.includes('stickerMessage')643 const isQuotedText = type === 'extendedTextMessage' && content.includes('extendedTextMessage')644 if (!isGroup && isCmd) console.log('\x1b[1;31m=\x1b[1;37m>', '[\x1b[1;32mBABYBOT\x1b[1;37m]', time, color(command), 'dari', color(sender.split('@')[0]), 'args :', color(args.length))645 if (!isGroup && !isCmd) console.log('\x1b[1;31m=\x1b[1;37m>', '[\x1b[1;31mR4ML4N\x1b[1;37m]', time, color('Pesan'), 'dari', color(pushname), 'args :', color(args.length))646 if (isCmd && isGroup) console.log('\x1b[1;31m=\x1b[1;37m>', '[\x1b[1;32mBABYBOT\x1b[1;37m]', time, color(command), 'dari', color(sender.split('@')[0]), 'in', color(groupName), 'args :', color(args.length))647 if (!isCmd && isGroup) console.log('\x1b[1;31m=\x1b[1;37m>', '[\x1b[1;31mR4ML4N\x1b[1;37m]', time, color('Pesan'), 'dari', color(pushname), 'in', color(groupName), 'args :', color(args.length))648 switch (command) {649 case 'help':650 case 'menu':651 if (isBanned) return reply(nad.baned())652 if (!isRegistered) return reply(nad.noregis())653 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))654 me = rmln.user655 const reqXp = 5000 * (Math.pow(2, getLevelingLevel(sender)) - 1)656 const uangku = checkATMuser(sender)657 const lvl = getLevelingLevel(sender)658 const ramadhan = await axios.get('https://xinzbot-api.herokuapp.com/api/hitungmundur?apikey=XinzBot&tanggal=12&bulan=4')659 const ucapan = await axios.get('https://xinzbot-api.herokuapp.com/api/ucapan?apikey=XinzBot&timeZone=Asia/Jakarta')660 gmenu = await getBuffer(me.imgUrl)661 const menunya = `ââ ã *BOT WHATSAPP* ã ââ662${a}${ucapan.data.result}${a}663664Hitung mundur Ramadhan665${ramadhan.data.result}666667*INFO USER BOT*668${a}â Nama : ${pushname}${a}669${a}â User : ${prema}${a}670${a}â Uang : ${uangku}${a}671${a}â Xp : ${reqXp}${a}672${a}â Rank : ${role}${a}673${a}â Level : ${lvl}${a}674675*INFO BOT*676${a}â Nama : ${botName}${a}677${a}â Owner : ${ownerName}${a}678${a}â Prefix : ã ${prefix} ã${a}679${a}â Total Register : ${_registered.length}${a}680${a}â User Premium : ${premium.length}${a}681682*LIST MENU*683${a}â ${prefix}simplemenu${a}684${a}â ${prefix}groupmenu${a}685${a}â ${prefix}downloadmenu${a}686${a}â ${prefix}makermenu${a}687${a}â ${prefix}sertifikatmenu${a}688${a}â ${prefix}gabutmenu${a}689${a}â ${prefix}randommenu${a}690${a}â ${prefix}dompetmenu${a}691${a}â ${prefix}toolsmenu${a}692${a}â ${prefix}mutualmenu${a}693${a}â ${prefix}othermenu${a}694${a}â ${prefix}storagemenu${a}695${a}â ${prefix}ownermenu${a}696697*ABOUT*698${a}â ${prefix}runtime${a}699${a}â ${prefix}creator${a}700${a}â ${prefix}donasi${a}701${a}â ${prefix}iklan${a}702${a}â ${prefix}speed${a}703${a}â ${prefix}info${a}704705ââ ã *BOT WHATSAPP* ã ââ`706 rmln.sendMessage(from, gmenu, image, { quoted: { key: { fromMe: false, participant: `0@s.whatsapp.net`, ...(from ? { remoteJid: "status@broadcast" } : {}) }, message: { "imageMessage": { "mimetype": "image/jpeg", "caption": cr, "jpegThumbnail": fs.readFileSync(`./src/image/thumbnail.jpeg`) } } }, caption: menunya })707 break708 case 'owner':709 case 'creator':710 rmln.sendMessage(from, { displayname: "Jeff", vcard: vcard }, MessageType.contact, { quoted: Lan })711 rmln.sendMessage(from, 'Tuh Nomor Pacarku >_<, Ehh Ownerku mksdnya:v', MessageType.text, { quoted: Lan })712 break713714 case 'donasi':715 case 'donate':716 rmln.sendMessage(from, nad.donasi(), text, { quoted: Lan })717 break718 case 'iklan':719 rmln.sendMessage(from, nad.iklan(botName, ownerNumbers, ownerName), text, { quoted: Lan })720 break721722 case 'speed':723 case 'ping':724 if (isBanned) return reply(nad.baned())725 if (!isRegistered) return reply(nad.noregis())726 const timestamp = speed();727 const latensi = speed() - timestamp728 fakestatus(`Speed: ${latensi.toFixed(4)} _ms_`)729 break730 case 'runtime':731 if (isBanned) return reply(nad.baned())732 if (!isRegistered) return reply(nad.noregis())733 runtime = process.uptime()734 runte = `ã *RUNTIME* ã\n${kyun(runtime)}`735 fakestatus(`${runte}`)736 break737 738 case 'info':739 if (isBanned) return reply(nad.baned())740 if (!isRegistered) return reply(nad.noregis())741 let i = []742 let giid = []743 for (mem of totalchat){744 i.push(mem.jid)745 }746 for (id of i){747 if (id && id.includes('g.us')){748 giid.push(id)749 }750 }751 let timestampi = speed();752 let latensii = speed() - timestampi753 anu = process.uptime()754 mee = rmln.user755 ca = totalchat756 ginfo = await getBuffer(mee.imgUrl)757 inponya = `ââ ã *INFO* ã ââ758${a}â Bot type : NodeJS V14${a}759${a}â Name : ${rmln.user.name}${a}760${a}â Browser : ${rmln.browserDescription[1]}${a}761${a}â Server : ${rmln.browserDescription[0]}${a}762${a}â Version : ${rmln.browserDescription[2]}${a}763${a}â Speed : ${latensii.toFixed(4)} Second${a}764${a}â Handphone : ${rmln.user.phone.device_manufacturer}${a}765${a}â Versi WA : ${rmln.user.phone.wa_version}${a}766${a}â Group Chat : ${giid.length}${a}767${a}â Personal Chat : ${totalchat.length - giid.length}${a}768${a}â Total Chat : ${totalchat.length}${a}769${a}â Total Block Contact : ${blocked.length}${a}770771*THANKS TO*772${a}â Ramlan ID${a}773${a}â MrG3P5${a}774${a}â MrHRTZ${a}775${a}â Nafiz${a}776${a}â Itsmeiky${a}777${a}â DuingZ${a}778${a}â Arga${a}779${a}â Nayla${a}780${a}â Fadhil${a}781${a}â Adiwajshing/baileys${a}782${a}â MhankBarBar${a}783${a}â SlavyanDesu${a}784${a}â Penyedia API${a}785786ã *BOT WHATSAPP* ã`787 rmln.sendMessage(from, ginfo, image, { quoted: { key: { fromMe: false, participant: `0@s.whatsapp.net`, ...(from ? { remoteJid: "status@broadcast" } : {}) }, message: { "imageMessage": { "mimetype": "image/jpeg", "caption": cr, "jpegThumbnail": fs.readFileSync(`./src/image/thumbnail.jpeg`) } } }, caption: inponya })788 break789790 case 'simplemenu':791 case 'simpelmenu':792 if (isBanned) return reply(nad.baned())793 if (!isRegistered) return reply(nad.noregis())794 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))795 const simpel = `ã *SIMPLE MENU* ã796${a}â ${prefix}sticker${a}797${a}â ${prefix}stickergif${a}798${a}â ${prefix}nuliskiri${a}799${a}â ${prefix}nuliskanan${a}800${a}â ${prefix}stalkig${a}801${a}â ${prefix}tts${a}802${a}â ${prefix}ttp${a}803${a}â ${prefix}attp${a}804${a}â ${prefix}simi${a}805${a}â ${prefix}quotes${a}806${a}â ${prefix}bikinquote${a}807808ã *${botName}* ã`809 fakestatus(simpel)810 break811 case 'sticker':812 case 'stiker':813 case 'stickergif':814 case 'stikergif':815 case 'sgif':816 case 's':817 if (isBanned) return reply(nad.baned())818 if (!isRegistered) return reply(nad.noregis())819 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))820 await limitAdd(sender)821 if ((isMedia && !Lan.message.videoMessage || isQuotedImage) && args.length == 0) {822 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo : Lan823 const media = await rmln.downloadAndSaveMediaMessage(encmedia)824825 ran = getRandom('.webp')826 await ffmpeg(`./${media}`)827 .input(media)828 .on('start', function (cmd) {829 console.log(`Started : ${cmd}`)830 })831 .on('error', function (err) {832 console.log(`Error : ${err}`)833 fs.unlinkSync(media)834 costum('[â] SEDANG DIPROSES', text, tescuk, cr)835 })836 .on('end', function () {837 console.log('Finish')838 rmln.sendMessage(from, fs.readFileSync(ran), sticker, {quoted: Lan})839 fs.unlinkSync(media)840 fs.unlinkSync(ran)841 })842 .addOutputOptions([`-vcodec`, `libwebp`, `-vf`, `scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=white@0.0, split [a][b]; [a] palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p] paletteuse`])843 .toFormat('webp')844 .save(ran)845 } else if ((isMedia && Lan.message.videoMessage.seconds < 11 || isQuotedVideo && Lan.message.extendedTextMessage.contextInfo.quotedMessage.videoMessage.seconds < 11) && args.length == 0) {846 const encmedia = isQuotedVideo ? JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo : Lan847 const media = await rmln.downloadAndSaveMediaMessage(encmedia)848 ran = getRandom('.webp')849 costum('[â] SEDANG DIPROSES', text, tescuk, cr)850 await ffmpeg(`./${media}`)851 .inputFormat(media.split('.')[1])852 .on('start', function (cmd) {853 console.log(`Started : ${cmd}`)854 })855 .on('error', function (err) {856 console.log(`Error : ${err}`)857 fs.unlinkSync(media)858 tipe = media.endsWith('.mp4') ? 'video' : 'gif'859 reply(`Gagal, pada saat mengkonversi ${tipe} ke stiker`)860 })861 .on('end', function () {862 console.log('Finish')863864 rmln.sendMessage(from, fs.readFileSync(ran), sticker, {quoted: Lan})865 fs.unlinkSync(media)866 fs.unlinkSync(ran)867 })868 .addOutputOptions([`-vcodec`, `libwebp`, `-vf`, `scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=white@0.0, split [a][b]; [a] palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p] paletteuse`])869 .toFormat('webp')870 .save(ran)871 } else {872 reply(`Kirim gambar dengan caption ${prefix}sticker\nDurasi Sticker Video 1-9 Detik`)873 }874 break875876 case 'nuliskiri':877 if (isBanned) return reply(nad.baned())878 if (!isRegistered) return reply(nad.noregis())879 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))880 await limitAdd(sender)881 if (!q) return reply(`Teksnya mana kak? Contoh : ${prefix}nuliskiri Ramlan baik hati`)882 reply('ãâãWAIT BRO GUE NULIS DUMLU YAKAN')883 kir = await getBuffer(`https://api.xteam.xyz/magernulis2?text=${q}&APIKEY=${xteam}`)884 rmln.sendMessage(from, kir, image, { quoted: Lan, caption: 'Nihh kak' })885 break886 case 'nuliskanan':887 if (isBanned) return reply(nad.baned())888 if (!isRegistered) return reply(nad.noregis())889 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))890 await limitAdd(sender)891 if (!q) return reply(`Teksnya mana kak? Contoh : ${prefix}nuliskanan Ramlan baik hati`)892 reply('ãâãWAIT BRO GUE NULIS DUMLU YAKAN')893 kan = await getBuffer(`https://api.xteam.xyz/magernulis3?text=${q}&APIKEY=${xteam}`)894 rmln.sendMessage(from, kan, image, { quoted: Lan, caption: 'Nihh kak' })895 break896 case 'stalkig':897 if (isBanned) return reply(nad.baned())898 if (!isRegistered) return reply(nad.noregis())899 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))900 await limitAdd(sender)901 if (!q) return reply(`Masukan username!\nContoh :\n${prefix}stalkig iamramlan_`)902 anu = await fetchJson(`https://api.xteam.xyz/dl/igstalk?nama=${q}&APIKEY=${xteam}`)903 reply('ãâãSabar Lagi Stalking IG nya kak')904 stig = await getBuffer(anu.result.user.hd_profile_pic_url_info.url)905 abu = anu.result.user906 hasil = `YAHAHA TELAH DI STALK BOS KU UNTUK USERNAME ${q}907⯠Nama : ${abu.full_name}908⯠Followers : ${abu.follower_count}909⯠Following : ${abu.following_count}910⯠Jumlah Post : ${abu.media_count}911⯠Biografi : ${abu.biography}`912 rmln.sendMessage(from, stig, image, { quoted: Lan, caption: hasil })913 break914915 case 'tts':916 if (isBanned) return reply(nad.baned())917 if (!isRegistered) return reply(nad.noregis())918 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))919 await limitAdd(sender)920 if (args.length < 1) return rmln.sendMessage(from, `Kode bahasanya mana kak? contoh : ${prefix}tts id Halo Ramlan`, text, { quoted: Lan })921 const gtts = require('./lib/gtts')(args[0])922 if (args.length < 2) return rmln.sendMessage(from, `Teksnya mana kak | contoh : ${prefix}tts id ah yamate kudasai`, text, { quoted: Lan })923 var bby = body.slice(8)924 ranm = getRandom('.mp3')925 rano = getRandom('.ogg')926 bby.length > 300927 ? reply('Teks nya terlalu panjang kak')928 : gtts.save(ranm, bby, function () {929 exec(`ffmpeg -i ${ranm} -ar 48000 -vn -c:a libopus ${rano}`, (err) => {930 fs.unlinkSync(ranm)931 buff = fs.readFileSync(rano)932 if (err) return reply(nad.stikga())933 rmln.sendMessage(from, buff, audio, { quoted: Lan, ptt: true })934 fs.unlinkSync(rano)935 })936 })937 break938939 case 'ttp':940 if (isBanned) return reply(nad.baned())941 if (!isRegistered) return reply(nad.noregis())942 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))943 await limitAdd(sender)944 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}ttp BOT`)945 pngttp = './temp/ttp.png'946 webpng = './temp/ttp.webp'947 fetch(`https://api.areltiyan.site/sticker_maker?text=${q}`, { method: 'GET' })948 .then(async res => {949 const ttptxt = await res.json()950 console.log("BERHASIL")951 base64Img.img(ttptxt.base64, 'temp', 'ttp', function (err, filepath) {952 if (err) return console.log(err);953 exec(`ffmpeg -i ${pngttp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${webpng}`, (err) => {954 buffer = fs.readFileSync(webpng)955 rmln.sendMessage(from, buffer, sticker)956 fs.unlinkSync(webpng)957 fs.unlinkSync(pngttp)958 })959 })960 });961 break962 case 'attp':963 if (isBanned) return reply(nad.baned())964 if (!isRegistered) return reply(nad.noregis())965 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))966 await limitAdd(sender)967 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}attp BOT`)968 atetepe = await getBuffer(`https://api.xteam.xyz/attp?file&text=${encodeURIComponent(q)}`)969 rmln.sendMessage(from, atetepe, sticker, { quoted: Lan })970 break971972 case 'simi':973 if (isBanned) return reply(nad.baned())974 if (!isRegistered) return reply(nad.noregis())975 if (!isPrem) return reply(nad.premium(prefix))976 if (!q) return reply(`Mau Ngapain?\nContoh :\n${prefix}simi halo`)977 anu = await fetchJson(`https://api.xteam.xyz/simsimi?kata=halo&APIKEY=${xteam}`)978 reply(anu.jawaban)979 break980981 case 'quotes':982 rmln.updatePresence(from, Presence.composing)983 if (isBanned) return reply(nad.baned())984 if (!isRegistered) return reply(nad.noregis())985 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))986 await limitAdd(sender)987 data = fs.readFileSync('./R4ML4N/quote.json');988 jsonData = JSON.parse(data);989 randIndex = Math.floor(Math.random() * jsonData.length);990 randKey = jsonData[randIndex];991 randQuote = '' + randKey.quote + '\n\n_By: ' + randKey.by + '_'992 fakestatus(randQuote)993 break994995 case 'bikinquote':996 if (isBanned) return reply(nad.baned())997 if (!isRegistered) return reply(nad.noregis())998 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))999 await limitAdd(sender)1000 var gh = body.slice(12)1001 var quote = gh.split("&")[0];1002 var wm = gh.split("&")[1];1003 const pref = `yang mau dijadiin quote apaan, titit?\ncontoh :\n${prefix}bikinquote aku bukan boneka & Kata Ramlan`1004 if (args.length < 1) return reply(pref)1005 reply(nad.wait())1006 anu = await fetchJson(`https://terhambar.com/aw/qts/?kata=${quote}&author=${wm}&tipe=random`, { method: 'get' })1007 biquote = await getBuffer(anu.result)1008 rmln.sendMessage(from, biquote, image, { caption: 'Nih kak >_<', quoted: Lan })1009 break1010 case 'groupmenu':1011 case 'grupmenu':1012 if (isBanned) return reply(nad.baned())1013 if (!isRegistered) return reply(nad.noregis())1014 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1015 const menugrup = `ã *GROUP MENU* ã1016${a}â ${prefix}welcome${a}1017${a}â ${prefix}leveling${a}1018${a}â ${prefix}antilink${a}1019${a}â ${prefix}antibadword${a}1020${a}â ${prefix}group${a}1021${a}â ${prefix}admin${a}1022${a}â ${prefix}add${a}1023${a}â ${prefix}kick${a}1024${a}â ${prefix}hidetag${a}1025${a}â ${prefix}hidetag20${a}1026${a}â ${prefix}level${a}1027${a}â ${prefix}linkgroup${a}1028${a}â ${prefix}tagall${a}1029${a}â ${prefix}setname${a}1030${a}â ${prefix}setdesc${a}1031${a}â ${prefix}demote${a}1032${a}â ${prefix}promote${a}1033${a}â ${prefix}hedsot${a}1034${a}â ${prefix}fitnah${a}1035${a}â ${prefix}jadian${a}1036${a}â ${prefix}leave${a}1037${a}â ${prefix}delete${a}1038${a}â ${prefix}mining${a}10391040ã *${botName}* ã`1041 fakestatus(menugrup)1042 break1043 1044 case 'antibadword':1045 if (isBanned) return reply(nad.baned())1046 if (!isRegistered) return reply(nad.noregis())1047 if (!isGroup) return reply(nad.groupo())1048 if (!isGroupAdmins) return reply(nad.admin())1049 if (!isBotGroupAdmins) return reply(nad.badmin())1050 if (args.length < 1) return reply(`untuk mengaktifkan ketik : ${prefix}antilink 1`)1051 if (Number(args[0]) === 1) {1052 if (isBadWord) return reply('Sudah Aktif Kak')1053 badword.push(from)1054 fs.writeFileSync('./database/badword.json', JSON.stringify(badword))1055 reply('ã SUKSES ãFitur Anti Badword Diaktifkan')1056 rmln.sendMessage(from, `ALLERT!!! Group ini sudah di pasang anti Badword\nJika Kamu Melanggar Maka Akan Saya Tendang`, text)1057 } else if (Number(args[0]) === 0) {1058 if (!isBadWord) return reply('Sudah Mati Kak')1059 var ini = antilink.indexOf(from)1060 badword.splice(ini, 1)1061 fs.writeFileSync('./database/badword.json', JSON.stringify(badword))1062 reply('ã SUKSES ãFitur Anti Badword Dimatikan')1063 } else {1064 reply('1 untuk mengaktifkan, 0 untuk mematikan')1065 }1066 break10671068 case 'welcome':1069 if (isBanned) return reply(nad.baned())1070 if (!isRegistered) return reply(nad.noregis())1071 if (!isGroup) return reply(nad.groupo())1072 if (!isGroupAdmins) return reply(nad.admin())1073 if (args.length < 1) return reply(`untuk mengaktifkan ketik : ${prefix}welcome 1`)1074 if (Number(args[0]) === 1) {1075 if (isWelkom) return reply('Sudah Aktif Kak')1076 welkom.push(from)1077 fs.writeFileSync('./database/welkom.json', JSON.stringify(welkom))1078 reply('ã SUKSES ãFitur Welcome Diaktifkan')1079 } else if (Number(args[0]) === 0) {1080 if (!isWelkom) return reply('Sudah Mati Kak')1081 welkom.splice(from, 1)1082 fs.writeFileSync('./database/welkom.json', JSON.stringify(welkom))1083 reply('ã SUKSES ãFitur Welcome Dimatikan')1084 } else {1085 reply('1 untuk mengaktifkan, 0 untuk mematikan')1086 }1087 break10881089 case 'leveling':1090 if (isBanned) return reply(nad.baned())1091 if (!isRegistered) return reply(nad.noregis())1092 if (!isGroup) return reply(nad.groupo())1093 if (!isGroupAdmins) return reply(nad.admin())1094 if (args.length < 1) return reply(`untuk mengaktifkan ketik : ${prefix}leveling 1`)1095 if (Number(args[0]) === 1) {1096 if (isLevelingOn) return reply('Sudah Aktif Kak')1097 _leveling.push(from)1098 fs.writeFileSync('./database/leveling.json', JSON.stringify(_leveling))1099 reply('ã SUKSES ãFitur Level Diaktifkan')1100 } else if (Number(args[0]) === 0) {1101 _leveling.splice(from, 1)1102 fs.writeFileSync('./database/leveling.json', JSON.stringify(_leveling))1103 reply('ã SUKSES ãFitur Level Dimatikan')1104 } else {1105 reply('1 untuk mengaktifkan, 0 untuk mematikan')1106 }1107 break11081109 case 'antilink':1110 if (isBanned) return reply(nad.baned())1111 if (!isRegistered) return reply(nad.noregis())1112 if (!isGroup) return reply(nad.groupo())1113 if (!isGroupAdmins) return reply(nad.admin())1114 if (!isBotGroupAdmins) return reply(nad.badmin())1115 if (args.length < 1) return reply(`untuk mengaktifkan ketik : ${prefix}antilink 1`)1116 if (Number(args[0]) === 1) {1117 if (isAntiLink) return reply('Sudah Aktif Kak')1118 antilink.push(from)1119 fs.writeFileSync('./database/antilink.json', JSON.stringify(antilink))1120 reply('ã SUKSES ãFitur Anti Link Diaktifkan')1121 rmln.sendMessage(from, `ALLERT!!! Group ini sudah di pasang anti link\nJika Kamu Melanggar Maka Akan Saya Tendang`, text)1122 } else if (Number(args[0]) === 0) {1123 if (!isAntiLink) return reply('Sudah Mati Kak')1124 var ini = antilink.indexOf(from)1125 antilink.splice(ini, 1)1126 fs.writeFileSync('./database/antilink.json', JSON.stringify(antilink))1127 reply('ã SUKSES ãFitur Anti Link Dimatikan')1128 } else {1129 reply('1 untuk mengaktifkan, 0 untuk mematikan')1130 }1131 break11321133 case 'grup':1134 case 'group':1135 if (isBanned) return reply(nad.baned())1136 if (!isRegistered) return reply(nad.noregis())1137 if (!isGroup) return reply(nad.groupo())1138 if (!isGroupAdmins) return reply(nad.admin())1139 if (!isBotGroupAdmins) return reply(nad.badmin())1140 if (args.length < 1) return reply(`untuk membuka : ${prefix}group buka\nuntuk menutup : ${prefix}group tutup`)1141 if (args[0] === 'buka') {1142 reply(`Berhasil Membuka group`)1143 rmln.groupSettingChange(from, GroupSettingChange.messageSend, false)1144 } else if (args[0] === 'tutup') {1145 reply(`Berhasil Menutup Group`)1146 rmln.groupSettingChange(from, GroupSettingChange.messageSend, true)1147 }1148 break11491150 case 'admin':1151 if (isBanned) return reply(nad.baned())1152 if (!isRegistered) return reply(nad.noregis())1153 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1154 if (!isGroup) return reply(nad.groupo())1155 adm = `*ATASAN GROUP* _${groupMetadata.subject}_\n*TOTAL* : ${groupAdmins.length}\n\n`1156 no = 01157 for (let admon of groupAdmins) {1158 no += 11159 adm += `[${no.toString()}] @${admon.split('@')[0]}\n`1160 }1161 mentions(adm, groupAdmins, true)1162 break11631164 case 'add':1165 if (isBanned) return reply(nad.baned())1166 if (!isRegistered) return reply(nad.noregis())1167 if (!isGroup) return reply(nad.groupo())1168 if (!isGroupAdmins) return reply(nad.admin())1169 if (!isBotGroupAdmins) return reply(nad.badmin())1170 if (args.length < 1) return reply('Yang mau di add siapa?')1171 if (args[0].startsWith('08')) return reply('Gunakan kode bahasa kak')1172 try {1173 num = `${args[0].replace(/ /g, '')}@s.whatsapp.net`1174 rmln.groupAdd(from, [num])1175 } catch (e) {1176 console.log('Error :', e)1177 reply('Anjim yang mau di add di private, dahlah :)')1178 }1179 break11801181 case 'kick':1182 if (isBanned) return reply(nad.baned())1183 if (!isRegistered) return reply(nad.noregis())1184 if (!isGroup) return reply(nad.groupo())1185 if (!isGroupAdmins) return reply(nad.admin())1186 if (!isBotGroupAdmins) return reply(nad.badmin())1187 if (Lan.message.extendedTextMessage === undefined || Lan.message.extendedTextMessage === null) return reply('Reply Chat Target Nya Kak')1188 kicknya = Lan.message.extendedTextMessage.contextInfo.participant1189 await rmln.groupRemove(from, [kicknya])1190 break1191 1192 case 'hidetag':1193 if (isBanned) return reply(nad.baned())1194 if (!isRegistered) return reply(nad.noregis())1195 if (!isGroup) return reply(nad.groupo())1196 if (!isGroupAdmins) return reply(nad.admin())1197 var value = body.slice(9)1198 var group = await rmln.groupMetadata(from)1199 var member = group['participants']1200 var mem = []1201 member.map( async adm => {1202 mem.push(adm.id.replace('c.us', 's.whatsapp.net'))1203 })1204 var options = {1205 text: value,1206 contextInfo: { mentionedJid: mem },1207 quoted: Lan1208 }1209 rmln.sendMessage(from, options, text)1210 break1211 case 'hidetag20':1212 if (isBanned) return reply(nad.baned())1213 if (!isRegistered) return reply(nad.noregis())1214 if (!isGroup) return reply(nad.groupo())1215 if (!isGroupAdmins) return reply(nad.admin())1216 var value = body.slice(11)1217 var group = await rmln.groupMetadata(from)1218 var member = group['participants']1219 var mem = []1220 member.map( async adm => {1221 mem.push(adm.id.replace('c.us', 's.whatsapp.net'))1222 })1223 var options = {1224 text: value,1225 contextInfo: { mentionedJid: mem },1226 quoted: Lan1227 }1228 rmln.sendMessage(from, options, text)1229 .then(() => {rmln.sendMessage(from, options, text)})1230 .then(() => {rmln.sendMessage(from, options, text)})1231 .then(() => {rmln.sendMessage(from, options, text)})1232 .then(() => {rmln.sendMessage(from, options, text)})1233 .then(() => {rmln.sendMessage(from, options, text)})1234 .then(() => {rmln.sendMessage(from, options, text)})1235 .then(() => {rmln.sendMessage(from, options, text)})1236 .then(() => {rmln.sendMessage(from, options, text)})1237 .then(() => {rmln.sendMessage(from, options, text)})1238 .then(() => {rmln.sendMessage(from, options, text)})1239 .then(() => {rmln.sendMessage(from, options, text)})1240 .then(() => {rmln.sendMessage(from, options, text)})1241 .then(() => {rmln.sendMessage(from, options, text)})1242 .then(() => {rmln.sendMessage(from, options, text)})1243 .then(() => {rmln.sendMessage(from, options, text)})1244 .then(() => {rmln.sendMessage(from, options, text)})1245 .then(() => {rmln.sendMessage(from, options, text)})1246 break12471248 case 'level':1249 if (isBanned) return reply(nad.baned())1250 if (!isRegistered) return reply(nad.noregis())1251 if (!isLevelingOn) return reply(nad.lvlnoon())1252 if (!isGroup) return reply(nad.groupo())1253 const userLevel = getLevelingLevel(sender)1254 const userXp = getLevelingXp(sender)1255 if (userLevel === undefined && userXp === undefined) return reply(nad.lvlnul())1256 const requiredXp = 5000 * (Math.pow(2, userLevel) - 1)1257 resul = `ââââââââ¡ *LEVEL* â¡ââââââââ\nâââââââââââââââââââââ\nââ⸠NAMA : ${pushname}\nââ⸠NOMOR : wa.me/${sender.split("@")[0]}\nââ⸠XP : ${userXp}/${requiredXp}\nââ⸠LEVEL : ${userLevel}\nââ°âââââââââââââââââââ\nââââââââââââââââââââââ`1258 rmln.sendMessage(from, resul, text, { quoted: Lan })1259 .catch(async (err) => {1260 console.error(err)1261 await reply(`Error!\n${err}`)1262 })1263 break12641265 case 'linkgrup':1266 case 'linkgroup':1267 if (isBanned) return reply(nad.baned())1268 if (!isRegistered) return reply(nad.noregis())1269 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1270 if (!isGroup) return reply(nad.groupo())1271 if (!isBotGroupAdmins) return reply(nad.badmin())1272 linkgc = await rmln.groupInviteCode(from)1273 yeh = `https://chat.whatsapp.com/${linkgc}\n\nlink Group *${groupName}*`1274 rmln.sendMessage(from, yeh, text, { quoted: Lan })1275 break12761277 case 'tagall':1278 if (isBanned) return reply(nad.baned())1279 if (!isRegistered) return reply(nad.noregis())1280 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1281 await limitAdd(sender)1282 if (!isGroup) return reply(nad.groupo())1283 if (!isGroupAdmins) return reply(nad.admin())1284 members_id = []1285 taga = (args.length > 1) ? body.slice(8).trim() : ''1286 taga += '\n\n'1287 for (let mem of groupMembers) {1288 taga += `⸠@${mem.jid.split('@')[0]}\n`1289 members_id.push(mem.jid)1290 }1291 mentions(taga, members_id, true)1292 break12931294 case 'setname':1295 if (!isRegistered) return reply(nad.noregis())1296 if (!isGroup) return reply(nad.groupo())1297 if (!isGroupAdmins) return reply(nad.admin())1298 if (!isBotGroupAdmins) return reply(nad.badmin())1299 rmln.groupUpdateSubject(from, `${body.slice(9)}`)1300 rmln.sendMessage(from, 'ã SUKSES ãMengubah Nama Grup', text, { quoted: Lan })1301 break13021303 case 'setdesc':1304 if (!isRegistered) return reply(nad.noregis())1305 if (!isGroup) return reply(nad.groupo())1306 if (!isGroupAdmins) return reply(nad.admin())1307 if (!isBotGroupAdmins) return reply(nad.badmin())1308 rmln.groupUpdateDescription(from, `${body.slice(9)}`)1309 rmln.sendMessage(from, '*ã SUKSES ãMengubah Desk Grup', text, { quoted: Lan })1310 break13111312 case 'demote':1313 case 'demot':1314 if (!isRegistered) return reply(nad.noregis())1315 if (!isGroup) return reply(nad.groupo())1316 if (!isGroupAdmins) return reply(nad.admin())1317 if (!isBotGroupAdmins) return reply(nad.badmin())1318 if (Lan.message.extendedTextMessage === undefined || Lan.message.extendedTextMessage === null) return reply('ð§ð®ð´ ðð®ð¿ð´ð²ð ðð®ð»ð´ ð¶ð»ð´ð¶ð» ð±ð¶ ðð²ð»ð±ð®ð»ð´!')1319 mentioned = Lan.message.extendedTextMessage.contextInfo.mentionedJid1320 if (mentioned.length > 1) {1321 dem = ''1322 for (let _ of mentioned) {1323 dem += `*jabatan kamu di copot*ð :\n`1324 dem += `@_.split('@')[0]`1325 }1326 mentions(dem, mentioned, true)1327 rmln.groupDemoteAdmin(from, mentioned)1328 } else {1329 mentions(`Yahh @${mentioned[0].split('@')[0]} Jabatan kamu sebagai leluhur di grup telah di copotð`, mentioned, true)1330 rmln.groupDemoteAdmin(from, mentioned)1331 }1332 break13331334 case 'promote':1335 case 'promot':1336 if (!isRegistered) return reply(nad.noregis())1337 if (!isGroup) return reply(nad.groupo())1338 if (!isGroupAdmins) return reply(nad.admin())1339 if (!isBotGroupAdmins) return reply(nad.badmin())1340 if (Lan.message.extendedTextMessage === undefined || Lan.message.extendedTextMessage === null) return reply('Tag Orang Nya Kak')1341 mentioned = Lan.message.extendedTextMessage.contextInfo.mentionedJid1342 if (mentioned.length > 1) {1343 prom = ''1344 for (let _ of mentioned) {1345 prom += `Yeee𥳠Kamu naik jabatan >_< :\n`1346 prom += `@_.split('@')[0]`1347 }1348 mentions(prom, mentioned, true)1349 rmln.groupMakeAdmin(from, mentioned)1350 } else {1351 mentions(`Selamat𥳠@${mentioned[0].split('@')[0]} *anda naik menjadi admin group* >_<`, mentioned, true)1352 rmln.groupMakeAdmin(from, mentioned)1353 }1354 break13551356 case 'hedsot':1357 if (!isRegistered) return reply(nad.noregis())1358 if (!isGroup) return reply(nad.groupo())1359 if (!isGroupAdmins) return reply(nad.admin())1360 if (!isBotGroupAdmins) return reply(nad.badmin())1361 if (Lan.message.extendedTextMessage === undefined || Lan.message.extendedTextMessage === null) return reply('Tag Orang Nya Kak')1362 mentioned = Lan.message.extendedTextMessage.contextInfo.mentionedJid1363 if (mentioned.length > 1) {1364 heds = 'Bismillah Hedsot >_< :\n'1365 for (let _ of mentioned) {1366 heds += `@${_.split('@')[0]}\n`1367 }1368 mentions(heds, mentioned, true)1369 rmln.groupRemove(from, mentioned)1370 mentions(heds, mentioned, true)1371 rmln.groupAdd(from, [num])1372 } else {1373 mentions(`Berhasil Meng hedsot kepalanya : @${mentioned[0].split('@')[0]}`, mentioned, true)1374 rmln.groupRemove(from, mentioned)1375 }1376 break13771378 case 'fitnah':1379 if (isBanned) return reply(nad.baned())1380 if (!isRegistered) return reply(nad.noregis())1381 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1382 await limitAdd(sender)1383 if (!isGroup) return reply(nad.groupo())1384 if (args.length < 1) return reply(`Gini kak : ${prefix}fitnah [@tag&pesan&balasanbot]\n\nContoh : ${prefix}fitnah @tagmember&hai&hai juga`)1385 var gh = body.slice(8)1386 mentioned = Lan.message.extendedTextMessage.contextInfo.mentionedJid1387 var replace = gh.split("&")[0];1388 var target = gh.split("&")[1];1389 var bot = gh.split("&")[2];1390 rmln.sendMessage(from, `${bot}`, text, { quoted: { key: { fromMe: false, participant: `${mentioned}`, ...(from ? { remoteJid: from } : {}) }, message: { conversation: `${target}` } } })1391 break13921393 case 'jadian':1394 if (isBanned) return reply(nad.baned())1395 if (!isRegistered) return reply(nad.noregis())1396 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1397 await limitAdd(sender)1398 if (!isGroup) return reply(nad.groupo())1399 jds = []1400 var kamu = groupMembers1401 var cinta = groupMembers1402 var aku = cinta[Math.floor(Math.random() * kamu.length)]1403 var cintax = kamu[Math.floor(Math.random() * cinta.length)]1404 tejs = `Ciee.. yang lagi jadian\n*@${aku.jid.split('@')[0]}* â¥ï¸ *@${cintax.jid.split('@')[0]}*\nSemoga Langgeng Hii`1405 jds.push(aku.jid)1406 jds.push(cintax.jid)1407 mentions(tejs, jds, true)1408 break14091410 case 'leave':1411 if (isBanned) return reply(nad.baned())1412 if (!isRegistered) return reply(nad.noregis())1413 if (!isGroup) return reply(nad.groupo())1414 if (!isGroupAdmins) return reply(nad.admin())1415 setTimeout(() => {1416 rmln.groupLeave(from)1417 }, 2000)1418 setTimeout(() => {1419 rmln.updatePresence(from, Presence.composing)1420 if (!isRegistered) return reply(nad.noregis())1421 if (isBanned) return reply(nad.baned())1422 fakestatus('Aku pamit kak:)')1423 }, 0)1424 break14251426 case 'del':1427 case 'delete':1428 if (isBanned) return reply(nad.baned())1429 if (!isRegistered) return reply(nad.noregis())1430 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1431 await limitAdd(sender)1432 rmln.deleteMessage(from, { id: Lan.message.extendedTextMessage.contextInfo.stanzaId, remoteJid: from, fromMe: true })1433 break14341435 case 'mining':1436 if (isBanned) return reply(nad.baned())1437 if (!isRegistered) return reply(nad.noregis())1438 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1439 await limitAdd(sender)1440 if (!isGroup) return reply(nad.groupo())1441 if (!isEventon) return reply(`maaf ${pushname} event mining tidak di aktifkan sama owner ${ownerName}`)1442 if (isOwner) {1443 const one = 9999999991444 addLevelingXp(sender, one)1445 addLevelingLevel(sender, 99)1446 reply(`karena ${ownerName} baik Bot memberikan ${one}Xp >_<`)1447 } else {1448 const mining = Math.ceil(Math.random() * 10000)1449 addLevelingXp(sender, mining)1450 await reply(`*selamat* ${pushname} kamu mendapatkan *${mining}Xp*`)1451 }1452 break14531454 case 'downloadmenu':1455 if (isBanned) return reply(nad.baned())1456 if (!isRegistered) return reply(nad.noregis())1457 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1458 const donlot = `ã *DOWNLOAD MENU* ã1459${a}â ${prefix}play${a}1460${a}â ${prefix}ytmp3${a}1461${a}â ${prefix}ytmp4${a}1462${a}â ${prefix}tiktod${a}1463${a}â ${prefix}igphoto${a}1464${a}â ${prefix}igvideo${a}1465${a}â ${prefix}joox${a}14661467ã *${botName}* ã`1468 fakestatus(donlot)1469 break14701471 case 'play':1472 if (!q) return reply(`Yang mau di download apaan?\nContoh : ${prefix}play DJ TUMANEDANG`)1473 if (isBanned) return reply(nad.baned())1474 if (!isRegistered) return reply(nad.noregis())1475 if (!isPrem) return reply(nad.premium(prefix))1476 fakestatus('Lagu Sedang Dicari...')1477 anu = await fetchJson(`https://api.xteam.xyz/dl/play?lagu=${q}&APIKEY=${xteam}`)1478 infomp3 = `*ãâãLagu Ditemukanãâã*1479⸠Judul : ${anu.judul}1480⸠Size : ${anu.size}1481⸠Source : ${anu.source}14821483[WAIT] Proses Dumlu Yakan`1484 pla = await getBuffer(anu.thumbnail)1485 play = await getBuffer(anu.url)1486 rmln.sendMessage(from, pla, image, { quoted: Lan, caption: infomp3 })1487 rmln.sendMessage(from, play, audio, { mimetype: 'audio/mp4', quoted: Lan })1488 break14891490 case 'ytmp3':1491 if (isBanned) return reply(nad.baned())1492 if (!isRegistered) return reply(nad.noregis())1493 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1494 await limitAdd(sender)1495 if (args.length < 1) return reply('Link Nya Mana Kak')1496 if (!isUrl(args[0]) && !args[0].includes('youtu')) return reply('Link Nya Tidak Valid Kak')1497 reply(nad.wait())1498 anu = await fetchJson(`https://api.xteam.xyz/dl/ytmp3?url=${q}&APIKEY=${xteam}`)1499 ingfomp3 = `*ãâãLagu Ditemukanãâã*1500⸠Judul : ${anu.judul}1501⸠Size : ${anu.size}15021503[WAIT] Proses Dumlu Yakan`1504 buff = await getBuffer(anu.thumbnail)1505 lamgu = await getBuffer(anu.url)1506 rmln.sendMessage(from, buff, image, { quoted: Lan, caption: ingfomp3 })1507 rmln.sendMessage(from, lamgu, audio, { mimetype: 'audio/mp4', quoted: Lan })1508 break15091510 case 'ytmp4':1511 if (isBanned) return reply(nad.baned())1512 if (!isRegistered) return reply(nad.noregis())1513 if (!isPrem) return reply(nad.premium(prefix))1514 if (args.length < 1) return reply('Link Nya Mana Kak')1515 if (!isUrl(args[0]) && !args[0].includes('youtu')) return reply('Link Nya Tidak Valid Kak')1516 anu = await fetchJson(`https://api.xteam.xyz/dl/ytmp4?url=${q}&APIKEY=${xteam}`)1517 reply(nad.wait())1518 infomp4 = `*ãâãVideo Ditemukanãâã*1519⸠Judul : ${anu.judul}1520⸠Size : ${anu.size}15211522[WAIT] Proses Dumlu Yakan`1523 buffe = await getBuffer(anu.thumbnail)1524 rmln.sendMessage(from, buffe, image, { quoted: Lan, caption: infomp4 })1525 vidio = await getBuffer(anu.url)1526 rmln.sendMessage(from, vidio, video, { mimetype: 'video/mp4', quoted: Lan })1527 break15281529 case 'tiktod':1530 if (isBanned) return reply(nad.baned())1531 if (!isRegistered) return reply(nad.noregis())1532 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1533 await limitAdd(sender)1534 if (args.length < 1) return reply('Link Nya Mana Kak')1535 anu = await fetchJson(`https://api.xteam.xyz/dl/tiktok?url=${q}&APIKEY=${xteam}`)1536 reply('[WAIT] Video akan segera dikirim...')1537 tik = await getBuffer(anu.server_1)1538 rmln.sendMessage(from, tik, video, { mimetype: 'video/mp4', quoted: Lan })1539 break1540 case 'igphoto':1541 if (isBanned) return reply(nad.baned())1542 if (!isRegistered) return reply(nad.noregis())1543 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1544 await limitAdd(sender)1545 if (args.length < 1) return reply('Link Nya Mana Kak')1546 anu = await fetchJson(`https://api.xteam.xyz/dl/ig?url=${q}&APIKEY=${xteam}`)1547 reply(nad.wait())1548 buff = await getBuffer(anu.result.data[0].data)1549 rmln.sendMessage(from, buff, image, { quoted: Lan })1550 break15511552 case 'igvideo':1553 if (isBanned) return reply(nad.baned())1554 if (!isRegistered) return reply(nad.noregis())1555 if (!isPrem) return reply(nad.premium(prefix))1556 if (args.length < 1) return reply('Link Nya Mana Kak')1557 anu = await fetchJson(`https://api.xteam.xyz/dl/ig?url=${q}&APIKEY=${xteam}`)1558 reply(nad.wait())1559 buffe = await getBuffer(anu.result.data[0].data)1560 rmln.sendMessage(from, buffe, video, { mimetype: 'video/mp4', quoted: Lan })1561 break1562 case 'joox':1563 if (isBanned) return reply(nad.baned())1564 if (!isRegistered) return reply(nad.noregis())1565 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1566 await limitAdd(sender)1567 if (args.length < 1) return reply(`Mau Nyari Apaan?\nContoh :\n${prefix}joox sayang`)1568 reply(nad.wait())1569 anu = await fetchJson(`https://api.xteam.xyz/dl/jooxdl?lagu=${q}&APIKEY=${xteam}`)1570 asu = anu.result1571 infojoox = `*ãâãLagu Ditemukanãâã*1572⸠Judul : ${asu.songname}1573⸠Size : ${asu.filesize}1574⸠Artis : ${asu.singers}1575⸠Album : ${asu.album}15761577[WAIT] Proses Dumlu Yakan`1578 buft = await getBuffer(asu.album_url)1579 lakgu = await getBuffer(asu.download_url)1580 rmln.sendMessage(from, buft, image, { quoted: Lan, caption: infojoox })1581 rmln.sendMessage(from, lakgu, audio, { mimetype: 'audio/mp4', quoted: Lan })1582 break1583 case 'makermenu':1584 if (isBanned) return reply(nad.baned())1585 if (!isRegistered) return reply(nad.noregis())1586 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1587 const Laner = `ã *MAKER MENU* ã1588${a}â ${prefix}comictext${a}1589${a}â ${prefix}hekerlogo${a}1590${a}â ${prefix}graffiti${a}1591${a}â ${prefix}glowtext${a}1592${a}â ${prefix}covertext${a}1593${a}â ${prefix}narutotext${a}1594${a}â ${prefix}erodedtext${a}1595${a}â ${prefix}walltext${a}1596${a}â ${prefix}vietteltext${a}1597${a}â ${prefix}wingstext${a}1598${a}â ${prefix}halloween${a}1599${a}â ${prefix}graffiti2${a}1600${a}â ${prefix}graffiti3${a}1601${a}â ${prefix}foiltext${a}1602${a}â ${prefix}bloodtext${a}1603${a}â ${prefix}hekertext${a}1604${a}â ${prefix}bokehtext${a}1605${a}â ${prefix}carbontext${a}1606${a}â ${prefix}avengerstext${a}1607${a}â ${prefix}watertext${a}1608${a}â ${prefix}firetext${a}1609${a}â ${prefix}metaltext${a}1610${a}â ${prefix}ballontext${a}1611${a}â ${prefix}gemboktext${a}1612${a}â ${prefix}bannerff${a}1613${a}â ${prefix}aloklogo${a}1614${a}â ${prefix}miyalogo${a}1615${a}â ${prefix}gamelogo${a}1616${a}â ${prefix}blackpink${a}1617${a}â ${prefix}thundername${a}1618${a}â ${prefix}silktext${a}1619${a}â ${prefix}partytext${a}1620${a}â ${prefix}romancetext${a}1621${a}â ${prefix}googletext${a}1622${a}â ${prefix}glowtext2${a}1623${a}â ${prefix}lovemessage${a}1624${a}â ${prefix}glitchtext${a}1625${a}â ${prefix}galaxytext${a}1626${a}â ${prefix}pornhub${a}1627${a}â ${prefix}hartatahta${a}1628${a}â ${prefix}wetglass${a}1629${a}â ${prefix}stylelogo${a}1630${a}â ${prefix}watercolor${a}1631${a}â ${prefix}qrcode1632${a}â ${prefix}barcode1633${a}â ${prefix}naruto1634${a}â ${prefix}breakwall1635${a}â ${prefix}matrix1636${a}â ${prefix}blueneon1637${a}â ${prefix}crosslogo1638${a}â ${prefix}flowertext1639${a}â ${prefix}wolflogo1640${a}â ${prefix}dropwater1641${a}â ${prefix}greenneon 1642${a}â ${prefix}crosslogo1643${a}â ${prefix}slapimage1644${a}â ${prefix}phkomen1645${a}â ${prefix}emoji1646${a}â ${prefix}silktext1647${a}â ${prefix}flametext1648${a}â ${prefix}retrotext1649${a}â ${prefix}lighttext 1650${a}â ${prefix}cslogo1651${a}â ${prefix}skytext1652${a}â ${prefix}pubglogo1653${a}â ${prefix}smoketext1654${a}â ${prefix}glowtext1655${a}â ${prefix}glitchtext1656${a}â ${prefix}textlight1657${a}â ${prefix}leavestext 1658${a}â ${prefix}bplogo1659${a}â ${prefix}phlogo1660${a}â ${prefix}text3d1661${a}â ${prefix}text3dbox1662${a}â ${prefix}splaybutton1663${a}â ${prefix}gplaybutton1664${a}â ${prefix}epep1665${a}â ${prefix}sandwrite 1666${a}â ${prefix}firework1667${a}â ${prefix}watercolor1668${a}â ${prefix}snowwrite1669${a}â ${prefix}crismes16701671ã *${botName}* ã`1672 fakestatus(Laner)1673 break16741675 case 'comictext':1676 if (isBanned) return reply(nad.baned())1677 if (!isRegistered) return reply(nad.noregis())1678 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1679 await limitAdd(sender)1680 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}comictext Ramlan`)1681 reply(nad.wait())1682 vhbuff = await getBuffer(`https://api.vhtear.com/comic_text?text=${q}&apikey=${vhtear}`)1683 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1684 break1685 case 'hekerlogo':1686 if (isBanned) return reply(nad.baned())1687 if (!isRegistered) return reply(nad.noregis())1688 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1689 await limitAdd(sender)1690 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}hekerlogo Ramlan`)1691 reply(`[ð¿] Buset Hemker`)1692 vhbuff = await getBuffer(`https://api.vhtear.com/hacker_avatar?text=${q}&apikey=${vhtear}`)1693 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1694 break1695 case 'graffiti':1696 if (isBanned) return reply(nad.baned())1697 if (!isRegistered) return reply(nad.noregis())1698 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1699 await limitAdd(sender)1700 var gh = body.slice(10)1701 var ve = gh.split("&")[0];1702 var za = gh.split("&")[1];1703 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}graffiti Ramlan & Gamteng`)1704 reply(nad.wait())1705 vhbuff = await getBuffer(`https://api.vhtear.com/cool_wall_graffiti?text1=${ve}&text2=${za}&apikey=${vhtear}`)1706 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1707 break1708 case 'glowtext':1709 if (isBanned) return reply(nad.baned())1710 if (!isRegistered) return reply(nad.noregis())1711 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1712 await limitAdd(sender)1713 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}glowtext Ramlan`)1714 reply(nad.wait())1715 vhbuff = await getBuffer(`https://api.vhtear.com/glow_metallic?text=${q}&apikey=${vhtear}`)1716 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1717 break1718 case 'covertext':1719 if (isBanned) return reply(nad.baned())1720 if (!isRegistered) return reply(nad.noregis())1721 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1722 await limitAdd(sender)1723 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}covertext Ramlan`)1724 reply(nad.wait())1725 vhbuff = await getBuffer(`https://api.vhtear.com/cover_banner?text=${q}&apikey=${vhtear}`)1726 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1727 break1728 case 'narutotext':1729 if (isBanned) return reply(nad.baned())1730 if (!isRegistered) return reply(nad.noregis())1731 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1732 await limitAdd(sender)1733 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}narutotext Ramlan`)1734 reply(nad.wait())1735 vhbuff = await getBuffer(`https://api.vhtear.com/naruto_text?text=${q}&apikey=${vhtear}`)1736 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1737 break1738 case 'erodedtext':1739 if (isBanned) return reply(nad.baned())1740 if (!isRegistered) return reply(nad.noregis())1741 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1742 await limitAdd(sender)1743 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}erodedtext Ramlan`)1744 reply(nad.wait())1745 vhbuff = await getBuffer(`https://api.vhtear.com/eroded_metal?text=${q}&apikey=${vhtear}`)1746 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1747 break1748 case 'walltext':1749 if (isBanned) return reply(nad.baned())1750 if (!isRegistered) return reply(nad.noregis())1751 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1752 await limitAdd(sender)1753 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}walltext Ramlan`)1754 reply(nad.wait())1755 vhbuff = await getBuffer(`https://api.vhtear.com/the_wall?text=${q}&apikey=${vhtear}`)1756 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1757 break1758 case 'vietteltext':1759 if (isBanned) return reply(nad.baned())1760 if (!isRegistered) return reply(nad.noregis())1761 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1762 await limitAdd(sender)1763 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}vietteltext Ramlan`)1764 reply(nad.wait())1765 vhbuff = await getBuffer(`https://api.vhtear.com/viettel_text?text=${q}&apikey=${vhtear}`)1766 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1767 break1768 case 'wingstext':1769 if (isBanned) return reply(nad.baned())1770 if (!isRegistered) return reply(nad.noregis())1771 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1772 await limitAdd(sender)1773 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}wingstext Ramlan`)1774 reply(nad.wait())1775 vhbuff = await getBuffer(`https://api.vhtear.com/wings_galaxy?text=${q}&apikey=${vhtear}`)1776 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1777 break1778 case 'halloween':1779 if (isBanned) return reply(nad.baned())1780 if (!isRegistered) return reply(nad.noregis())1781 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1782 await limitAdd(sender)1783 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}halloween Ramlan`)1784 reply(nad.wait())1785 vhbuff = await getBuffer(`https://api.vhtear.com/halloween_text?text=${q}&apikey=${vhtear}`)1786 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1787 break1788 case 'graffiti2':1789 if (isBanned) return reply(nad.baned())1790 if (!isRegistered) return reply(nad.noregis())1791 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1792 await limitAdd(sender)1793 var gh = body.slice(11)1794 var ve = gh.split("&")[0];1795 var za = gh.split("&")[1];1796 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}graffiti2 Ramlan & Gamteng`)1797 reply(nad.wait())1798 vhbuff = await getBuffer(`https://api.vhtear.com/girl_graffiti?text1=${ve}&text2=${za}&apikey=${vhtear}`)1799 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1800 break1801 case 'graffiti3':1802 if (isBanned) return reply(nad.baned())1803 if (!isRegistered) return reply(nad.noregis())1804 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1805 await limitAdd(sender)1806 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}graffiti3 Ramlan`)1807 reply(nad.wait())1808 vhbuff = await getBuffer(`https://api.vhtear.com/cartoon_graffiti?text=${q}&apikey=${vhtear}`)1809 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1810 break1811 case 'foiltext':1812 if (isBanned) return reply(nad.baned())1813 if (!isRegistered) return reply(nad.noregis())1814 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1815 await limitAdd(sender)1816 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}foiltext Ramlan`)1817 reply(nad.wait())1818 vhbuff = await getBuffer(`https://api.vhtear.com/foil_text?text=VHTEAR&apikey=${vhtear}`)1819 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1820 break1821 case 'bloodtext':1822 if (isBanned) return reply(nad.baned())1823 if (!isRegistered) return reply(nad.noregis())1824 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1825 await limitAdd(sender)1826 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}bloodtext Ramlan`)1827 reply(nad.wait())1828 vhbuff = await getBuffer(`https://api.vhtear.com/blood_text?text=${q}&apikey=${vhtear}`)1829 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1830 break1831 case 'hekertext':1832 if (isBanned) return reply(nad.baned())1833 if (!isRegistered) return reply(nad.noregis())1834 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1835 await limitAdd(sender)1836 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}hekertext Ramlan`)1837 reply(`[ð] Heker AbiZzz`)1838 vhbuff = await getBuffer(`https://api.vhtear.com/matrix_text?text=${q}&apikey=${vhtear}`)1839 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1840 break1841 case 'bokehtext':1842 if (isBanned) return reply(nad.baned())1843 if (!isRegistered) return reply(nad.noregis())1844 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1845 await limitAdd(sender)1846 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}bokehtext Ramlan`)1847 reply(nad.wait())1848 vhbuff = await getBuffer(`https://api.vhtear.com/bokeh_text?text=${q}&apikey=${vhtear}`)1849 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1850 break1851 case 'carbontext':1852 if (isBanned) return reply(nad.baned())1853 if (!isRegistered) return reply(nad.noregis())1854 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1855 await limitAdd(sender)1856 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}carbontext Ramlan`)1857 reply(nad.wait())1858 vhbuff = await getBuffer(`https://api.vhtear.com/carbon_text?text=${q}&apikey=${vhtear}`)1859 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1860 break1861 case 'avengerstext':1862 if (isBanned) return reply(nad.baned())1863 if (!isRegistered) return reply(nad.noregis())1864 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1865 await limitAdd(sender)1866 var gh = body.slice(14)1867 var ve = gh.split("&")[0];1868 var za = gh.split("&")[1];1869 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}avengerstext Ramlan & Gamteng`)1870 reply(nad.wait())1871 vhbuff = await getBuffer(`https://api.vhtear.com/avengers_text?text1=${ve}&text2=${za}&apikey=${vhtear}`)1872 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1873 break1874 case 'watertext':1875 if (isBanned) return reply(nad.baned())1876 if (!isRegistered) return reply(nad.noregis())1877 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1878 await limitAdd(sender)1879 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}watertext Ramlan`)1880 reply(nad.wait())1881 vhbuff = await getBuffer(`https://api.vhtear.com/water_maker?text=${q}&apikey=${vhtear}`)1882 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1883 break1884 case 'firetext':1885 if (isBanned) return reply(nad.baned())1886 if (!isRegistered) return reply(nad.noregis())1887 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1888 await limitAdd(sender)1889 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}firetext Ramlan`)1890 reply(nad.wait())1891 vhbuff = await getBuffer(`https://api.vhtear.com/fire_maker?text=${q}&apikey=${vhtear}`)1892 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1893 break1894 case 'metaltext':1895 if (isBanned) return reply(nad.baned())1896 if (!isRegistered) return reply(nad.noregis())1897 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1898 await limitAdd(sender)1899 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}metaltext Ramlan`)1900 reply(nad.wait())1901 vhbuff = await getBuffer(`https://api.vhtear.com/metal_maker?text=${q}&apikey=${vhtear}`)1902 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1903 break1904 case 'ballontext':1905 if (isBanned) return reply(nad.baned())1906 if (!isRegistered) return reply(nad.noregis())1907 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1908 await limitAdd(sender)1909 var gh = body.slice(12)1910 var ve = gh.split("&")[0];1911 var za = gh.split("&")[1];1912 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}ballontext Ramlan & Gamteng`)1913 reply(nad.wait())1914 vhbuff = await getBuffer(`https://api.vhtear.com/balloonmaker?text1=${ve}&text2=${za}&apikey=${vhtear}`)1915 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1916 break1917 case 'gemboktext':1918 if (isBanned) return reply(nad.baned())1919 if (!isRegistered) return reply(nad.noregis())1920 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1921 await limitAdd(sender)1922 var gh = body.slice(12)1923 var ve = gh.split("&")[0];1924 var za = gh.split("&")[1];1925 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}gemboktext 11 01 2021 & Ramlan dan Nadia`)1926 reply(nad.wait())1927 vhbuff = await getBuffer(`https://api.vhtear.com/padlock?text1=${ve}&text2=${za}&apikey=${vhtear}`)1928 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1929 break1930 case 'bannerff':1931 if (isBanned) return reply(nad.baned())1932 if (!isRegistered) return reply(nad.noregis())1933 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1934 await limitAdd(sender)1935 var gh = body.slice(10)1936 var ve = gh.split("&")[0];1937 var za = gh.split("&")[1];1938 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}bannerff Ramlan & Gamteng`)1939 reply(nad.wait())1940 vhbuff = await getBuffer(`https://api.vhtear.com/bannerff?title=${ve}&text=${za}&apikey=${vhtear}`)1941 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1942 break1943 case 'aloklogo':1944 if (isBanned) return reply(nad.baned())1945 if (!isRegistered) return reply(nad.noregis())1946 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1947 await limitAdd(sender)1948 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}aloklogo Ramlan`)1949 reply(nad.wait())1950 vhbuff = await getBuffer(`https://api.vhtear.com/logoff?hero=alok&text=${q}&apikey=${vhtear}`)1951 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1952 break1953 case 'miyalogo':1954 if (isBanned) return reply(nad.baned())1955 if (!isRegistered) return reply(nad.noregis())1956 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1957 await limitAdd(sender)1958 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}miyalogo Ramlan`)1959 reply(nad.wait())1960 vhbuff = await getBuffer(`https://api.vhtear.com/logoml?hero=miya&text=${q}&apikey=${vhtear}`)1961 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1962 break1963 case 'gamelogo':1964 if (isBanned) return reply(nad.baned())1965 if (!isRegistered) return reply(nad.noregis())1966 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1967 await limitAdd(sender)1968 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}gamelogo Ramlan`)1969 reply(nad.wait())1970 vhbuff = await getBuffer(`https://api.vhtear.com/gamelogo?text=${q}&apikey=${vhtear}`)1971 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1972 break1973 case 'blackpink':1974 if (isBanned) return reply(nad.baned())1975 if (!isRegistered) return reply(nad.noregis())1976 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1977 await limitAdd(sender)1978 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}blackpink Ramlan`)1979 reply(`[ð±] Hah Blekping :v`)1980 vhbuff = await getBuffer(`https://api.vhtear.com/blackpinkicon?text=${q}&apikey=${vhtear}`)1981 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1982 break1983 case 'thundername':1984 if (isBanned) return reply(nad.baned())1985 if (!isRegistered) return reply(nad.noregis())1986 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1987 await limitAdd(sender)1988 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}thundername Ramlan`)1989 reply(nad.wait())1990 vhbuff = await getBuffer(`https://api.vhtear.com/thundertext?text=${q}&apikey=${vhtear}`)1991 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })1992 break1993 case 'silktext':1994 if (isBanned) return reply(nad.baned())1995 if (!isRegistered) return reply(nad.noregis())1996 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))1997 await limitAdd(sender)1998 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}silktext Ramlan`)1999 reply(nad.wait())2000 vhbuff = await getBuffer(`https://api.vhtear.com/silktext?text=${q}&apikey=${vhtear}`)2001 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2002 break2003 case 'partytext':2004 if (isBanned) return reply(nad.baned())2005 if (!isRegistered) return reply(nad.noregis())2006 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2007 await limitAdd(sender)2008 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}partytext Ramlan`)2009 reply(nad.wait())2010 vhbuff = await getBuffer(`https://api.vhtear.com/partytext?text=${q}&apikey=${vhtear}`)2011 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2012 break2013 case 'romancetext':2014 if (isBanned) return reply(nad.baned())2015 if (!isRegistered) return reply(nad.noregis())2016 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2017 await limitAdd(sender)2018 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}romancetext Ramlan`)2019 reply(nad.wait())2020 vhbuff = await getBuffer(`https://api.vhtear.com/romancetext?text=${q}&apikey=${vhtear}`)2021 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2022 break2023 case 'googletext':2024 if (isBanned) return reply(nad.baned())2025 if (!isRegistered) return reply(nad.noregis())2026 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2027 await limitAdd(sender)2028 var gh = body.slice(12)2029 var ve = gh.split("&")[0];2030 var za = gh.split("&")[1];2031 var ga = gh.split("&")[2];2032 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}googletext Ramlan & Ramlan Gans & Ramlan Baik`)2033 reply(nad.wait())2034 vhbuff = await getBuffer(`https://api.vhtear.com/googletext?text1=${ve}&text2=${za}&text3=${ga}&apikey=${vhtear}`)2035 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2036 break2037 case 'glowtext2':2038 if (isBanned) return reply(nad.baned())2039 if (!isRegistered) return reply(nad.noregis())2040 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2041 await limitAdd(sender)2042 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}glowtext2 Ramlan`)2043 reply(nad.wait())2044 vhbuff = await getBuffer(`https://api.vhtear.com/glowtext?text=${q}&apikey=${vhtear}`)2045 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2046 break2047 case 'lovemessage':2048 if (isBanned) return reply(nad.baned())2049 if (!isRegistered) return reply(nad.noregis())2050 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2051 await limitAdd(sender)2052 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}lovemessage Ramlan`)2053 reply(nad.wait())2054 vhbuff = await getBuffer(`https://api.vhtear.com/lovemessagetext?text=${q}&apikey=${vhtear}`)2055 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2056 break2057 case 'glitchtext':2058 if (isBanned) return reply(nad.baned())2059 if (!isRegistered) return reply(nad.noregis())2060 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2061 await limitAdd(sender)2062 var gh = body.slice(12)2063 var ve = gh.split("&")[0];2064 var za = gh.split("&")[1];2065 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}glitchtext Ramlan & Gamteng`)2066 reply(nad.wait())2067 vhbuff = await getBuffer(`https://api.vhtear.com/glitchtext?text1=${ve}&text2=${za}&apikey=${vhtear}`)2068 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2069 break2070 case 'galaxytext':2071 if (isBanned) return reply(nad.baned())2072 if (!isRegistered) return reply(nad.noregis())2073 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2074 await limitAdd(sender)2075 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}galaxytext Ramlan`)2076 reply(nad.wait())2077 vhbuff = await getBuffer(`https://api.vhtear.com/galaxytext?text=${q}&apikey=${vhtear}`)2078 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2079 break2080 case 'pornhub':2081 if (isBanned) return reply(nad.baned())2082 if (!isRegistered) return reply(nad.noregis())2083 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2084 await limitAdd(sender)2085 var gh = body.slice(9)2086 var ve = gh.split("&")[0];2087 var za = gh.split("&")[1];2088 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}pornhub Ramlan & Gamteng`)2089 reply(nad.wait())2090 vhbuff = await getBuffer(`https://api.vhtear.com/pornlogo?text1=${ve}&text2=${za}&apikey=${vhtear}`)2091 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2092 break2093 case 'hartatahta':2094 if (isBanned) return reply(nad.baned())2095 if (!isRegistered) return reply(nad.noregis())2096 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2097 await limitAdd(sender)2098 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}hartatahta Ramlan`)2099 reply(`[â] Hirti Tihti Tai Anjg :v`)2100 vhbuff = await getBuffer(`https://api.vhtear.com/hartatahta?text=${q}&apikey=${vhtear}`)2101 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2102 break2103 case 'wetglass':2104 if (isBanned) return reply(nad.baned())2105 if (!isRegistered) return reply(nad.noregis())2106 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2107 await limitAdd(sender)2108 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}wetglass Ramlan`)2109 reply(nad.wait())2110 vhbuff = await getBuffer(`https://api.vhtear.com/wetglass?text=${q}&apikey=${vhtear}`)2111 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2112 break2113 case 'stylelogo':2114 if (isBanned) return reply(nad.baned())2115 if (!isRegistered) return reply(nad.noregis())2116 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2117 await limitAdd(sender)2118 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}stylelogo Ramlan`)2119 reply(nad.wait())2120 vhbuff = await getBuffer(`https://api.vhtear.com/stylelogo?text=${q}&apikey=${vhtear}`)2121 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2122 break2123 case 'watercolor':2124 if (isBanned) return reply(nad.baned())2125 if (!isRegistered) return reply(nad.noregis())2126 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2127 await limitAdd(sender)2128 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}watercolor Ramlan`)2129 reply(nad.wait())2130 vhbuff = await getBuffer(`https://api.vhtear.com/watercolor?text=${q}&apikey=${vhtear}`)2131 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2132 break2133 case 'wolflogo':2134 if (isBanned) return reply(nad.baned())2135 if (!isRegistered) return reply(nad.noregis())2136 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2137 await limitAdd(sender)2138 var gh = body.slice(10)2139 var ve = gh.split("&")[0];2140 var za = gh.split("&")[1];2141 if (args.length < 1) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}wolflogo Ramlan & Gamteng`)2142 reply(nad.wait())2143 vhbuff = await getBuffer(`https://api.vhtear.com/avatarwolf?text1=${ve}&text2=${za}&apikey=${vhtear}`)2144 rmln.sendMessage(from, vhbuff, image, { quoted: Lan })2145 break2146/*]====> BY RAMLAN ID <====[*/2147 case 'sertifikatmenu':2148 if (isBanned) return reply(nad.baned())2149 if (!isRegistered) return reply(nad.noregis())2150 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2151 const serti = `ã *SERTIFIKAT MENU* ã2152${a}â ${prefix}sertiharam${a}2153${a}â ${prefix}sertibabu${a}2154${a}â ${prefix}sertibucin${a}2155${a}â ${prefix}sertibocilff${a}2156${a}â ${prefix}sertigay${a}2157${a}â ${prefix}sertipacar${a}2158${a}â ${prefix}sertisadboy${a}2159${a}â ${prefix}sertisurga${a}2160${a}â ${prefix}sertipinter${a}2161${a}â ${prefix}sertibadboy${a}2162${a}â ${prefix}sertibadgirl${a}2163${a}â ${prefix}sertigoodgirl${a}2164${a}â ${prefix}sertigoodboy${a}2165${a}â ${prefix}sertieditor${a}2166${a}â ${prefix}sertigudluking${a}2167${a}â ${prefix}sertipakboy${a}2168${a}â ${prefix}sertijamet${a}2169${a}â ${prefix}sertiyutub${a}2170${a}â ${prefix}sertiheker${a}2171${a}â ${prefix}sertiff1${a}2172${a}â ${prefix}sertiff2${a}2173${a}â ${prefix}sertiff3${a}2174${a}â ${prefix}sertiff4${a}2175${a}â ${prefix}sertiff5${a}2176${a}â ${prefix}sertipubg1${a}2177${a}â ${prefix}sertipubg2${a}2178${a}â ${prefix}sertiml${a}21792180ã *${botName}* ã`2181 fakestatus(serti)2182 break2183 case 'sertiharam':2184 if (isBanned) return reply(nad.baned())2185 if (!isRegistered) return reply(nad.noregis())2186 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2187 await limitAdd(sender)2188 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiharam botwea`)2189 reply(nad.wait())2190 menghayu = await getBuffer(`http://onlydevcity.xyz/AnakHaramSerti/img.php?nama=${q}`)2191 rmln.sendMessage(from, menghayu, image, { quoted: Lan })2192 break2193 case 'sertibabu':2194 if (isBanned) return reply(nad.baned())2195 if (!isRegistered) return reply(nad.noregis())2196 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2197 await limitAdd(sender)2198 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertibabu botwea`)2199 reply(nad.wait())2200 sertibab = await getBuffer(`http://onlydevcity.xyz/BabuSerti/img.php?nama=${q}`)2201 rmln.sendMessage(from, sertibab, image, { quoted: Lan })2202 break2203 case 'sertibucin':2204 if (isBanned) return reply(nad.baned())2205 if (!isRegistered) return reply(nad.noregis())2206 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2207 await limitAdd(sender)2208 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertibucin botwea`)2209 reply(nad.wait())2210 sertibuci = await getBuffer(`http://onlydevcity.xyz/BucinSerti/img.php?nama=${q}`)2211 rmln.sendMessage(from, sertibuci, image, { quoted: Lan })2212 break2213 case 'sertibocilff':2214 if (isBanned) return reply(nad.baned())2215 if (!isRegistered) return reply(nad.noregis())2216 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2217 await limitAdd(sender)2218 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertibocilff botwea`)2219 reply(nad.wait())2220 sertibocilf = await getBuffer(`http://onlydevcity.xyz/CilEpepSerti/img.php?nama=${q}`)2221 rmln.sendMessage(from, sertibocilf, image, { quoted: Lan })2222 break2223 case 'sertigay':2224 if (isBanned) return reply(nad.baned())2225 if (!isRegistered) return reply(nad.noregis())2226 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2227 await limitAdd(sender)2228 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertigay botwea`)2229 reply(nad.wait())2230 sertiga = await getBuffer(`http://onlydevcity.xyz/GaySerti/img.php?nama=${q}`)2231 rmln.sendMessage(from, sertiga, image, { quoted: Lan })2232 break2233 case 'sertipacar':2234 if (isBanned) return reply(nad.baned())2235 if (!isRegistered) return reply(nad.noregis())2236 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2237 await limitAdd(sender)2238 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertipacar botwea`)2239 reply(nad.wait())2240 sertipaca = await getBuffer(`http://onlydevcity.xyz/PacarSerti/img.php?nama=${q}`)2241 rmln.sendMessage(from, sertipaca, image, { quoted: Lan })2242 break2243 case 'sertisadboy':2244 if (isBanned) return reply(nad.baned())2245 if (!isRegistered) return reply(nad.noregis())2246 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2247 await limitAdd(sender)2248 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertisadboy botwea`)2249 reply(nad.wait())2250 sertisadbo = await getBuffer(`http://onlydevcity.xyz/SadBoySerti/img.php?nama=${q}`)2251 rmln.sendMessage(from, sertisadbo, image, { quoted: Lan })2252 break2253 case 'sertisurga':2254 if (isBanned) return reply(nad.baned())2255 if (!isRegistered) return reply(nad.noregis())2256 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2257 await limitAdd(sender)2258 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertisurga botwea`)2259 reply(nad.wait())2260 sertisurg = await getBuffer(`http://onlydevcity.xyz/SurgaSerti/img.php?nama=${q}`)2261 rmln.sendMessage(from, sertisurg, image, { quoted: Lan })2262 break2263 case 'sertipinter':2264 if (isBanned) return reply(nad.baned())2265 if (!isRegistered) return reply(nad.noregis())2266 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2267 await limitAdd(sender)2268 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertipinter botwea`)2269 reply(nad.wait())2270 sertipinte = await getBuffer(`http://onlydevcity.xyz/PintarSerti/img.php?nama=${q}`)2271 rmln.sendMessage(from, sertipinte, image, { quoted: Lan })2272 break2273 case 'sertibadboy':2274 if (isBanned) return reply(nad.baned())2275 if (!isRegistered) return reply(nad.noregis())2276 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2277 await limitAdd(sender)2278 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertibadboy botwea`)2279 reply(nad.wait())2280 sertibadbo = await getBuffer(`http://onlydevcity.xyz/BadBoySerti/img.php?nama=${q}`)2281 rmln.sendMessage(from, sertibadbo, image, { quoted: Lan })2282 break2283 case 'sertibadgirl':2284 if (isBanned) return reply(nad.baned())2285 if (!isRegistered) return reply(nad.noregis())2286 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2287 await limitAdd(sender)2288 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertibadgirl botwea`)2289 reply(nad.wait())2290 sertibadgir = await getBuffer(`http://onlydevcity.xyz/BadGirlSerti/img.php?nama=${q}`)2291 rmln.sendMessage(from, sertibadgir, image, { quoted: Lan })2292 break2293 case 'sertigoodgirl':2294 if (isBanned) return reply(nad.baned())2295 if (!isRegistered) return reply(nad.noregis())2296 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2297 await limitAdd(sender)2298 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertigoodgirl botwea`)2299 reply(nad.wait())2300 sertigoodgir = await getBuffer(`http://onlydevcity.xyz/GoodGirlSerti/img.php?nama=${q}`)2301 rmln.sendMessage(from, sertigoodgir, image, { quoted: Lan })2302 break2303 case 'sertigoodboy':2304 if (isBanned) return reply(nad.baned())2305 if (!isRegistered) return reply(nad.noregis())2306 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2307 await limitAdd(sender)2308 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertigoodboy botwea`)2309 reply(nad.wait())2310 sertigoodbo = await getBuffer(`http://onlydevcity.xyz/GoodBoySerti/img.php?nama=${q}`)2311 rmln.sendMessage(from, sertigoodbo, image, { quoted: Lan })2312 break2313 case 'sertieditor':2314 if (isBanned) return reply(nad.baned())2315 if (!isRegistered) return reply(nad.noregis())2316 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2317 await limitAdd(sender)2318 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertieditor botwea`)2319 reply(nad.wait())2320 sertiedito = await getBuffer(`http://onlydevcity.xyz/EditorBerkelasSerti/img.php?nama=${q}`)2321 rmln.sendMessage(from, sertiedito, image, { quoted: Lan })2322 break2323 case 'sertigudluking':2324 if (isBanned) return reply(nad.baned())2325 if (!isRegistered) return reply(nad.noregis())2326 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2327 await limitAdd(sender)2328 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertigudluking botwea`)2329 reply(nad.wait())2330 sertigudlukin = await getBuffer(`http://onlydevcity.xyz/GoodLookingSerti/img.php?nama=${q}`)2331 rmln.sendMessage(from, sertigudlukin, image, { quoted: Lan })2332 break2333 case 'sertipakboy':2334 if (isBanned) return reply(nad.baned())2335 if (!isRegistered) return reply(nad.noregis())2336 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2337 await limitAdd(sender)2338 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertipakboy botwea`)2339 reply(nad.wait())2340 sertipakbo = await getBuffer(`http://onlydevcity.xyz/FucekBoySerti/img.php?nama=${q}`)2341 rmln.sendMessage(from, sertipakbo, image, { quoted: Lan })2342 break2343 case 'sertijamet':2344 if (isBanned) return reply(nad.baned())2345 if (!isRegistered) return reply(nad.noregis())2346 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2347 await limitAdd(sender)2348 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertijamet botwea`)2349 reply(nad.wait())2350 sertijame = await getBuffer(`http://onlydevcity.xyz/JametSerti/img.php?nama=${q}`)2351 rmln.sendMessage(from, sertijame, image, { quoted: Lan })2352 break2353 case 'sertiyutub':2354 if (isBanned) return reply(nad.baned())2355 if (!isRegistered) return reply(nad.noregis())2356 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2357 await limitAdd(sender)2358 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiyutub botwea`)2359 reply(nad.wait())2360 sertiyutu = await getBuffer(`http://onlydevcity.xyz/YoutuberSerti/img.php?nama=${q}`)2361 rmln.sendMessage(from, sertiyutu, image, { quoted: Lan })2362 break2363 case 'sertiheker':2364 if (isBanned) return reply(nad.baned())2365 if (!isRegistered) return reply(nad.noregis())2366 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2367 await limitAdd(sender)2368 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiheker botwea`)2369 reply(nad.wait())2370 sertiheke = await getBuffer(`http://onlydevcity.xyz/HekerSerti/img.php?nama=${q}`)2371 rmln.sendMessage(from, sertiheke, image, { quoted: Lan })2372 break2373 case 'sertiff1':2374 if (isBanned) return reply(nad.baned())2375 if (!isRegistered) return reply(nad.noregis())2376 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2377 await limitAdd(sender)2378 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiff1 botwea`)2379 reply(nad.wait())2380 sertiff = await getBuffer(`http://onlydevcity.xyz/FFSerti/img.php?nama=${q}`)2381 rmln.sendMessage(from, sertiff, image, { quoted: Lan })2382 break2383 case 'sertiff2':2384 if (isBanned) return reply(nad.baned())2385 if (!isRegistered) return reply(nad.noregis())2386 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2387 await limitAdd(sender)2388 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiff2 botwea`)2389 reply(nad.wait())2390 sertif = await getBuffer(`http://onlydevcity.xyz/FFSerti2/img.php?nama=${q}`)2391 rmln.sendMessage(from, sertif, image, { quoted: Lan })2392 break2393 case 'sertiff3':2394 if (isBanned) return reply(nad.baned())2395 if (!isRegistered) return reply(nad.noregis())2396 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2397 await limitAdd(sender)2398 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiff3 botwea`)2399 reply(nad.wait())2400 sertifa = await getBuffer(`http://onlydevcity.xyz/FFSerti3/img.php?nama=${q}`)2401 rmln.sendMessage(from, sertifa, image, { quoted: Lan })2402 break2403 case 'sertiff4':2404 if (isBanned) return reply(nad.baned())2405 if (!isRegistered) return reply(nad.noregis())2406 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2407 await limitAdd(sender)2408 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiff4 botwea`)2409 reply(nad.wait())2410 sertifb = await getBuffer(`http://onlydevcity.xyz/FFSerti4/img.php?nama=${q}`)2411 rmln.sendMessage(from, sertifb, image, { quoted: Lan })2412 break2413 case 'sertiff5':2414 if (isBanned) return reply(nad.baned())2415 if (!isRegistered) return reply(nad.noregis())2416 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2417 await limitAdd(sender)2418 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiff5 botwea`)2419 reply(nad.wait())2420 sertifc = await getBuffer(`http://onlydevcity.xyz/FFSerti5/img.php?nama=${q}`)2421 rmln.sendMessage(from, sertifc, image, { quoted: Lan })2422 break2423 case 'sertipubg1':2424 if (isBanned) return reply(nad.baned())2425 if (!isRegistered) return reply(nad.noregis())2426 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2427 await limitAdd(sender)2428 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertipubg1 botwea`)2429 reply(nad.wait())2430 sertipubg = await getBuffer(`http://onlydevcity.xyz/PubgTourSerti/img.php?nama=${q}`)2431 rmln.sendMessage(from, sertipubg, image, { quoted: Lan })2432 break2433 case 'sertipubg2':2434 if (isBanned) return reply(nad.baned())2435 if (!isRegistered) return reply(nad.noregis())2436 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2437 await limitAdd(sender)2438 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertipubg2 botwea`)2439 reply(nad.wait())2440 sertipub = await getBuffer(`http://onlydevcity.xyz/PubgTourSerti2/img.php?nama=${q}`)2441 rmln.sendMessage(from, sertipub, image, { quoted: Lan })2442 break2443 case 'sertiml':2444 if (isBanned) return reply(nad.baned())2445 if (!isRegistered) return reply(nad.noregis())2446 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2447 await limitAdd(sender)2448 if (!q) return reply(`Teks Nya Mana Kak?\nContoh :\n${prefix}sertiml botwea`)2449 reply(nad.wait())2450 sertim = await getBuffer(`http://onlydevcity.xyz/MLTourSerti/img.php?nama=${q}`)2451 rmln.sendMessage(from, sertim, image, { quoted: Lan })2452 break2453 case 'gabutmenu':2454 if (isBanned) return reply(nad.baned())2455 if (!isRegistered) return reply(nad.noregis())2456 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2457 const gabut = `ã *GABUT MENU* ã2458${a}â ${prefix}tebakin${a}2459${a}â ${prefix}caklontong${a}2460${a}â ${prefix}bisakah${a}2461${a}â ${prefix}kapankah${a}2462${a}â ${prefix}apakah${a}2463${a}â ${prefix}rate${a}2464${a}â ${prefix}hobby${a}2465${a}â ${prefix}truth${a}2466${a}â ${prefix}dare${a}2467${a}â ${prefix}cekbapak${a}2468${a}â ${prefix}seberapagay${a}24692470ã *${botName}* ã`2471 fakestatus(gabut)2472 break2473 case 'seberapagay':2474 if (isBanned) return reply(nad.baned())2475 if (!isRegistered) return reply(nad.noregis())2476 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2477 await limitAdd(sender)2478 anu = await fetchJson(`https://arugaz.herokuapp.com/api/howgay`, {method: 'get'})2479 hasil = `Nih Liat Data Gay Si ${q}\n\n\nPersentase Gay : ${anu.persen}%\nAlert!!! : ${anu.desc}`2480 reply(hasil)2481 break2482 case 'tebakin':2483 if (isBanned) return reply(nad.baned())2484 if (!isRegistered) return reply(nad.noregis())2485 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2486 await limitAdd(sender)2487 anu = await fetchJson(`https://api.vhtear.com/tebakgambar&apikey=${vhtear}`)2488 tebak = await getBuffer(anu.result.soalImg)2489 setTimeout(() => {2490 rmln.sendMessage(from, '*⸠Jawaban :* ' + anu.result.jawaban, text, { quoted: Lan })2491 }, 30000) // 1000 = 1s,2492 setTimeout(() => {2493 rmln.sendMessage(from, '_10 Detik lagiâ¦_', text) // ur cods2494 }, 20000) // 1000 = 1s,2495 setTimeout(() => {2496 rmln.sendMessage(from, '_20 Detik lagi_â¦', text) // ur cods2497 }, 10000) // 1000 = 1s,2498 setTimeout(() => {2499 rmln.sendMessage(from, '_30 Detik lagi_â¦', text) // ur cods2500 }, 2500) // 1000 = 1s,2501 setTimeout(() => {2502 rmln.sendMessage(from, tebak, image, { caption: '_Jawab Ye, Gak Bisa Jawab\nHarus Donasi_', quoted: Lan })2503 }, 0) // 1000 = 1s,2504 break2505 case 'caklontong':2506 if (isBanned) return reply(nad.baned())2507 if (!isRegistered) return reply(nad.noregis())2508 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2509 await limitAdd(sender)2510 anu = await fetchJson(`https://api.vhtear.com/funkuis&apikey=${vhtear}`)2511 setTimeout(() => {2512 rmln.sendMessage(from, '*⸠Jawaban :* ' + anu.result.jawaban + '\n' + anu.result.desk, text, { quoted: Lan })2513 }, 30000) // 1000 = 1s,2514 setTimeout(() => {2515 rmln.sendMessage(from, '_10 Detik lagiâ¦_', text) // ur cods2516 }, 20000) // 1000 = 1s,2517 setTimeout(() => {2518 rmln.sendMessage(from, '_20 Detik lagi_â¦', text) // ur cods2519 }, 10000) // 1000 = 1s,2520 setTimeout(() => {2521 rmln.sendMessage(from, '_30 Detik lagi_â¦', text) // ur cods2522 }, 1000) // 1000 = 1s,2523 setTimeout(() => {2524 rmln.sendMessage(from, anu.result.soal, text, { quoted: Lan })2525 }, 0) // 1000 = 1s,2526 break25272528 case 'bisakah':2529 if (isBanned) return reply(nad.baned())2530 if (!isRegistered) return reply(nad.noregis())2531 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2532 await limitAdd(sender)2533 bisakah = body.slice(1)2534 const bisa = ['Tentu Saja Bisa! Kamu Adalah Orang Paling Homky', 'Gak Bisa Ajg Aowkwowk', 'Hmm Gua Gak Tau Yaa, tanya ama bapakau', 'Ulangi Tod Gua Ga Paham']2535 const keh = bisa[Math.floor(Math.random() * bisa.length)]2536 rmln.sendMessage(from, 'Pertanyaan : *' + bisakah + '*\n\nJawaban : ' + keh, text, { quoted: Lan })2537 break25382539 if (isBanned) return reply(nad.baned())2540 if (!isRegistered) return reply(nad.noregis())2541 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2542 await limitAdd(sender)2543 kapankah = body.slice(1)2544 const kapan = ['Besok', 'Lusa', 'Tadi', '4 Hari Lagi', '5 Hari Lagi', '6 Hari Lagi', '1 Minggu Lagi', '2 Minggu Lagi', '3 Minggu Lagi', '1 Bulan Lagi', '2 Bulan Lagi', '3 Bulan Lagi', '4 Bulan Lagi', '5 Bulan Lagi', '6 Bulan Lagi', '1 Tahun Lagi', '2 Tahun Lagi', '3 Tahun Lagi', '4 Tahun Lagi', '5 Tahun Lagi', '6 Tahun Lagi', '1 Abad lagi', '3 Hari Lagi']2545 const koh = kapan[Math.floor(Math.random() * kapan.length)]2546 rmln.sendMessage(from, 'Pertanyaan : *' + kapankah + '*\n\nJawaban : ' + koh, text, { quoted: Lan })2547 break25482549 case 'apakah':2550 if (isBanned) return reply(nad.baned())2551 if (!isRegistered) return reply(nad.noregis())2552 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2553 await limitAdd(sender)2554 apakah = body.slice(1)2555 const apa = ['Iya', 'Tidak', 'Bisa Jadi', 'Ulangi bro gak paham']2556 const kah = apa[Math.floor(Math.random() * apa.length)]2557 rmln.sendMessage(from, 'Pertanyaan : *' + apakah + '*\n\nJawaban : ' + kah, text, { quoted: Lan })2558 break25592560 case 'rate':2561 if (isBanned) return reply(nad.baned())2562 if (!isRegistered) return reply(nad.noregis())2563 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2564 await limitAdd(sender)2565 rate = body.slice(1)2566 const ra = ['4', '9', '17', '28', '34', '48', '59', '62', '74', '83', '97', '100', '29', '94', '75', '82', '41', '39']2567 const te = ra[Math.floor(Math.random() * ra.length)]2568 rmln.sendMessage(from, 'Pertanyaan : *' + rate + '*\n\nJawaban : ' + te + '%', text, { quoted: Lan })2569 break25702571 case 'hobby':2572 if (isBanned) return reply(nad.baned())2573 if (!isRegistered) return reply(nad.noregis())2574 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2575 await limitAdd(sender)2576 hobby = body.slice(1)2577 const hob = ['Desah Di Game', 'Ngocokin Doi', 'Stalking sosmed nya mantan', 'Kau kan gak punya hobby awokawok', 'Memasak', 'Membantu Atok', 'Mabar', 'Nobar', 'Sosmedtan', 'Membantu Orang lain', 'Nonton Anime', 'Nonton Drakor', 'Naik Motor', 'Nyanyi', 'Menari', 'Bertumbuk', 'Menggambar', 'Foto fotoan Ga jelas', 'Maen Game', 'Berbicara Sendiri']2578 const by = hob[Math.floor(Math.random() * hob.length)]2579 rmln.sendMessage(from, 'Pertanyaan : *' + hobby + '*\n\nJawaban : ' + by, text, { quoted: Lan })2580 break25812582 case 'truth':2583 if (isBanned) return reply(nad.baned())2584 if (!isRegistered) return reply(nad.noregis())2585 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2586 await limitAdd(sender)2587 const trut = ['Pernah suka sama siapa aja? berapa lama?', 'Kalau boleh atau kalau mau, di gc/luar gc siapa yang akan kamu jadikan sahabat?(boleh beda/sma jenis)', 'apa ketakutan terbesar kamu?', 'pernah suka sama orang dan merasa orang itu suka sama kamu juga?', 'Siapa nama mantan pacar teman mu yang pernah kamu sukai diam diam?', 'pernah gak nyuri uang nyokap atau bokap? Alesanya?', 'hal yang bikin seneng pas lu lagi sedih apa', 'pernah cinta bertepuk sebelah tangan? kalo pernah sama siapa? rasanya gimana brou?', 'pernah jadi selingkuhan orang?', 'hal yang paling ditakutin', 'siapa orang yang paling berpengaruh kepada kehidupanmu', 'hal membanggakan apa yang kamu dapatkan di tahun ini', 'siapa orang yang bisa membuatmu sange', 'siapa orang yang pernah buatmu sange', '(bgi yg muslim) pernah ga solat seharian?', 'Siapa yang paling mendekati tipe pasangan idealmu di sini', 'suka mabar(main bareng)sama siapa?', 'pernah nolak orang? alasannya kenapa?', 'Sebutkan kejadian yang bikin kamu sakit hati yang masih di inget', 'pencapaian yang udah didapet apa aja ditahun ini?', 'kebiasaan terburuk lo pas di sekolah apa?']2588 const ttrth = trut[Math.floor(Math.random() * trut.length)]2589 truteh = await getBuffer(`https://i.ibb.co/305yt26/bf84f20635dedd5dde31e7e5b6983ae9.jpg`)2590 rmln.sendMessage(from, truteh, image, { caption: '*Truth*\n\n' + ttrth, quoted: Lan })2591 break25922593 case 'dare':2594 if (isBanned) return reply(nad.baned())2595 if (!isRegistered) return reply(nad.noregis())2596 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2597 await limitAdd(sender)2598 const dare = ['Kirim pesan ke mantan kamu dan bilang "aku masih suka sama kamu', 'telfon crush/pacar sekarang dan ss ke pemain', 'pap ke salah satu anggota grup', 'Bilang "KAMU CANTIK BANGET NGGAK BOHONG" ke cowo', 'ss recent call whatsapp', 'drop emot 𤥠setiap ngetik di gc/pc selama 1 hari', 'kirim voice note bilang can i call u baby?', 'drop kutipan lagu/quote, terus tag member yang cocok buat kutipan itu', 'pake foto sule sampe 3 hari', 'ketik pake bahasa daerah 24 jam', 'ganti nama menjadi "gue anak lucinta luna" selama 5 jam', 'chat ke kontak wa urutan sesuai %batre kamu, terus bilang ke dia "i lucky to hv you', 'prank chat mantan dan bilang " i love u, pgn balikan', 'record voice baca surah al-kautsar', 'bilang "i hv crush on you, mau jadi pacarku gak?" ke lawan jenis yang terakhir bgt kamu chat (serah di wa/tele), tunggu dia bales, kalo udah ss drop ke sini', 'sebutkan tipe pacar mu!', 'snap/post foto pacar/crush', 'teriak gajelas lalu kirim pake vn kesini', 'pap mukamu lalu kirim ke salah satu temanmu', 'kirim fotomu dengan caption, aku anak pungut', 'teriak pake kata kasar sambil vn trus kirim kesini', 'teriak " anjimm gabutt anjimmm " di depan rumah mu', 'ganti nama jadi " BOWO " selama 24 jam', 'Pura pura kerasukan, contoh : kerasukan maung, kerasukan belalang, kerasukan kulkas, dll']2599 const der = dare[Math.floor(Math.random() * dare.length)]2600 tod = await getBuffer(`https://i.ibb.co/305yt26/bf84f20635dedd5dde31e7e5b6983ae9.jpg`)2601 rmln.sendMessage(from, tod, image, { quoted: Lan, caption: '*Dare*\n\n' + der })2602 break26032604 case 'cekbapak': // By Ramlan ID2605 if (isBanned) return reply(nad.baned())2606 if (!isRegistered) return reply(nad.noregis())2607 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2608 await limitAdd(sender)2609 const bapak = ['Wah Mantap Lu Masih Punya Bapack\nPasti Bapack Nya Kuli :v\nAwowkwokwwok\n#CandabOs', 'Aowkwwo Disini Ada Yteam :v\nLu Yteam Bro? Awowkwowk\nSabar Bro Ga Punya Bapack\n#Camda', 'Bjir Bapack Mu Ternyata Sudah Cemrai\nSedih Bro Gua Liatnya\nTapi Nih Tapi :v\nTetep Ae Lu Yteam Aowkwowkw Ngakak :v', 'Jangan #cekbapak Mulu Broo :v\nKasian Yang Yteam\nNtar Tersinggung Kan\nYahahaha Hayyuk By : Ramlan ID']2610 const cek = bapak[Math.floor(Math.random() * bapak.length)]2611 rmln.sendMessage(from, cek, text, { quoted: Lan })2612 break26132614 case 'randommenu':2615 if (isBanned) return reply(nad.baned())2616 if (!isRegistered) return reply(nad.noregis())2617 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2618 const random = `ã *RANDOM MENU* ã2619${a}â ${prefix}gachacewek${a}2620${a}â ${prefix}gachacowok${a}2621${a}â ${prefix}sagiri${a}2622${a}â ${prefix}megumin${a}2623${a}â ${prefix}waifu${a}2624${a}â ${prefix}neko${a}2625${a}â ${prefix}shinobu${a}2626${a}â ${prefix}loli${a}2627${a}â ${prefix}nekonime${a}2628${a}â ${prefix}darkjokes${a}2629${a}â ${prefix}meme${a}2630${a}â ${prefix}estetik${a}26312632ã *${botName}* ã`2633 fakestatus(random)2634 break26352636 case 'gachacewek':2637 if (isBanned) return reply(nad.baned())2638 if (!isRegistered) return reply(nad.noregis())2639 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2640 await limitAdd(sender)2641 data = fs.readFileSync('./R4ML4N/cewek.js');2642 jsonData = JSON.parse(data);2643 randIndex = Math.floor(Math.random() * jsonData.length);2644 randKey = jsonData[randIndex];2645 hasil = await getBuffer(randKey.result)2646 sendImage(hasil, Lan, 'Jadi Gimana Bwang?:v')2647 break26482649 case 'gachacowok':2650 if (isBanned) return reply(nad.baned())2651 if (!isRegistered) return reply(nad.noregis())2652 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2653 await limitAdd(sender)2654 data = fs.readFileSync('./R4ML4N/cowok.js');2655 jsonData = JSON.parse(data);2656 randIndex = Math.floor(Math.random() * jsonData.length);2657 randKey = jsonData[randIndex];2658 hasil = await getBuffer(randKey.result)2659 sendImage(hasil, Lan, 'Jadi Gimana Mba?:v')2660 break2661 case 'meme':2662 if (isBanned) return reply(nad.baned())2663 if (!isRegistered) return reply(nad.noregis())2664 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2665 await limitAdd(sender)2666 reply(nad.wait())2667 mimi = await getBuffer(`https://api.xteam.xyz/randomimage/meme?APIKEY=${xteam}`)2668 rmln.sendMessage(from, mimi, image, { quoted: Lan })2669 break26702671 case 'darkjokes':2672 if (isBanned) return reply(nad.baned())2673 if (!isRegistered) return reply(nad.noregis())2674 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2675 await limitAdd(sender)2676 data = fs.readFileSync('./R4ML4N/darkjokes.js');2677 jsonData = JSON.parse(data);2678 randIndex = Math.floor(Math.random() * jsonData.length);2679 randKey = jsonData[randIndex];2680 hasil = await getBuffer(randKey.result)2681 sendImage(hasil, Lan, '*GELAP BOS :V*')2682 break2683 case 'waifu':2684 if (isBanned) return reply(nad.baned())2685 if (!isRegistered) return reply(nad.noregis())2686 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2687 await limitAdd(sender)2688 reply(nad.wait())2689 try {2690 axios.get(`https://waifu.pics/api/sfw/waifu`).then((res)=>{2691 imageToBase64(res.data.url)2692 .then((response) => {2693 var ifu = Buffer.from(response, 'base64');2694 rmln.sendMessage(from, ifu, image, {quoted: Lan, caption: "Wibu AbiZzz"})2695 })})2696 } catch (e) {2697 console.log(`Error :`, color(e,'red'))2698 reply('Error!')2699 }2700 break2701 case 'neko':2702 if (isBanned) return reply(nad.baned())2703 if (!isRegistered) return reply(nad.noregis())2704 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2705 await limitAdd(sender)2706 reply(nad.wait())2707 try {2708 axios.get(`https://waifu.pics/api/sfw/neko`).then((res)=>{2709 imageToBase64(res.data.url)2710 .then((response) => {2711 var ifu = Buffer.from(response, 'base64');2712 rmln.sendMessage(from, ifu, image, {quoted: Lan})2713 })})2714 } catch (e) {2715 console.log(`Error :`, color(e,'red'))2716 reply('Error!')2717 }2718 break2719 case 'megumin':2720 if (isBanned) return reply(nad.baned())2721 if (!isRegistered) return reply(nad.noregis())2722 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2723 await limitAdd(sender)2724 reply(nad.wait())2725 try {2726 axios.get(`https://waifu.pics/api/sfw/megumin`).then((res)=>{2727 imageToBase64(res.data.url)2728 .then((response) => {2729 var ifu = Buffer.from(response, 'base64');2730 rmln.sendMessage(from, ifu, image, {quoted: Lan})2731 })})2732 } catch (e) {2733 console.log(`Error :`, color(e,'red'))2734 reply('Error!')2735 }2736 break2737 case 'shinobu':2738 if (isBanned) return reply(nad.baned())2739 if (!isRegistered) return reply(nad.noregis())2740 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2741 await limitAdd(sender)2742 reply(nad.wait())2743 try {2744 axios.get(`https://waifu.pics/api/sfw/shinobu`).then((res)=>{2745 imageToBase64(res.data.url)2746 .then((response) => {2747 var ifu = Buffer.from(response, 'base64');2748 rmln.sendMessage(from, ifu, image, {quoted: Lan})2749 })})2750 } catch (e) {2751 console.log(`Error :`, color(e,'red'))2752 reply('Error!')2753 }2754 break2755 case 'loli':2756 if (isBanned) return reply(nad.baned())2757 if (!isRegistered) return reply(nad.noregis())2758 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2759 await limitAdd(sender)2760 reply(nad.wait())2761 lomli = await getBuffer(`https://docs-jojo.herokuapp.com/api/randomloli`)2762 rmln.sendMessage(from, lomli, image, { quoted: Lan, caption: 'Cintai Loli Mu>_<' })2763 break27642765 case 'nekonime':2766 if (isBanned) return reply(nad.baned())2767 if (!isRegistered) return reply(nad.noregis())2768 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2769 await limitAdd(sender)2770 anu = await fetchJson(`http://lolhuman.herokuapp.com/api/random2/neko?apikey=pensiB`)2771 reply(nad.wait())2772 neko = await getBuffer(anu.result.url_gbr)2773 rmln.sendMessage(from, neko, image, { quoted: Lan, caption: 'Nekonime >_<' })2774 break27752776 case 'sagiri':2777 if (isBanned) return reply(nad.baned())2778 if (!isRegistered) return reply(nad.noregis())2779 if (!isPrem) return reply(nad.premium(prefix))2780 sagi = await getBuffer(`http://lolhuman.herokuapp.com/api/random/sagiri?apikey=pensiB`)2781 reply(nad.wait())2782 rmln.sendMessage(from, sagi, image, { quoted: Lan })2783 break2784 case 'estetik':2785 if (isBanned) return reply(nad.baned())2786 if (!isRegistered) return reply(nad.noregis())2787 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2788 await limitAdd(sender)2789 anu = await fetchJson(`https://api.zeks.xyz/api/estetikpic?apikey=apivinz`)2790 reply(nad.wait())2791 este = await getBuffer(anu.result.result)2792 rmln.sendMessage(from, este, image, { quoted: Lan })2793 break2794 2795 case 'dompetmenu':2796 if (isBanned) return reply(nad.baned())2797 if (!isRegistered) return reply(nad.noregis())2798 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2799 const dompet = `ã *DOMPET MENU* ã2800${a}â ${prefix}limit${a}2801${a}â ${prefix}transfer${a}2802${a}â ${prefix}atm${a}2803${a}â ${prefix}buylimit${a}2804${a}â ${prefix}premiumlist${a}28052806ã *${botName}* ã`2807 fakestatus(dompet)2808 break28092810 case 'limit':2811 if (isBanned) return reply(nad.baned())2812 if (!isRegistered) return reply(nad.noregis())2813 checkLimit(sender)2814 break28152816 case 'transfer':2817 if (isBanned) return reply(nad.baned())2818 if (!isRegistered) return reply(nad.noregis())2819 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2820 await limitAdd(sender)2821 if (!q.includes('|')) return reply(nad.wrongf())2822 const tujuan = q.substring(0, q.indexOf('|') - 1)2823 const jumblah = q.substring(q.lastIndexOf('|') + 1)2824 if (checkATMuser(sender) < jumblah) return reply(`uang mu tidak mencukupi untuk melakukan transfer`)2825 const tujuantf = `${tujuan.replace("@", '')}@s.whatsapp.net`2826 fee = 0.005 * jumblah2827 hasiltf = jumblah - fee2828 addKoinUser(tujuantf, hasiltf)2829 confirmATM(sender, jumblah)2830 addKoinUser(`${ownerNumber}`, fee)2831 reply(`*ã SUKSES ã*\n\npengiriman uang berhasil\n⸠dari : +${sender.split("@")[0]}\n⸠ke : +${tujuan}\n⸠jumlah transfer : ${jumblah}\n⸠pajak : ${fee}`)2832 break28332834 case 'atm':2835 if (isBanned) return reply(nad.baned())2836 if (!isRegistered) return reply(nad.noregis())2837 const kantong = checkATMuser(sender)2838 reply(nad.uangkau(pushname, sender, kantong))2839 break28402841 case 'buylimit':2842 if (isBanned) return reply(nad.baned())2843 if (!isRegistered) return reply(nad.noregis())2844 payout = body.slice(10)2845 const koinPerlimit = 10002846 const total = koinPerlimit * payout2847 if (checkATMuser(sender) <= total) return reply(`maaf kak uang nya gak cukup, kumpulin uang nya dumlu >_< jangan open bo kak:v`)2848 if (checkATMuser(sender) >= total) {2849 confirmATM(sender, total)2850 bayarLimit(sender, payout)2851 await reply(`*ã PEMBAYARAN BERHASIL ã*\n\n⸠pengirim : Ramlan ID\n⸠penerima : ${pushname}\n⸠nominal pembelian : ${payout} \n⸠harga limit : ${koinPerlimit}/limit\n⸠sisa uang : ${checkATMuser(sender)}\n\nproses berhasil dengan SN\n${createSerial(15)}`)2852 }2853 break2854 case 'toolsmenu':2855 if (isBanned) return reply(nad.baned())2856 if (!isRegistered) return reply(nad.noregis())2857 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2858 const tools = `ã *TOOLS MENU* ã2859${a}â ${prefix}tomp3${a}2860${a}â ${prefix}tomp4${a}2861${a}â ${prefix}toptt${a}2862${a}â ${prefix}toimg${a}2863${a}â ${prefix}imgtourl${a}2864${a}â ${prefix}trigered${a}2865${a}â ${prefix}komenyt${a}2866${a}â ${prefix}nightcore${a}2867${a}â ${prefix}slow${a}2868${a}â ${prefix}tupai${a}2869${a}â ${prefix}blub${a}2870${a}â ${prefix}gemuk${a}2871${a}â ${prefix}ghost${a}2872${a}â ${prefix}bass${a}28732874ã *${botName}* ã`2875 fakestatus(tools)2876 break2877 case 'tomp3':2878 if (isBanned) return reply(nad.baned())2879 if (!isRegistered) return reply(nad.noregis())2880 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2881 await limitAdd(sender)2882 rmln.updatePresence(from, Presence.composing)2883 if (!isQuotedVideo) return reply('Reply Video Nya Kak')2884 reply(nad.wait())2885 encmedia = JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo2886 media = await rmln.downloadAndSaveMediaMessage(encmedia)2887 ran = getRandom('.mp4')2888 exec(`ffmpeg -i ${media} ${ran}`, (err) => {2889 fs.unlinkSync(media)2890 if (err) return reply('Gagal Kak Coba Ulangi:)')2891 mhee = fs.readFileSync(ran)2892 rmln.sendMessage(from, mhee, audio, { mimetype: 'audio/mp4', quoted: Lan })2893 fs.unlinkSync(ran)2894 })2895 break28962897 case 'toimg':2898 if (isBanned) return reply(nad.baned())2899 if (!isRegistered) return reply(nad.noregis())2900 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2901 await limitAdd(sender)2902 if (!isQuotedSticker) return reply('Reply Sticker Nya Kak')2903 reply(nad.wait())2904 encmedia = JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo2905 media = await rmln.downloadAndSaveMediaMessage(encmedia)2906 ran = getRandom('.png')2907 exec(`ffmpeg -i ${media} ${ran}`, (err) => {2908 fs.unlinkSync(media)2909 if (err) return reply(nad.stikga())2910 buffer = fs.readFileSync(ran)2911 rmln.sendMessage(from, buffer, image, { quoted: Lan, caption: 'nih kak [(^.^)]' })2912 fs.unlinkSync(ran)2913 })2914 break29152916 case 'tomp4':2917 if (isBanned) return reply(nad.baned())2918 if (!isRegistered) return reply(nad.noregis())2919 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))2920 await limitAdd(sender)2921 reply(nad.wait())2922 var imgbb = require('imgbb-uploader')2923 if ((isMedia && !Lan.message.videoMessage || isQuotedSticker) && args.length == 0) {2924 ger = isQuotedSticker ? JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo : Lan2925 owgi = await rmln.downloadAndSaveMediaMessage(ger)2926 data = await imgbb("7f2cf4cd570b9a442d6fdec16b74dcfc", owgi)2927 axios.get(`https://ezgif.com/webp-to-mp4?url=${data.display_url}`)2928 .then(({ data }) => {2929 $ = cheerio.load(data)2930 bodyFormThen = new FormData()2931 file = $('input[name="file"]').attr('value')2932 token = $('input[name="token"]').attr('value')2933 convert = $('input[name="file"]').attr('value')2934 gotdata = {2935 file: file,2936 token: token,2937 convert: convert2938 }2939 bodyFormThen.append('file', gotdata.file)2940 bodyFormThen.append('token', gotdata.token)2941 bodyFormThen.append('convert', gotdata.convert)2942 axios({2943 method: 'post',2944 url: 'https://ezgif.com/webp-to-mp4/' + gotdata.file,2945 data: bodyFormThen,2946 headers: {2947 'Content-Type': `multipart/form-data; boundary=${bodyFormThen._boundary}`2948 }2949 }).then(({ data }) => {2950 $ = cheerio.load(data)2951 result = 'https:' + $('div#output > p.outfile > video > source').attr('R4ML4N')2952 getBuffer(result).then(tog => {2953 rmln.sendMessage(from, tog, video, { mimetype: 'video/mp4', quoted: Lan })2954 })2955 })2956 })2957 } else {2958 reply('Reply StickerGif nya!')2959 }2960 break2961 2962 case 'imgtourl':2963 if (isBanned) return reply(nad.baned())2964 if (!isRegistered) return reply(nad.noregis())2965 if (!isPrem) return reply(nad.premium(prefix))2966 costum('[WAIT] Sabar Kak', text, tescuk, cr)2967 var encmedia = isQuotedImage ? JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo : Lan2968 var media = await rmln.downloadAndSaveMediaMessage(encmedia)2969 var imgbb = require('imgbb-uploader')2970 imgbb('9ba3ffa6160a701a61ebafebca46f4cf', media)2971 .then(data => {2972 var caps = `ã *IMAGE TO URL* ã2973⸠ID : ${data.id}2974⸠MimeType : ${data.image.mime}2975⸠Extension : ${data.image.extension}2976⸠URL : ${data.display_url}`2977 ibb = fs.readFileSync(media)2978 rmln.sendMessage(from, ibb, image, { quoted: Lan, caption: caps })2979 })2980 .catch(err => {2981 throw err2982 })2983 break29842985 case 'komenyt':2986 if (isBanned) return reply(nad.baned())2987 if (!isRegistered) return reply(nad.noregis())2988 if (!isPrem) return reply(nad.premium(prefix))2989 gh = body.slice(9)2990 usnm = gh.split("&")[0];2991 cmn = gh.split("&")[1];2992 var imgbb = require('imgbb-uploader')2993 try {2994 pp = await rmln.getProfilePicture(`${sender.split('@')[0]}@s.whatsapp.net`)2995 } catch {2996 pp = 'https://i.ibb.co/Tv6JR98/baby.jpg'2997 }2998 media = await getBuffer(pp)2999 datae = await imageToBase64(JSON.stringify(pp).replace(/\"/gi, ''))3000 fs.writeFileSync('getpp.jpeg', datae, 'base64')3001 res = await imgbb("7f2cf4cd570b9a442d6fdec16b74dcfc", 'getpp.jpeg')3002 buffer = await getBuffer(`https://some-random-api.ml/canvas/youtube-comment?avatar=${res.display_url}&comment=${cmn}&username=${usnm}`)3003 rmln.sendMessage(from, buffer, image, { caption: 'Nih Cok', contextInfo: { participant: '0@s.whatsapp.net', quotedMessage: { conversation: '*_YOUTUBE COMMENT_*' } } })3004 break30053006 case 'trigered':3007 if (isBanned) return reply(nad.baned())3008 if (!isRegistered) return reply(nad.noregis())3009 if (!isPrem) return reply(nad.premium(prefix))3010 var imgbb = require('imgbb-uploader')3011 if ((isMedia && !Lan.message.videoMessage || isQuotedImage) && args.length == 0) {3012 ger = isQuotedImage ? JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo : Lan3013 reply(nad.wait())3014 owgi = await rmln.downloadAndSaveMediaMessage(ger)3015 anu = await imgbb("7f2cf4cd570b9a442d6fdec16b74dcfc", owgi)3016 trig = `${anu.display_url}`3017 ranp = getRandom('.gif')3018 rano = getRandom('.webp')3019 anu1 = `https://some-random-api.ml/canvas/triggered?avatar=${trig}`3020 exec(`wget ${anu1} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {3021 fs.unlinkSync(ranp)3022 if (err) return reply('GAGAL UM')3023 nobg = fs.readFileSync(rano)3024 rmln.sendMessage(from, nobg, sticker, { quoted: Lan })3025 fs.unlinkSync(rano)3026 })3027 } else {3028 reply('Gunakan Foto Kakm')3029 }3030 break3031 case 'nightcore':3032 if (isBanned) return reply(nad.baned())3033 if (!isRegistered) return reply(nad.noregis())3034 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3035 await limitAdd(sender) 3036 if (!isQuotedAudio) return reply('Reply audio nya om')3037 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3038 media = await rmln.downloadAndSaveMediaMessage(encmedia)3039 ran = getRandom('.mp3')3040 exec(`ffmpeg -i ${media} -filter:a atempo=1.06,asetrate=44100*1.25 ${ran}`, (err, stderr, stdout) => {3041 fs.unlinkSync(media)3042 if (err) return reply('Error!')3043 hah = fs.readFileSync(ran)3044 rmln.sendMessage(from, hah, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3045 fs.unlinkSync(ran)3046 })3047 break3048 case 'slow':3049 if (isBanned) return reply(nad.baned())3050 if (!isRegistered) return reply(nad.noregis())3051 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3052 await limitAdd(sender) 3053 if (!isQuotedAudio) return reply('Reply audio nya om')3054 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3055 media = await rmln.downloadAndSaveMediaMessage(encmedia)3056 ran = getRandom('.mp3')3057 exec(`ffmpeg -i ${media} -filter:a "atempo=0.7,asetrate=44100" ${ran}`, (err, stderr, stdout) => {3058 fs.unlinkSync(media)3059 if (err) return reply('Error!')3060 hah = fs.readFileSync(ran)3061 rmln.sendMessage(from, hah, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3062 fs.unlinkSync(ran)3063 })3064 break3065 case 'tupai':3066 if (isBanned) return reply(nad.baned())3067 if (!isRegistered) return reply(nad.noregis())3068 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3069 await limitAdd(sender) 3070 if (!isQuotedAudio) return reply('Reply audio nya om')3071 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3072 media = await rmln.downloadAndSaveMediaMessage(encmedia)3073 ran = getRandom('.mp3')3074 exec(`ffmpeg -i ${media} -filter:a "atempo=0.5,asetrate=65100" ${ran}`, (err, stderr, stdout) => {3075 fs.unlinkSync(media)3076 if (err) return reply('Error!')3077 hah = fs.readFileSync(ran)3078 rmln.sendMessage(from, hah, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3079 fs.unlinkSync(ran)3080 })3081 break3082 case 'blub':3083 if (isBanned) return reply(nad.baned())3084 if (!isRegistered) return reply(nad.noregis())3085 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3086 await limitAdd(sender) 3087 if (!isQuotedAudio) return reply('Reply audio nya om')3088 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3089 media = await rmln.downloadAndSaveMediaMessage(encmedia)3090 ran = getRandom('.mp3')3091 exec(`ffmpeg -i ${media} -filter:a "atempo=0.9,asetrate=95100" ${ran}`, (err, stderr, stdout) => {3092 fs.unlinkSync(media)3093 if (err) return reply('Error!')3094 hah = fs.readFileSync(ran)3095 rmln.sendMessage(from, hah, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3096 fs.unlinkSync(ran)3097 })3098 break3099 case 'gemuk':3100 if (isBanned) return reply(nad.baned())3101 if (!isRegistered) return reply(nad.noregis())3102 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3103 await limitAdd(sender) 3104 if (!isQuotedAudio) return reply('Reply audio nya om')3105 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3106 media = await rmln.downloadAndSaveMediaMessage(encmedia)3107 ran = getRandom('.mp3')3108 exec(`ffmpeg -i ${media} -filter:a "atempo=1.6,asetrate=22100" ${ran}`, (err, stderr, stdout) => {3109 fs.unlinkSync(media)3110 if (err) return reply('Error!')3111 hah = fs.readFileSync(ran)3112 rmln.sendMessage(from, hah, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3113 fs.unlinkSync(ran)3114 })3115 break3116 case 'ghost':3117 if (isBanned) return reply(nad.baned())3118 if (!isRegistered) return reply(nad.noregis())3119 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3120 await limitAdd(sender) 3121 if (!isQuotedAudio) return reply('Reply audio nya om')3122 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3123 media = await rmln.downloadAndSaveMediaMessage(encmedia)3124 ran = getRandom('.mp3')3125 exec(`ffmpeg -i ${media} -filter:a "atempo=1.6,asetrate=3486" ${ran}`, (err, stderr, stdout) => {3126 fs.unlinkSync(media)3127 if (err) return reply('Error!')3128 ghs = fs.readFileSync(ran)3129 rmln.sendMessage(from, ghs, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3130 fs.unlinkSync(ran)3131 })3132 break3133 case 'bass':3134 if (isBanned) return reply(nad.baned())3135 if (!isRegistered) return reply(nad.noregis())3136 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3137 await limitAdd(sender) 3138 if (!isQuotedAudio) return reply('Reply audio nya om')3139 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3140 media = await rmln.downloadAndSaveMediaMessage(encmedia)3141 ran = getRandom('.mp3')3142 exec(`ffmpeg -i ${media} -af equalizer=f=64:width_type=o:width=2:g=56 ${ran}`, (err, stderr, stdout) => {3143 fs.unlinkSync(media)3144 if (err) return reply('Error!')3145 hah = fs.readFileSync(ran)3146 rmln.sendMessage(from, hah, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3147 fs.unlinkSync(ran)3148 })3149 break3150 case 'toptt':3151 if (!isQuotedAudio) return reply('Reply audio nya om')3152 encmedia = JSON.parse(JSON.stringify(odc).replace('quotedM','m')).message.extendedTextMessage.contextInfo3153 media = await rmln.downloadAndSaveMediaMessage(encmedia)3154 ran = getRandom('.mp3')3155 exec(`ffmpeg -i ${media} ${ran}`, (err) => {3156 fs.unlinkSync(media)3157 if (err) return reply('Gagal mengkonversi audio ke ptt')3158 topt = fs.readFileSync(ran)3159 rmln.sendMessage(from, topt, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3160 })3161 await limitAdd(sender)3162 break3163 case 'mutualmenu':3164 if (isBanned) return reply(nad.baned())3165 if (!isRegistered) return reply(nad.noregis())3166 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3167 const mtal = `ã *MUTUAL MENU* ã3168${a}â ${prefix}mutual${a}3169${a}â ${prefix}next${a}31703171ã *${botName}* ã`3172 fakestatus(mtal)3173 break3174 case 'mutual':3175 if (isBanned) return reply(nad.baned())3176 if (!isRegistered) return reply(nad.noregis())3177 if (!isPrem) return reply(nad.premium(prefix))3178 if (isGroup) return reply('Maaf Kak Tidak Bisa Di Group')3179 anug = getRegisteredRandomId(_registered).replace('@s.whatsapp.net', '')3180 await reply('Mencari Pasangan >_<')3181 await reply(`wa.me/${anug}`)3182 await reply(`Pasangan Ditemukan :\n*${prefix}next* â Temukan Pasangan Baru`)3183 break31843185 case 'next':3186 if (isBanned) return reply(nad.baned())3187 if (!isRegistered) return reply(nad.noregis())3188 if (!isPrem) return reply(nad.premium(prefix))3189 if (isGroup) return reply('Maaf Kak Tidak Bisa Di Group')3190 anug = getRegisteredRandomId(_registered).replace('@s.whatsapp.net', '')3191 await reply('Mencari Pasangan >_<')3192 await reply(`wa.me/${anug}`)3193 await reply(`Pasangan Ditemukan :\n*${prefix}next* â Temukan Pasangan Baru`)3194 break3195 3196 case 'othermenu':3197 if (isBanned) return reply(nad.baned())3198 if (!isRegistered) return reply(nad.noregis())3199 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3200 const other = `ã *OTHER MENU* ã3201${a}â ${prefix}lacakip${a}3202${a}â ${prefix}brainly${a}3203${a}â ${prefix}wiki${a}3204${a}â ${prefix}kbbi${a}3205${a}â ${prefix}covid${a}3206${a}â ${prefix}pinterest${a}3207${a}â ${prefix}ytsearch${a}3208${a}â ${prefix}jadwalsholat${a}3209${a}â ${prefix}spamsms${a}32103211ã *${botName}* ã`3212 fakestatus(other)3213 break3214 case 'spamsms':3215 if (isBanned) return reply(nad.baned())3216 if (!isRegistered) return reply(nad.noregis())3217 if (!isPrem) return reply(nad.premium(prefix))3218 if (args[0].startsWith('08')) return reply('Gunakan kode bahasa kak')3219 await fetchJson(`https://api.xteam.xyz/spammer/pizzahut?no=${q}&APIKEY=${xteam}`)3220 await fetchJson(`https://api.xteam.xyz/spammer/olx?no=${q}&APIKEY=${xteam}`)3221 await fetchJson(`https://api.xteam.xyz/spammer/jagreward?no=${q}&APIKEY=${xteam}`)3222 await fetchJson(`https://api.xteam.xyz/spammer/danacita?no=${q}&APIKEY=${xteam}`)3223 await fetchJson(`https://api.xteam.xyz/spammer/akademi?no=${q}&APIKEY=${xteam}`)3224 await fetchJson(`https://api.xteam.xyz/spammer/icq?no=${q}&APIKEY=${xteam}`)3225 reply('Done')3226 break3227 case 'ytsearch': 3228 if (isBanned) return reply(nad.baned())3229 if (!isRegistered) return reply(nad.noregis())3230 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3231 await limitAdd(sender)3232 rmln.updatePresence(from, Presence.composing) 3233 if (args.length < 1) return reply(`mau nyari apaan bwang di yt?`) 3234 anu = await fetchJson(`https://onlydevcity.herokuapp.com/api/ytsearch?q=${body.slice(9)}&apikey=OnlyDevCity01`)3235 njuk = '=================\n'3236 for (let i of anu.results) {3237 njuk += `*Channel :* ${i.channel}\n*Judul* : ${i.title}\n*Link* : ${i.urlyt}\n*Duration* : ${i.duration}\n*ID* : ${i.id}\n*Views* : ${i.views}\n=================\n`3238 }3239 fakestatus(njuk)3240 break3241 case 'lacakip':3242 if (isBanned) return reply(nad.baned())3243 if (!isRegistered) return reply(nad.noregis())3244 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3245 await limitAdd(sender)3246 if (args.length === 0) return reply(`Contoh :\n${prefix}lacakip 10.43.180.140`)3247 iplu = `${body.slice(9)}`3248 data = await fetchJson(`https://videfikri.com/api/iplookup/?ip=${iplu}`, { method: 'get' })3249 lacaks = data.result3250 lacak = `⸠Ip : ${lacaks.ip}3251⸠Country : ${lacaks.country}3252⸠Country code : ${lacaks.country_code}3253⸠Region : ${lacaks.region}3254⸠Region name : ${lacaks.region_name}3255⸠City : ${lacaks.city}3256⸠Latitude : ${lacaks.latitude}3257⸠Longtitude : ${lacaks.longtitude}3258⸠Timezone : ${lacaks.timezone}3259⸠Isp : ${lacaks.isp}3260⸠Org : ${lacaks.org}3261⸠As : ${lacaks.as}`3262 rmln.sendMessage(from, lacak, text, { quoted: Lan })3263 break32643265 case 'brainly':3266 if (isBanned) return reply(nad.baned())3267 if (!isRegistered) return reply(nad.noregis())3268 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3269 if (args.length < 1) return reply(`Yang Mau Dicari Apa Kak?\nContoh :\n${prefix}brainly apa itu penis`)3270 await limitAdd(sender)3271 brien = body.slice(9)3272 brainly(`${brien}`).then(res => {3273 teks = 'â¡ââââââââââââ¡\n'3274 for (let Y of res.data) {3275 teks += `\n*ã BRAINLY ã*\n\n*⸠Pertanyaan:* ${Y.pertanyaan}\n\n*⸠Jawaban:* ${Y.jawaban[0].text}\nâ¡ââââââââââââ¡\n`3276 }3277 rmln.sendMessage(from, teks, text, { quoted: Lan, detectLinks: false })3278 console.log(res)3279 })3280 break32813282 case 'wiki':3283 if (isBanned) return reply(nad.baned())3284 if (!isRegistered) return reply(nad.noregis())3285 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3286 await limitAdd(sender)3287 if (args.length < 1) return reply(`Yang Mau Dicari Apa Kak?\nContoh :\n${prefix}wiki online`)3288 var bby = body.slice(6)3289 anu = await fetchJson(`https://api.zeks.xyz/api/wiki?q=${bby}&apikey=apivinz`)3290 reply('[WAIT] Sedang Searching...')3291 wikiped = `ã WIKI PEDIA ã\n Jawaban : ${anu.result.result}`3292 rmln.sendMessage(from, wikiped, text, { quoted: Lan })3293 break32943295 case 'kbbi':3296 if (isBanned) return reply(nad.baned())3297 if (!isRegistered) return reply(nad.noregis())3298 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3299 await limitAdd(sender)3300 if (args.length < 1) return reply(`Yang Mau Dicari Apa Kak?\nContoh :\n${prefix}kbbi manusia`)3301 var bby = body.slice(6)3302 anu = await fetchJson(`https://videfikri.com/api/kbbi/?query=${bby}`)3303 reply('[WAIT] Sedang Searching...')3304 kabebei = `ã *KBBI* ã\nJawaban : ${anu.result.hasil}`3305 rmln.sendMessage(from, kabebei, text, { quoted: Lan })3306 break3307 3308 case 'covid':3309 if (isBanned) return reply(nad.baned())3310 if (!isRegistered) return reply(nad.noregis())3311 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3312 await limitAdd(sender)3313 anu = await fetchJson(`https://videfikri.com/api/covidindo/`)3314 cvd = `ã *INGFO COVID* ã33153316Negara : ${anu.result.country}3317Positif : ${anu.result.positif}3318Sembuh : ${anu.result.sembuh}3319Meninggal : ${anu.result.meninggal}`3320 rmln.sendMessage(from, cvd, text, { quoted: Lan })3321 break3322 3323 case 'pinterest':3324 if (isBanned) return reply(nad.baned())3325 if (!isRegistered) return reply(nad.noregis())3326 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3327 await limitAdd(sender)3328 rmln.updatePresence(from, Presence.composing)3329 data = await fetchJson(`https://api.fdci.se/rep.php?gambar=${body.slice(11)}`, { method: 'get' })3330 reply(nad.wait())3331 n = JSON.parse(JSON.stringify(data));3332 nimek = n[Math.floor(Math.random() * n.length)];3333 pok = await getBuffer(nimek)3334 rmln.sendMessage(from, pok, image, { quoted: Lan, caption: `*PINTEREST*` })3335 break3336 case 'jadwalsholat':3337 if (isBanned) return reply(nad.baned())3338 if (!isRegistered) return reply(nad.noregis())3339 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3340 await limitAdd(sender)3341 if (!q) return reply(`Daerah Nya Mana?\nContoh :\n${prefix}jadwalsholat Tasikmalaya`)3342 anu = await fetchJson(`https://api.zeks.xyz/api/jadwalsholat?apikey=apivinz&daerah=${q}`)3343 jsholat `${anu.data.string}`3344 rmln.sendMessage(from, jsholat, text, {quoted: Lan})3345 break33463347 case 'storagemenu':3348 if (isBanned) return reply(nad.baned())3349 if (!isRegistered) return reply(nad.noregis())3350 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3351 const storage = `ã *STORAGE* ã3352${a}â ${prefix}addstiker${a}3353${a}â ${prefix}getstiker${a}3354${a}â ${prefix}liststiker${a}3355${a}â ${prefix}addvideo${a}3356${a}â ${prefix}getvideo${a}3357${a}â ${prefix}listvideo${a}3358${a}â ${prefix}addvn${a}3359${a}â ${prefix}getvn${a}3360${a}â ${prefix}listvn${a}3361${a}â ${prefix}addimage${a}3362${a}â ${prefix}getimage${a}3363${a}â ${prefix}listimage${a}3364${a}â ${prefix}iri${a}3365${a}â ${prefix}pale${a}3366${a}â ${prefix}pota${a}3367${a}â ${prefix}welot${a}3368${a}â ${prefix}alay${a}3369${a}â ${prefix}bernyanyi${a}3370${a}â ${prefix}bwa${a}3371${a}â ${prefix}ganteng${a}3372${a}â ${prefix}gatal${a}3373${a}â ${prefix}ladida${a}3374${a}â ${prefix}rusher${a}3375${a}â ${prefix}boong${a}3376${a}â ${prefix}tengteng${a}3377${a}â ${prefix}sound1${a}3378${a}â ${prefix}sound2${a}3379${a}â ${prefix}sound3${a}3380${a}â ${prefix}sound4${a}3381${a}â ${prefix}sound5${a}3382${a}â ${prefix}sound6${a}3383${a}â ${prefix}sound7${a}33843385ã *${botName}* ã`3386 fakestatus(storage)3387 break3388 case 'addstiker':3389 if (isBanned) return reply(nad.baned())3390 if (!isRegistered) return reply(nad.noregis())3391 if (!isPrem) return reply(nad.premium(prefix))3392 if (!isQuotedSticker) return reply('Reply stickernya kak -_-')3393 stiklan = body.slice(11)3394 if (!stiklan) return reply('Namain Stickernya kak!')3395 adds = JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo3396 lan = await rmln.downloadMediaMessage(adds)3397 setimker.push(`${stiklan}`)3398 fs.writeFileSync(`./media/sticker/${stiklan}.webp`, lan)3399 fs.writeFileSync(`./media/stik.json`, JSON.stringify(setimker))3400 await reply('Sticker Berhasil Ditambahkan Ke Database Bot')3401 break34023403 case 'getstiker':3404 if (isBanned) return reply(nad.baned())3405 if (!isRegistered) return reply(nad.noregis())3406 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3407 await limitAdd(sender)3408 if (args.length < 1) return reply(`Nama Stiker Nya Apa kak?\nKalo Gak Tau Ketik :\n${prefix}liststiker`)3409 stikeram = body.slice(11)3410 hasilya = fs.readFileSync(`./media/sticker/${stikeram}.webp`)3411 rmln.sendMessage(from, hasilya, sticker, { quoted: Lan })3412 break34133414 case 'liststiker':3415 if (isBanned) return reply(nad.baned())3416 if (!isRegistered) return reply(nad.noregis())3417 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3418 lis = 'âââã *LIST STICKER* ã\n'3419 for (let cieee of setimker) {3420 lis += `⯠${cieee}\n`3421 }3422 lis += `\nâ°âââââã *${setimker.length}* ã`3423 rmln.sendMessage(from, lis.trim(), extendedText, { quoted: Lan, contextInfo: { "mentionedJid": setimker } })3424 break34253426 case 'addvideo':3427 if (isBanned) return reply(nad.baned())3428 if (!isRegistered) return reply(nad.noregis())3429 if (!isPrem) return reply(nad.premium(prefix))3430 if (!isQuotedVideo) return reply('Reply Videonya Kak')3431 adv = body.slice(10)3432 if (!adv) return reply('Namain video nya kak')3433 deo = JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo3434 dvi = await rmln.downloadMediaMessage(deo)3435 vidioya.push(`${adv}`)3436 fs.writeFileSync(`./media/video/${adv}.mp4`, dvi)3437 fs.writeFileSync(`./media/video.json`, JSON.stringify(vidioya))3438 rmln.sendMessage(from, `Video Berhasil Ditambahkan Ke Database Bot`, MessageType.text, { quoted: Lan })3439 break34403441 case 'getvideo':3442 if (isBanned) return reply(nad.baned())3443 if (!isRegistered) return reply(nad.noregis())3444 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3445 await limitAdd(sender)3446 if (args.length < 1) return reply(`Nama Video Nya Apa kak?\nKalo Gak Tau Ketik :\n${prefix}listvideo`)3447 getvi = body.slice(10)3448 buffer = fs.readFileSync(`./media/video/${getvi}.mp4`)3449 rmln.sendMessage(from, buffer, video, { mimetype: 'video/mp4', quoted: Lan })3450 break34513452 case 'listvideo':3453 if (isBanned) return reply(nad.baned())3454 if (!isRegistered) return reply(nad.noregis())3455 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3456 list = 'âââã *LIST VIDEO* ã\n'3457 for (let nihh of vidioya) {3458 list += `⯠${nihh}\n`3459 }3460 list += `\nâ°âââââã *${vidioya.length}* ã`3461 rmln.sendMessage(from, list.trim(), extendedText, { quoted: Lan, contextInfo: { "mentionedJid": vidioya } })3462 break34633464 case 'addvn':3465 if (isBanned) return reply(nad.baned())3466 if (!isRegistered) return reply(nad.noregis())3467 if (!isPrem) return reply(nad.premium(prefix))3468 if (!isQuotedAudio) return reply('Reply Vn Nya Kak')3469 advn = body.slice(7)3470 if (!advn) return reply('Nama vn nya apa?')3471 boij = JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo3472 delb = await rmln.downloadMediaMessage(boij)3473 audioya.push(`${advn}`)3474 fs.writeFileSync(`./media/audio/${advn}.mp3`, delb)3475 fs.writeFileSync('./media/audio.json', JSON.stringify(audioya))3476 rmln.sendMessage(from, `Vn Berhasil Ditambahkan Ke Database Bot`, MessageType.text, { quoted: Lan })3477 break34783479 case 'getvn':3480 if (isBanned) return reply(nad.baned())3481 if (!isRegistered) return reply(nad.noregis())3482 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3483 await limitAdd(sender)3484 if (args.length < 1) return reply(`Nama Vn Nya Apa kak?\nKalo Gak Tau Ketik :\n${prefix}listvn`)3485 namastc = body.slice(7)3486 buffer = fs.readFileSync(`./media/audio/${namastc}.mp3`)3487 rmln.sendMessage(from, buffer, audio, { mimetype: 'audio/mp4', quoted: Lan, ptt: true })3488 break34893490 case 'listvn':3491 if (isBanned) return reply(nad.baned())3492 if (!isRegistered) return reply(nad.noregis())3493 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3494 lisv = 'âââã *LIST VN* ã\n'3495 for (let awokwkwk of audioya) {3496 lisv += `⯠${awokwkwk}\n`3497 }3498 lisv += `\nâ°âââââã *${audioya.length}* ã`3499 rmln.sendMessage(from, lisv.trim(), extendedText, { quoted: Lan, contextInfo: { "mentionedJid": audioya } })3500 break35013502 case 'addimage':3503 if (isBanned) return reply(nad.baned())3504 if (!isRegistered) return reply(nad.noregis())3505 if (!isPrem) return reply(nad.premium(prefix))3506 if (!isQuotedImage) return reply('Reply Gambar Nya Kak')3507 sepimg = body.slice(10)3508 if (!sepimg) return reply('Nama Gambar Nya Apa?')3509 svimeg = JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo3510 imej = await rmln.downloadMediaMessage(svimeg)3511 imegya.push(`${sepimg}`)3512 fs.writeFileSync(`./media/image/${sepimg}.jpeg`, imej)3513 fs.writeFileSync('./media/image.json', JSON.stringify(imegya))3514 rmln.sendMessage(from, `Gambar Berhasil Ditambahkan Ke Database Bot`, MessageType.text, { quoted: Lan })3515 break35163517 case 'getimage':3518 if (isBanned) return reply(nad.baned())3519 if (!isRegistered) return reply(nad.noregis())3520 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3521 await limitAdd(sender)3522 if (args.length < 1) return reply(`Nama Gambar Nya Apa kak?\nKalo Gak Tau Ketik :\n${prefix}listimage`)3523 namastc = body.slice(10)3524 buffer = fs.readFileSync(`./media/image/${namastc}.jpeg`)3525 rmln.sendMessage(from, buffer, image, { quoted: Lan })3526 break35273528 case 'listimage':3529 if (isBanned) return reply(nad.baned())3530 if (!isRegistered) return reply(nad.noregis())3531 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3532 lisi = 'âââã *LIST IMAGE* ã\n'3533 for (let menghilih of imegya) {3534 lisi += `⯠${menghilih}\n`3535 }3536 lisi += `\nâ°âââââã *${imegya.length}* ã`3537 rmln.sendMessage(from, lisi.trim(), extendedText, { quoted: Lan, contextInfo: { "mentionedJid": imegya } })3538 break3539 case 'iri':3540 if (isBanned) return reply(nad.baned())3541 if (!isRegistered) return reply(nad.noregis())3542 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3543 await limitAdd(sender)3544 irim = fs.readFileSync('./media/dj/iri.mp3');3545 rmln.sendMessage(from, irim, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3546 break35473548 case 'pale':3549 if (isBanned) return reply(nad.baned())3550 if (!isRegistered) return reply(nad.noregis())3551 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3552 await limitAdd(sender)3553 pal = fs.readFileSync('./media/dj/pale.mp3');3554 rmln.sendMessage(from, pal, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3555 break35563557 case 'pota':3558 if (isBanned) return reply(nad.baned())3559 if (!isRegistered) return reply(nad.noregis())3560 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3561 await limitAdd(sender)3562 pot = fs.readFileSync('./media/dj/pota.mp3');3563 rmln.sendMessage(from, pot, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3564 break35653566 case 'welot':3567 if (isBanned) return reply(nad.baned())3568 if (!isRegistered) return reply(nad.noregis())3569 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3570 await limitAdd(sender)3571 wel = fs.readFileSync('./media/dj/welot.mp3');3572 rmln.sendMessage(from, wel, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3573 break35743575 case 'alay':3576 if (isBanned) return reply(nad.baned())3577 if (!isRegistered) return reply(nad.noregis())3578 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3579 await limitAdd(sender)3580 ala = fs.readFileSync('./media/dj/alay.mp3');3581 rmln.sendMessage(from, ala, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3582 break35833584 case 'bernyanyi':3585 if (isBanned) return reply(nad.baned())3586 if (!isRegistered) return reply(nad.noregis())3587 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3588 await limitAdd(sender)3589 ber = fs.readFileSync('./media/dj/bernyanyi.mp3');3590 rmln.sendMessage(from, ber, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3591 break35923593 case 'bwa':3594 if (isBanned) return reply(nad.baned())3595 if (!isRegistered) return reply(nad.noregis())3596 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3597 await limitAdd(sender)3598 bw = fs.readFileSync('./media/dj/bwa.mp3');3599 rmln.sendMessage(from, bw, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3600 break36013602 case 'ganteng':3603 if (isBanned) return reply(nad.baned())3604 if (!isRegistered) return reply(nad.noregis())3605 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3606 await limitAdd(sender)3607 gan = fs.readFileSync('./media/dj/ganteng.mp3');3608 rmln.sendMessage(from, gan, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3609 break36103611 case 'gatal':3612 if (isBanned) return reply(nad.baned())3613 if (!isRegistered) return reply(nad.noregis())3614 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3615 await limitAdd(sender)3616 ga = fs.readFileSync('./media/dj/gatal.mp3');3617 rmln.sendMessage(from, ga, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3618 break36193620 case 'ladida':3621 if (isBanned) return reply(nad.baned())3622 if (!isRegistered) return reply(nad.noregis())3623 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3624 await limitAdd(sender)3625 lada = fs.readFileSync('./media/dj/ladadida.mp3');3626 rmln.sendMessage(from, lada, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3627 break36283629 case 'rusher':3630 if (isBanned) return reply(nad.baned())3631 if (!isRegistered) return reply(nad.noregis())3632 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3633 await limitAdd(sender)3634 rus = fs.readFileSync('./media/dj/rusher.mp3');3635 rmln.sendMessage(from, rus, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3636 break36373638 case 'boong':3639 if (isBanned) return reply(nad.baned())3640 if (!isRegistered) return reply(nad.noregis())3641 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3642 await limitAdd(sender)3643 boo = fs.readFileSync('./media/dj/tb.mp3');3644 rmln.sendMessage(from, boo, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3645 break36463647 case 'tengteng':3648 if (isBanned) return reply(nad.baned())3649 if (!isRegistered) return reply(nad.noregis())3650 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3651 await limitAdd(sender)3652 teng = fs.readFileSync('./media/dj/tengteng.mp3');3653 rmln.sendMessage(from, teng, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3654 break36553656 case 'sound1':3657 if (isBanned) return reply(nad.baned())3658 if (!isRegistered) return reply(nad.noregis())3659 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3660 await limitAdd(sender)3661 satu = fs.readFileSync('./media/music/sound1.mp3');3662 rmln.sendMessage(from, satu, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3663 break36643665 case 'sound2':3666 if (isBanned) return reply(nad.baned())3667 if (!isRegistered) return reply(nad.noregis())3668 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3669 await limitAdd(sender)3670 dua = fs.readFileSync('./media/music/sound2.mp3');3671 rmln.sendMessage(from, dua, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3672 break36733674 case 'sound3':3675 if (isBanned) return reply(nad.baned())3676 if (!isRegistered) return reply(nad.noregis())3677 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3678 await limitAdd(sender)3679 tiga = fs.readFileSync('./media/music/sound3.mp3');3680 rmln.sendMessage(from, tiga, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3681 break36823683 case 'sound4':3684 if (isBanned) return reply(nad.baned())3685 if (!isRegistered) return reply(nad.noregis())3686 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3687 await limitAdd(sender)3688 empat = fs.readFileSync('./media/music/sound4.mp3');3689 rmln.sendMessage(from, empat, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3690 break36913692 case 'sound5':3693 if (isBanned) return reply(nad.baned())3694 if (!isRegistered) return reply(nad.noregis())3695 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3696 await limitAdd(sender)3697 lima = fs.readFileSync('./media/music/sound5.mp3');3698 rmln.sendMessage(from, lima, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3699 break37003701 case 'sound6':3702 if (isBanned) return reply(nad.baned())3703 if (!isRegistered) return reply(nad.noregis())3704 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3705 await limitAdd(sender)3706 enam = fs.readFileSync('./media/music/sound6.mp3');3707 rmln.sendMessage(from, enam, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3708 break37093710 case 'sound7':3711 if (isBanned) return reply(nad.baned())3712 if (!isRegistered) return reply(nad.noregis())3713 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3714 await limitAdd(sender)3715 tujuh = fs.readFileSync('./media/music/sound7.mp3');3716 rmln.sendMessage(from, tujuh, MessageType.audio, { quoted: Lan, mimetype: 'audio/mp4', ptt: true })3717 break3718 case 'ownermenu':3719 const bosnya = `ã *MENU BOSS* ã3720${a}â ${prefix}addprem${a}3721${a}â ${prefix}dellprem${a}3722${a}â ${prefix}ban${a}3723${a}â ${prefix}unban${a}3724${a}â ${prefix}addbadword${a}3725${a}â ${prefix}delbadword${a}3726${a}â ${prefix}badwordlist${a}3727${a}â ${prefix}bc${a}3728${a}â ${prefix}setreply${a}3729${a}â ${prefix}setprefix${a}3730${a}â ${prefix}setbio${a}3731${a}â ${prefix}setppbot${a}3732${a}â ${prefix}setthumb${a}3733${a}â ${prefix}clearall${a}3734${a}â ${prefix}resetlimit${a}3735${a}â ${prefix}event${a}3736${a}â ${prefix}term${a}3737${a}â ${prefix}return${a}3738${a}â ${prefix}readall${a}37393740*ABOUT* 3741${a}â ${prefix}runtime${a}3742${a}â ${prefix}creator${a}3743${a}â ${prefix}donasi${a}3744${a}â ${prefix}iklan${a}3745${a}â ${prefix}ping${a}3746${a}â ${prefix}info${a}3747${a}â cekprefix${a}37483749ã *${botName}* ã`3750 fakestatus(bosnya)3751 break 3752 case 'setthumb':3753 if (!isOwner) return reply(nad.ownerb())3754 if (!isQuotedImage) return reply('Reply imagenya blokk!')3755 const messimagethumb = JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo3756 const downiamgethumb = await rmln.downloadMediaMessage(messimagethumb)3757 fs.unlinkSync(`./src/image/thumbnail.jpeg`)3758 await sleep(2000)3759 fs.writeFileSync(`./src/image/thumbnail.jpeg`, downiamgethumb)3760 reply('Succes')3761 break3762 case 'setppbot':3763 rmln.updatePresence(from, Presence.composing)3764 if (!isQuotedImage) return reply(`Kirim gambar dengan caption ${prefix}setbotpp atau tag gambar yang sudah dikirim`)3765 if (!isOwner) return reply(nad.ownerb())3766 enmedia = JSON.parse(JSON.stringify(Lan).replace('quotedM','m')).message.extendedTextMessage.contextInfo3767 media = await rmln.downloadAndSaveMediaMessage(enmedia)3768 await rmln.updateProfilePicture(botNumber, media)3769 reply('Makasih profil barunyað')3770 break3771 case 'readall':3772 if (!isOwner) return reply(nad.ownerb())3773 var chats = await rmln.chats.all()3774 chats.map( async ({ jid }) => {3775 await rmln.chatRead(jid)3776 })3777 rdl = `${a}Berhasil membaca ${chats.length} Chat !${a}`3778 await rmln.sendMessage(from, rdl, MessageType.text, {quoted: Lan})3779 console.log(chats.length)3780 break3781 case 'addprem':3782 if (!isOwner) return reply(nad.ownerb())3783 adprem = `${args[0].replace('@', '')}@s.whatsapp.net`3784 premium.push(adprem)3785 fs.writeFileSync('./database/premium.json', JSON.stringify(premium))3786 fakestatus(`BERHASIL MENAMBAHKAN USER PREMIUM`)3787 break37883789 case 'dellprem':3790 if (!isOwner) return reply(nad.ownerb())3791 delprem = `${args[0].replace('@', '')}@s.whatsapp.net`3792 delp = ban.indexOf(delprem)3793 premium.splice(delp, 1)3794 fs.writeFileSync('./database/premium.json', JSON.stringify(premium))3795 fakestatus(`BERHASIL MENGHAPUS USER PREMIUM`)3796 break3797 3798 case 'premiumlist':3799 rmln.updatePresence(from, Presence.composing) 3800 if (isBanned) return reply(nad.baned())3801 if (!isRegistered) return reply(nad.noregis())3802 if (isLimit(sender)) return reply(nad.limitend(pusname, prefix))3803 pemlist = 'âââã *USER PREMIUM* ã\n'3804 for (let premm of premium) {3805 pemlist += `> @${premm.split('@')[0]}\n`3806 }3807 pemlist += `Total : ${premium.length}`3808 rmln.sendMessage(from, pemlist.trim(), extendedText, {quoted: Lan, contextInfo: {"mentionedJid": premium}})3809 break3810 3811 case 'ban':3812 if (!isOwner) return reply(nad.ownerb())3813 bnnd = `${args[0].replace('@', '')}@s.whatsapp.net`3814 ban.push(bnnd)3815 fs.writeFileSync('./database/banned.json', JSON.stringify(ban))3816 fakestatus(`Nomor ${bnnd} telah dibanned!`)3817 break38183819 case 'unban':3820 if (!isOwner) return reply(nad.ownerb())3821 ya = `${args[0].replace('@', '')}@s.whatsapp.net`3822 unb = ban.indexOf(ya)3823 ban.splice(unb, 1)3824 fs.writeFileSync('./database/banned.json', JSON.stringify(ban))3825 fakestatus(`Nomor ${ya} telah di unban!`)3826 break3827 case 'addbadword':3828 if (!isOwner) return reply(nad.ownerb())3829 if (args.length < 1) return reply( `Kirim perintah ${prefix}addbadword [kata kasar]. contoh ${prefix}addbadword bego`)3830 const bw = body.slice(12)3831 bad.push(bw)3832 fs.writeFileSync('./database/bad.json', JSON.stringify(bad))3833 reply('Success Menambahkan Bad Word!')3834 break3835 case 'delbadword':3836 if (!isOwner) return reply(nad.ownerb())3837 if (args.length < 1) return reply( `Kirim perintah ${prefix}addbadword [kata kasar]. contoh ${prefix}addbadword bego`)3838 let dbw = body.slice(12)3839 bad.splice(dbw)3840 fs.writeFileSync('./database/bad.json', JSON.stringify(bad))3841 reply('Success Menghapus BAD WORD!')3842 break 3843 case 'listbadword':3844 case 'badwordlist':3845 if (isBanned) return reply(nad.baned())3846 if (!isRegistered) return reply(nad.noregis())3847 let lbw = `Ini adalah list BAD WORD\nTotal : ${bad.length}\n`3848 for (let i of bad) {3849 lbw += `⢠${i.replace(bad)}\n`3850 }3851 await reply(lbw)3852 break3853 case 'bc':3854 rmln.updatePresence(from, Presence.composing)3855 if (!isOwner) return reply(nad.ownerb())3856 if (args.length < 1) return reply('.......')3857 anu = await rmln.chats.all()3858 if (isMedia && !Lan.message.videoMessage || isQuotedImage) {3859 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(Lan).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo : Lan3860 buff = await rmln.downloadMediaMessage(encmedia)3861 for (let _ of anu) {3862 rmln.sendMessage(_.jid, buff, image, { caption: `*ã ${botName} BROADCAST ã*\n\n${body.slice(4)}` })3863 }3864 reply('')3865 } else {3866 for (let _ of anu) {3867 sendMess(_.jid, `*ã ${botName} BROADCAST ã*\n\n${body.slice(4)}`)3868 }3869 reply('*ã SUKSES BOSKU ã*')3870 }3871 break38723873 case 'setreply':3874 if (!isOwner) return reply(nad.ownerb())3875 rmln.updatePresence(from, Presence.composing)3876 if (args.length < 1) return3877 cr = body.slice(10)3878 fakestatus(`reply berhasil di ubah menjadi : ${cr}`)3879 await limitAdd(sender)3880 break 3881 3882 case 'setprefix':3883 if (args.length < 1) return3884 if (!isOwner) return reply(nad.ownerb())3885 prefix = args[0]3886 fakestatus(`*ã SUKSES ã* Prefix jadi ⸠: ${prefix}`)3887 break38883889 case 'setbio':3890 if (!isOwner) return reply(nad.ownerb())3891 iyek = body.slice(8)3892 rmln.setStatus(`${iyek}`)3893 fakestatus(`Status BOT berhasil diperbarui menjadi :\n*[ ${iyek} ]*`)3894 break3895 3896 case 'clearall':3897 if (!isOwner) return reply(nad.ownerb())3898 anu = await rmln.chats.all()3899 rmln.setMaxListeners(25)3900 for (let _ of anu) {3901 rmln.deleteChat(_.jid)3902 }3903 fakestatus(nad.clears())3904 break39053906 case 'resetlimit':3907 if (!isOwner) return reply(nad.ownerb())3908 var ngonsol = []3909 rest = _limit.indexOf([])3910 _limit.splice(rest)3911 fs.writeFileSync('./database/limit.json', JSON.stringify(ngonsol))3912 fakestatus(`LIMIT BERHASIL DI RESET BOS`)3913 break39143915 case 'event':3916 if (isBanned) return reply(nad.baned())3917 if (!isGroup) return reply(nad.groupo())3918 if (!isOwner) return reply(nad.ownerb())3919 if (args.length < 1) return reply('Ekhemm >_<')3920 if (Number(args[0]) === 1) {3921 if (isEventon) return reply('*FITUR EVENT SUDAH AKTIF BOS*')3922 event.push(from)3923 fs.writeFileSync('./database/event.json', JSON.stringify(event))3924 reply('*ã SUKSES ãMENGAKTIFKAN EVENT DI GROUP*')3925 } else if (Number(args[0]) === 0) {3926 event.splice(from, 1)3927 fs.writeFileSync('./database/event.json', JSON.stringify(event))3928 reply('*ã SUKSES ãMEMATIKAN EVENT DI GROUP*')3929 } else {3930 reply('pilih 1/0')3931 }3932 break39333934 case 'term':3935 if (!isOwner) return reply(nad.ownerB())3936 const cmd = body.slice(6)3937 var itsme = `0@s.whatsapp.net`3938 var split = `EXECUTOR`3939 const term = {3940 contextInfo: {3941 participant: itsme,3942 quotedMessage: {3943 extendedTextMessage: {3944 text: split,3945 }3946 }3947 }3948 }3949 exec(cmd, (err, stdout) => {3950 if (err) return rmln.sendMessage(from, `root@Ramlan:~ ${err}`, text, { quoted: Lan })3951 if (stdout) {3952 rmln.sendMessage(from, stdout, text, term)3953 }3954 })3955 break39563957 case 'return':3958 return rmln.sendMessage(from, JSON.stringify(eval(args.join(''))), text, { quoted: Lan })3959 break3960 default:3961 if (budy == '@verify') {3962 if (isBanned) return reply(nad.baned())3963 if (isRegistered) return reply(nad.rediregis())3964 const serialUser = createSerial(20)3965 veri = sender3966 if (isGroup) {3967 addRegisteredUser(sender, pushname, time, serialUser)3968 try {3969 ppadd = await rmln.getProfilePicture(`${sender.split('@')[0]}@s.whatsapp.net`)3970 } catch {3971 ppadd = 'https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg'3972 }3973 captnya = `âââã *VERIFIKASI BERHASIL* ã3974${a}⸠Nama : ${pushname}${a}3975${a}⸠Nomor : wa.me/${sender.split("@")[0]}${a}3976${a}⸠Waktu Verify : ${time}${a}3977${a}⸠SN : ${serialUser}${a}3978${a}⸠User Verified : ${_registered.length}${a}3979â°âââââã *${botName}* ã`3980 let peripi = await getBuffer(ppadd)3981 rmln.sendMessage(from, peripi, image, {3982 caption: captnya, quoted: {3983 key: {3984 fromMe: false,3985 participant: `0@s.whatsapp.net`, ...(from ? { remoteJid: "status@broadcast" } : {})3986 },3987 message: {3988 conversation: cr3989 }3990 }3991 })3992 addATM(sender)3993 addLevelingId(sender)3994 console.log(color('[REGISTER]'), color(time, 'yellow'), 'Name:', color(pushname, 'cyan'), 'Serial:', color(serialUser, 'cyan'), 'in', color(sender || groupName))3995 } else {3996 addRegisteredUser(sender, pushname, time, serialUser)3997 try {3998 ppadd = await rmln.getProfilePicture(`${sender.split('@')[0]}@s.whatsapp.net`)3999 } catch {4000 ppadd = 'https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg'4001 }4002 captnya = `âââã *VERIFIKASI BERHASIL* ã4003${a}⸠Nama : ${pushname}${a}4004${a}⸠Nomor : wa.me/${sender.split("@")[0]}${a}4005${a}⸠Waktu Verify : ${time}${a}4006${a}⸠SN : ${serialUser}${a}4007${a}⸠User Verified : ${_registered.length}${a}4008â°âââââã *${botName}* ã`4009 let peripi = await getBuffer(ppadd)4010 rmln.sendMessage(from, peripi, image, {4011 caption: captnya, quoted: {4012 key: {4013 fromMe: false,4014 participant: `0@s.whatsapp.net`, ...(from ? { remoteJid: "status@broadcast" } : {})4015 },4016 message: {4017 conversation: cr4018 }4019 }4020 })4021 }4022 addATM(sender)4023 addLevelingId(sender)4024 console.log(color('[REGISTER]'), color(time, 'yellow'), 'Name:', color(pushname, 'cyan'), 'Serial:', color(serialUser, 'cyan'))4025 }4026 }4027 if (budy == 'cekprefix') {4028 fakestatus(`*${botName} MENGGUNAKAN PREFIX :ã ${prefix} ã*`)4029 }4030 if (budy == 'p') {4031 reply(`Ya, Ada Yang Bisa Saya Bantu? Kalo Bingung Ketik ${prefix}menu Ya Kak`)4032 }4033 if (budy == 'P') {4034 reply(`Ya, Ada Yang Bisa Saya Bantu? Kalo Bingung Ketik ${prefix}menu Ya Kak`)4035 }4036 if (budy == 'bot') {4037 reply(`Ya, Emang Gue BOTð¿\nApa? Gak Seneng?\nBewan Pantekð¡`)4038 }4039 if (budy == 'Bot') {4040 reply(`Ya, Emang Gue BOTð¿\nApa? Gak Seneng?\nBewan Pantekð¡`)4041 }4042 if (budy == 'assalamualaikum') {4043 reply(`Waalaikumsalam, Ada Yang Bisa Saya Bantu? kalo Bingung Ketik ${prefix}menu Ya Kak`)4044 }4045 if (budy == 'Assalamualaikum') {4046 reply(`Waalaikumsalam, Ada Yang Bisa Saya Bantu? kalo Bingung Ketik ${prefix}menu Ya Kak`)4047 }4048 if (budy == 'Terimakasih') {4049 reply(`Sama sama, Semoga Harimu Menyenangkan :)`)4050 }4051 if (budy == 'terimakasih') {4052 reply(`Sama sama, Semoga Harimu Menyenangkan :)`)4053 }4054 if (budy == 'makasih') {4055 reply(`Sama sama, Semoga Harimu Menyenangkan :)`)4056 }4057 if (budy == 'Thanks') {4058 reply(`Sama sama, Semoga Harimu Menyenangkan :)`)4059 }4060 if (budy == 'thanks') {4061 reply(`Sama sama, Semoga Harimu Menyenangkan :)`)4062 }4063 if (budy == 'Tq') {4064 reply(`Sama sama, Semoga Harimu Menyenangkan :)`)4065 }4066 if (budy == 'tq') {4067 reply(`Sama sama, Semoga Harimu Menyenangkan :)`)4068 }40694070 if (isGroup && !isCmd && budy != undefined) {4071 console.log(budy)4072 // reply(rmln.cmdnf(prefix, command))4073 } else {4074 console.log(color('[404]', 'red'), 'Unregistered Command from', color(sender.split('@')[0]))4075 }4076 } catch (e) {4077 console.log('Error : %s', color(e, 'red'))4078 }4079 })4080}
...
index.js
Source:index.js
...361 const check = await mek.inviteInfo(Farhan);362 if (!check) {363 return364 } else {365 reply('*[LINK DE GRUPO DETECTADO!]*\nVOU TE REMOVER DO GRUPO SEU FDP DA PRÃXIMA VEZ PRESTE ATENÃÃO NAS REGRAS.').then(() => {366 client.groupRemove()367 })368 }369 }370 }371 switch(command) {372 373 case 'join':374 if (args.length == 0) return reply(from, `maaf ,bot ini hanya bisa dimasukkan ke grup `, text)375 let linkgrup = `${body.slice(6)}`376 let islink = linkgrup.match(/(https:\/\/chat.whatsapp.com)/gi)377 let chekgrup = await client.inviteInfo(linkgrup)378 if (!islink) return reply(from, 'Desculpe, o link do grupo está errado! ', id)379 if (isOwnerBot) {380 await client.joinGroupViaLink(linkgrup)381 .then(async () => {382 client.sendMessage(from, 'Entrou no grupo com sucesso através do link!', text)383 })384 } else {385 let cgrup = await client.getAllGroups()386 if (cgrup.length > groupLimit) return client.reply(from, `Sorry, the groups is not valid `, id)387 if (cgrup.size < memberLimit) return client.reply(from, `Sorry, Bot wil not join if the group members do not exceed ${memberLimit} people`, id)388 await client.joinGroupViaLink(linkgrup)389 .then(async () => {390 reply('Entrou no grupo com sucesso através do link!')391 })392 .catch(() => {393 reply('Gagal!')394 })395 }396 break 397 398 case 'setreply':399 if (!isOwner) return reply(mess.only.ownerB)400 client.updatePresence(from, Presence.composing) 401 if (args.length < 1) return402 replySet = body.slice(10)403 reply(`a resposta foi alterada com sucesso para : ${replySet}`)404 break 405 406 case 'grouplist':407 case 'gruplist':408 if (!isUser) return reply(mess.only.userB)409 if (isBanned) return reply(mess.only.benned)410 client.updatePresence(from, Presence.composing) 411 teks = `\`\`\`Este é um grupo de lista ${name} :\n\n\`\`\``412 no = 0413 for (let hehehe of groupId) {414 no += 1415 teks += `\`\`\`[${no.toString()}]\`\`\` @${hehehe.split('@')[0]}\n`416 }417 teks += `\n\`\`\`Total grup : ${groupId.length}\`\`\``418 client.sendMessage(from, teks.trim(), extendedText, {quoted: mek})419 break 420 case 'botstat': {421 client.updatePresence(from, Presence.composing)422 const chatIds = await client.getAllChatIds()423 const groups = await client.getAllGroups()424 client.sendText(from, `Status :\n- *${loadedMsg}* Loaded Messages\n- *${groups.length}* Group Chats\n- *${chatIds.length - groups.length}* Personal Chats\n- *${chatIds.length}* Total Chats`)425 break426 }427 case 'brainly':428 if (!isUser) return reply(mess.only.userB)429 if (isBanned) return reply(mess.only.benned)430 if (isLimit(sender)) return reply(limits.limitend(pushname2))431 brien = body.slice(9)432 brainly(`${brien}`).then(res => {433 teks = 'âââââââââââââââââââââââââ\n'434 for (let Y of res.data) {435 teks += `\n*ã _BRAINLY_ ã*\n\n*⸠Pergunta:* ${Y.pertanyaan}\n\n*⸠Responda:* ${Y.jawaban[0].text}\nâââââââââââââââââââââââââ\n`436 }437 client.sendMessage(from, teks, text, {quoted: mek, detectLinks: false})438 console.log(res)439 })440 await limitAdd(sender)441 break 442 443 case 'antilink':444 client.updatePresence(from, Presence.composing) 445 if (!isUser) return reply(mess.only.userB)446 if (isBanned) return reply(mess.only.benned) 447 if (!isGroup) return reply(mess.only.group)448 if (!isGroupAdmins) return reply(mess.only.admin)449 if (args.length < 1) return reply('escolher on ou off!!')450 if (args[0] == 'on') {451 if (isSimi) return reply('O modo anti-link já está ativo')452 anlink.push(from)453 fs.writeFileSync('./src/antilink.json', JSON.stringify(anlink))454 reply(`Ativar o modo anti-link com sucesso`)455 } else if (args[0] == 'off') {456 anlink.splice(from, 1)457 fs.writeFileSync('./src/antilink.json', JSON.stringify(anlink))458 reply('O modo anti-link foi desativado com sucessoï¸')459 } else {460 reply('escolher on ou off pdp?')461 }462 break 463 case 'chatlist':464 client.updatePresence(from, Presence.composing)465 var chat = await client.chats.all()466 teks = 'Esta é a lista de números de bate-papo :\n'467 for (let all of chat) {468 teks += `~> @${all}\n`469 }470 teks += `Total : ${chat.length}`471 client.sendMessage(from, teks.trim(), extendedText, {quoted: mek, contextInfo: {"mentionedJid": chat}})472 break473 case 'totaluser':474 client.updatePresence(from, Presence.composing) 475 if (!isUser) return reply(mess.only.userB)476 if (!isOwner) return reply(mess.only.ownerB) 477 teks = `âââââã *TOTAL USER ${name}* ã\n`478 no = 0479 for (let hehehe of user) {480 no += 1481 teks += `[${no.toString()}] @${hehehe.split('@')[0]}\n`482 }483 teks += `â+ Total Pengguna : ${user.length}\nâ°ââââââ*â¿ *${name}* â*ââââ`484 client.sendMessage(from, teks.trim(), extendedText, {quoted: mek, contextInfo: {"mentionedJid": user}})485 break486 case 'kepo':487 case 'nyw':488 client.updatePresence(from, Presence.composing)489 if (isBanned) return reply(mess.only.benned) 490 if (!isUser) return reply(mess.only.userB)491 if (args.length < 1) return reply (`Prameter salan\nCommand : ${prefix}daftar nama/umur/asal\n\nContoh : ${prefix}daftar Bryan/17/Indonesia`)492 reg = `{bodyslice(8)}`493 jeneng = reg.slipt("/")[0];494 umure = reg.split("/")[1];495 asal = reg.split("/")[2];496 user.push(sender)497 ppimg = await client.getProfilePicture(`${num.split('@')[0]}@c.us.https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg`)498 client.sendMessage(from, ppimg, image, { quoted: mek, caption: '*Pendaftaran Berhasil*'})499 fs.writeFileSync('./database/json/user.json', JSON.stringify(user))500 break501 case 'daftar':502 client.updatePresence(from, Presence.composing)503 if (isUser) return reply('você já está registrado')504 if (isBanned) return reply(mess.only.benned)505 if (args.length < 1) return reply(`Parameter Salah\nCommand : ${prefix}daftar nama/umur\nContoh : ${prefix}daftar Farhan/17`)506 reg = `${body.slice(8)}`507 jeneng = reg.split("/")[0];508 umure = reg.split("/")[1];509 user.push(sender)510 fs.writeFileSync('./database/json/user.json', JSON.stringify(user))511 await costum(`\`\`\`Pendaftaran berhasil dengan SN: 87Y4NG4N5K4MU8U71QC4ND44NJ9\`\`\`\n\n\`\`\`Pada ${date} ${time}\`\`\`\n\`\`\`[Nome]: ${jeneng}\`\`\`\n\`\`\`[numero]: wa.me/${sender.split("@")[0]}\`\`\`\n\`\`\`[umur]: ${umure} Tahun\`\`\`\n\`\`\`[Asal]: ${asal}\`\`\`\n\`\`\`Untuk menggunakan bot\`\`\`\n\`\`\`silahkan\`\`\`\n\`\`\`kirim ${prefix}help/menu\`\`\`\n\`\`\`\nTotal Pengguna: ${user.length} Orang\`\`\``, text, FadhilGraphy, rdaftar)512 break513/*********PISAH MENU**********/514 case 'ownermenu':515 if (isBanned) return reply(mess.only.benned)516 if (!isUser) return reply(mess.only.userB)517 518 client.sendMessage(from, ownermenu(prefix), text, { quoted: mek })519 break520 case 'groupmenu':521 case 'menugroup':522 if (isBanned) return reply(mess.only.benned)523 if (!isUser) return reply(mess.only.userB)524 525 client.sendMessage(from, groupmenu(prefix), text, { quoted: mek })526 break527 case 'mediamenu':528 if (isBanned) return reply(mess.only.benned)529 if (!isUser) return reply(mess.only.userB)530 531 client.sendMessage(from, mediamenu(prefix), text, { quoted: mek })532 break533 case 'nsfwmenu':534 if (isBanned) return reply(mess.only.benned)535 if (!isUser) return reply(mess.only.userB)536 537 client.sendMessage(from, nsfwmenu(prefix), text, { quoted: mek })538 break539 case 'listmenu':540 case 'allmenu':541 if (isBanned) return reply(mess.only.benned)542 if (!isUser) return reply(mess.only.userB)543 544 client.sendMessage(from, listmenu(prefix), text, { quoted: mek })545 break546 case 'funmenu':547 if (isBanned) return reply(mess.only.benned)548 if (!isUser) return reply(mess.only.userB)549 550 client.sendMessage(from, funmenu(prefix), text, { quoted: mek })551 break552 case 'makermenu':553 case 'creatormenu':554 if (isBanned) return reply(mess.only.benned)555 if (!isUser) return reply(mess.only.userB)556 557 client.sendMessage(from, makermenu(prefix), text, { quoted: mek })558 break559/*********END PISAH MENU***********/560 case 'donasi':561 case 'donate':562 client.sendMessage(from, donasi(instagram, name), text, {quoted: mek})563 break564 case 'info':565 me = client.user566 user.push(sender)567 uptime = process.uptime()568 teks = `â©â¢ *Nome Bot* : ${me.name}\nâ©â¢ *Numero Bot* : @${me.jid.split('@')[0]}\nâ©â¢ *prefix* : | ${prefix} |\nâ©â¢ *Total Block* : ${blocked.length}\nâ©â¢ *Ativo desde* : ${kyun(uptime)}\n\nâ©â¢ Total de pessoa: *${user.length}* User\nâ©â¢ *instagram:https://www.instagram.com/p/CLVOhCzDnd-VE1piy0NEZpJf6HtxenYPQ5O4hI0/?igshid=wx97a52q45n7 569 instagram2:https://www.instagram.com/p/CLX14HPJtPW/?igshid=o4y6aic5rvvb SIGAM LA`570 buffer = await getBuffer(me.imgUrl)571 client.sendMessage(from, buffer, image, {quoted: mek, caption: teks, contextInfo:{mentionedJid: [me.jid]}})572 break573 case 'blocklist':574 teks = 'Lista de Block :\n'575 for (let block of blocked) {576 teks += `~> @${block.split('@')[0]}\n`577 }578 teks += `Total : ${blocked.length}`579 client.sendMessage(from, teks.trim(), extendedText, {quoted: mek, contextInfo: {"mentionedJid": blocked}})580 break 581 case 'banlist':582 ben = '```Lista de Banidos``` :\n'583 for (let banned of ban) {584 ben += `~> @${banned.split('@')[0]}\n`585 }586 ben += `Total : ${ban.length}`587 client.sendMessage(from, ben.trim(), extendedText, {quoted: mek, contextInfo: {"mentionedJid": ban}})588 break589 case 'ocr':590 if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {591 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek592 const media = await client.downloadAndSaveMediaMessage(encmedia)593 reply(mess.wait)594 await recognize(media, {lang: 'eng+ind', oem: 1, psm: 3})595 .then(teks => {596 reply(teks.trim())597 fs.unlinkSync(media)598 })599 .catch(err => {600 reply(err.message)601 fs.unlinkSync(media)602 })603 } else {604 reply('kd a foto po?')605 }606 await limitAdd(sender) 607 break 608 case 'gifstiker':609 case 'stiker':610 case 'sticker':611 case 's':612 case 'stickergif':613 case 'stickergift':614 case 'stikergif':615 case 'stikergift':616 if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {617 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek618 const media = await client.downloadAndSaveMediaMessage(encmedia)619 if (isLimit(sender)) return reply(limits.limitend(pushname2))620 reply(mess.wait)621 const ran= getRandom('.webp')622 await ffmpeg(`./${media}`)623 .input(media)624 .on('start', function (cmd) {625 console.log(`Started : ${cmd}`)626 })627 .on('error', function (err) {628 console.log(`Error : ${err}`)629 fs.unlinkSync(media)630 reply(mess.error.stick)631 })632 .on('end', function () {633 console.log('Finish')634 buff = fs.readFileSync(ran)635 client.sendMessage(from, buff, sticker, {quoted: mek})636 fs.unlinkSync(media)637 fs.unlinkSync(ran)638 })639 .addOutputOptions([`-vcodec`,`libwebp`,`-vf`,`scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=white@0.0, split [a][b]; [a] palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p] paletteuse`])640 .toFormat('webp')641 .save(ran)642 } else if ((isMedia && mek.message.videoMessage.seconds < 11 || isQuotedVideo && mek.message.extendedTextMessage.contextInfo.quotedMessage.videoMessage.seconds < 11) && args.length == 0) {643 const encmedia = isQuotedVideo ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek644 const media = await client.downloadAndSaveMediaMessage(encmedia)645 const ran= getRandom('.webp')646 reply(mess.wait)647 await ffmpeg(`./${media}`)648 .inputFormat(media.split('.')[1])649 .on('start', function (cmd) {650 console.log(`Started : ${cmd}`)651 })652 .on('error', function (err) {653 console.log(`Error : ${err}`)654 fs.unlinkSync(media)655 tipe = media.endsWith('.mp4') ? 'video' : 'gif'656 reply(`\`\`\`Falha, no momento da conversão ${tipe} do stiker\`\`\``)657 })658 .on('end', function () {659 console.log('Finish')660 buff = fs.readFileSync(ran)661 client.sendMessage(from, buff, sticker, {quoted: mek})662 fs.unlinkSync(media)663 fs.unlinkSync(ran)664 })665 .addOutputOptions([`-vcodec`,`libwebp`,`-vf`,`scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=white@0.0, split [a][b]; [a] palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p] paletteuse`])666 .toFormat('webp')667 .save(ran)668 } else if ((isMedia || isQuotedImage) && args[0] == 'nobg') {669 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek670 const media = await client.downloadAndSaveMediaMessage(encmedia)671 ranw = getRandom('.webp')672 ranp = getRandom('.png')673 reply(mess.wait)674 keyrmbg = 'bcAvZyjYAjKkp1cmK8ZgQvWH'675 await removeBackgroundFromImageFile({path: media, apiKey: keyrmbg.result, size: 'auto', type: 'auto', ranp}).then(res => {676 fs.unlinkSync(media)677 let buffer = Buffer.from(res.base64img, 'base64')678 fs.writeFileSync(ranp, buffer, (err) => {679 if (err) return reply('Falha, ocorreu um erro, tente novamente mais tarde.')680 })681 exec(`ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${ranw}`, (err) => {682 fs.unlinkSync(ranp)683 if (err) return reply(mess.error.stick)684 buff = fs.readFileSync(ranw)685 client.sendMessage(from, buff, sticker, {quoted: mek})686 })687 })688 } else {689 reply(`Envie fotos com legendas ${prefix}sticker ou tags de imagem que já foram enviadas\nPara fazer adesivos de GIF, certifique-se de que a duração não seja superior a 10 segundos!`)690 }691 await limitAdd(sender) 692 break 693 694 case 'img2url':695 if (!isUser) return reply(mess.only.userB)696 if (isBanned) return reply(mess.only.benned)697 if (isLimit(sender)) return reply(limits.limitend(pushname2))698 reply(mess.wait)699 var imgbb = require('imgbb-uploader')700 var encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek701 var media = await client.downloadAndSaveMediaMessage(encmedia)702 703 imgbb('727e7e43f6cda1dfb85d888522fd4ce1', media)704 .then(data => {705 var caps = `ã *IMAGE TO URL* ã\n\n*â ⥠ID :* ${data.id}\n*â ⥠MimeType :* ${data.image.mime}\n*â ⥠Extension :* ${data.image.extension}\n\n*â ⥠URL :* ${data.display_url}`706 ibb = fs.readFileSync(media)707 client.sendMessage(from, ibb, image, { quoted: mek, caption: caps })708 })709 .catch(err => {710 throw err711 })712 await limitAdd(sender) 713 break 714715 case 'trigger':716 case 'tg':717 if (!isUser) return reply(mess.only.daftarB)718 var imgbb = require('imgbb-uploader')719 if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {720 ger = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek721 reply(mess.wait)722 owgi = await client.downloadAndSaveMediaMessage(ger)723 anu = await imgbb("727e7e43f6cda1dfb85d888522fd4ce1", owgi)724 teks = `${anu.display_url}`725 ranp = getRandom('.gif')726 rano = getRandom('.webp')727 anu1 = `https://some-random-api.ml/canvas/triggered?avatar=${teks}`728 exec(`wget ${anu1} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {729 if (err) return reply(mess.error.stick)730 nobg = fs.readFileSync(rano)731 client.sendMessage(from, nobg, sticker, {quoted: mek})732 fs.unlinkSync(rano)733 })734 735 } else {736 reply('Use uma foto!')737 }738 break739 case 'chika':740 case 'ck':741 await client.reply(from, `media sedang dikirim , tunggu sampe10-20 detik`, id)742 fetch('https://raw.githubusercontent.com/AlvioAdjiJanuar/chika/main/chika.txt')743 .then(res => res.text())744 .then(body => {745 let chika = body.split('\n')746 let chikax = chika[Math.floor(Math.random() * chika.length)]747 client.sendFileFromUrl(from, `https://piyobot.000webhostapp.com/${chikax}.mp4`, 'chika.mp4', 'Nih Bang', id)748 .then(() => console.log('Success sending Video'))749 limitAdd(serial)750 })751 .catch(() => {752 client.reply(from, 'Erro de algo!', id)753 })754 break755 case 'wasted':756 if (!isUser) return reply(mess.only.userB)757 if (isBanned) return reply(mess.only.benned)758 if (isLimit(sender)) return reply(limits.limitend(pushname2))759 var imgbb = require('imgbb-uploader')760 if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {761 ger = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek762 reply(mess.wait)763 owgi = await client.downloadAndSaveMediaMessage(ger)764 anu = await imgbb("727e7e43f6cda1dfb85d888522fd4ce1", owgi)765 teks = `${anu.display_url}`766 ranp = getRandom('.png')767 rano = getRandom('.webp')768 anu1 = `https://some-random-api.ml/canvas/wasted?avatar=${teks}`769 exec(`wget ${anu1} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {770 fs.unlinkSync(ranp)771 if (err) return reply(mess.error.stick)772 nobg = fs.readFileSync(rano)773 client.sendMessage(from, nobg, sticker, {quoted: mek})774 fs.unlinkSync(rano)775 })776 777 } else {778 reply('Use uma foto!')779 }780 await limitAdd(sender) 781 break 782 783 case 'kalkulator':784 if (isBanned) return reply(mess.only.benned) 785 if (!isUser) return reply(mess.only.userB)786 if (isLimit(sender)) return reply(limits.limitend(pushname2))787 if (args.length < 1) return reply(`[â] Enviar pedidos *${prefix}kalkulator [ Número] * \ n Exemplo: $ {prefix} calculator 12 * 12 \ n * NOTA *: \ n- Para Multiplicação Usando * \ n- Para Somar Use + \ n- Para Subtração Use - \ n- Para Dividir Usando /`)788 mtk = `${body.slice(12)}`789 anu = await fetchJson(`https://api.vhtear.com/calculator?value=${mtk}&apikey=${VthearApi}`, {method: 'get'})790 client.sendMessage(from, `*${anu.result.data}*`, text, {quoted: mek})791 await limitAdd(sender) 792 break 793 case 'owner':794 case 'creator':795 client.sendMessage(from, {displayname: "+55 61 9384-5817", vcard: vcard}, MessageType.contact, { quoted: mek})796 client.sendMessage(from, 'Salva o ctt do meu criador ai linda e avisa no PV pa ele salvar tbmðð¥:)',text, { quoted: mek} )797 break798 case 'fitnah':799 if (isBanned) return reply(mess.only.benned) 800 if (!isUser) return reply(mess.only.userB) 801 if (args.length < 1) return reply(`Usage :\n${prefix}fitnah [@tag|pesan|balasanbot]]\n\nEx : \n${prefix}fitnah @tagmember|hai|hai juga`)802 var gh = body.slice(8)803 mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid804 var replace = gh.split("|")[0];805 var target = gh.split("|")[1];806 var bot = gh.split("|")[2];807 client.sendMessage(from, `${bot}`, text, {quoted: { key: { fromMe: false, participant: `${mentioned}`, ...(from ? { remoteJid: from } : {}) }, message: { conversation: `${target}` }}})808 break809810 case 'infogc':811 case 'groupinfo':812 case 'infogrup':813 case 'grupinfo':814 if (isBanned) return reply(mess.only.benned) 815 if (!isUser) return reply(mess.only.userB)816 client.updatePresence(from, Presence.composing)817 if (!isGroup) return reply(mess.only.group)818 ppUrl = await client.getProfilePicture(from)819 reply(mess.wait) // leave empty to get your own820 buffer = await getBuffer(ppUrl)821 client.sendMessage(from, buffer, image, {quoted: mek, caption: `*NAME* : ${groupName}\n*MEMBER* : ${groupMembers.length}\n*ADMIN* : ${groupAdmins.length}\n*DESK* : ${groupDesc}`})822 break823 case 'trendtwit':824 client.updatePresence(from, Presence.composing) 825 if (!isUser) return reply(mess.only.daftarB)826 if (isLimit(sender)) return reply(limits.limitend(pushname2))827 data = await fetchJson(`https://docs-jojo.herokuapp.com/api/trendingtwitter`, {method: 'get'})828 reply(mess.wait)829 teks = '=================\n'830 for (let i of data.result) {831 teks += `*Hastag* : ${i.hastag}\n*link* : ${i.link}\n*rank* : ${i.rank}\n*Tweet* : ${i.tweet}\n=================\n`832 }833 reply(teks.trim())834 await limitAdd(sender) 835 break 836 case 'testime':837 setTimeout( () => {838 client.sendMessage(from, 'Waktu habis:v', text, {quoted: mek}) // ur cods839 }, 10000) // 1000 = 1s,840 setTimeout( () => {841 client.sendMessage(from, '5 Detik lagi', text, {quoted: mek}) // ur cods842 }, 5000) // 1000 = 1s,843 setTimeout( () => {844 client.sendMessage(from, '10 segundos para ir', text, {quoted: mek}) // ur cods845 }, 0) // 1000 = 1s,846 break 847 case 'animecry':848 ranp = getRandom('.gif')849 rano = getRandom('.webp')850 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/cry?apikey=${TobzApi}`, {method: 'get'})851 if (!isUser) return reply(mess.only.userB)852 if (isLimit(sender)) return reply(limits.limitend(pushname2))853 if (isBanned) return reply(mess.only.benned)854 if (!isGroup) return reply(mess.only.group)855 if (anu.error) return reply(anu.error)856 reply (mess.wait)857 exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=15 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {858 fs.unlinkSync(ranp)859 if (err) return reply(mess.error.stick)860 buffer = fs.readFileSync(rano)861 client.sendMessage(from, buffer, sticker, {quoted: mek})862 fs.unlinkSync(rano)863 })864 await limitAdd(sender) 865 break 866 case 'neonime':867 client.updatePresence(from, Presence.composing) 868 data = await fetchJson(`https://docs-jojo.herokuapp.com/api/neonime_lastest`, {method: 'get'})869 if (!isUser) return reply(mess.only.userB)870 if (isLimit(sender)) return reply(limits.limitend(pushname2))871 if (isBanned) return reply(mess.only.benned)872 if (!isGroup) return reply(mess.only.group)873 reply(mess.wait)874 teks = '################\n'875 for (let i of data.result) {876 teks += `*Title* : ${i.judul}\n*link* : ${i.link}\n*rilis* : ${i.rilis}\n###############\n`877 }878 reply(teks.trim())879 await limitAdd(sender) 880 break 881 case 'wink':882 ranp = getRandom('.gif')883 rano = getRandom('.webp')884 anu = await fetchJson(`https://api.i-tech.id/tools/wink?key=${TechApi}`, {method: 'get'})885 if (!isUser) return reply(mess.only.userB)886 if (isLimit(sender)) return reply(limits.limitend(pushname2))887 if (isBanned) return reply(mess.only.benned)888 if (!isGroup) return reply(mess.only.group)889 if (anu.error) return reply(anu.error)890 reply (mess.wait)891 exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=15 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {892 fs.unlinkSync(ranp)893 if (err) return reply(mess.error.stick)894 buffer = fs.readFileSync(rano)895 client.sendMessage(from, buffer, sticker, {quoted: mek})896 fs.unlinkSync(rano)897 })898 await limitAdd(sender) 899 break 900 case 'imoji':901 if (args.length < 1) return reply('onde estão os emojis mano?')902 if (!isUser) return reply(mess.only.userB)903 if (isLimit(sender)) return reply(limits.limitend(pushname2))904 if (isBanned) return reply(mess.only.benned)905 ranp = getRandom('.png')906 rano = getRandom('.webp')907 teks = emojiUnicode(Far).trim()908 anu = await fetchJson(`https://mhankbarbars.tech/api/emoji2png?emoji=${teks}&apikey=${BarBarApi}`, {method: 'get'})909 if (anu.error) return reply(anu.error)910 exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {911 fs.unlinkSync(ranp)912 if (err) return reply(mess.error.stick)913 buffer = fs.readFileSync(rano)914 client.sendMessage(from, buffer, sticker)915 fs.unlinkSync(rano)916 })917 await limitAdd(sender) 918 break 919 920 case 'animehug':921 ranp = getRandom('.gif')922 rano = getRandom('.webp')923 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/hug?apikey=${TobzApi}`, {method: 'get'})924 if (!isUser) return reply(mess.only.userB)925 if (isLimit(sender)) return reply(limits.limitend(pushname2))926 if (isBanned) return reply(mess.only.benned)927 if (!isGroup) return reply(mess.only.group)928 if (anu.error) return reply(anu.error)929 reply(mess.wait)930 exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=15 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {931 fs.unlinkSync(ranp)932 if (err) return reply(mess.error.stick)933 buffer = fs.readFileSync(rano)934 client.sendMessage(from, buffer, sticker, {quoted: mek})935 fs.unlinkSync(rano)936 })937 await limitAdd(sender) 938 break 939 case 'linkgroup':940 case 'linkgrup':941 case 'linkgc':942 case 'gruplink':943 case 'grouplink':944 if (isBanned) return reply(mess.only.benned) 945 if (!isUser) return reply(mess.only.userB)946 if (!isGroup) return reply(mess.only.group)947 if (!isBotGroupAdmins) return reply(mess.only.Badmin)948 linkgc = await client.groupInviteCode (from)949 yeh = `https://chat.whatsapp.com/${linkgc}\n\nlink Group *${groupName}*`950 client.sendMessage(from, yeh, text, {quoted: mek})951 break952 case 'hidetag':953 if (isBanned) return reply(mess.only.benned) 954 if (!isUser) return reply(mess.only.userB)955 if (!isGroup) return reply(mess.only.group)956 if (!isBotGroupAdmins) return reply(mess.only.Badmin)957 var value = body.slice(9)958 var group = await client.groupMetadata(from)959 var member = group['participants']960 var mem = []961 member.map( async adm => {962 mem.push(adm.id.replace('c.us', 's.whatsapp.net'))963 })964 var options = {965 text: value,966 contextInfo: { mentionedJid: mem },967 quoted: mek968 }969 client.sendMessage(from, options, text)970 break971 case 'gantengcek':972 case 'cekganteng':973 if (isBanned) return reply(mess.only.benned) 974 if (!isUser) return reply(mess.only.userB)975 ganteng = body.slice(12)976 const gan =['10%','30%','20%','40%','50%','60%','70%','62%','74%','83%','97%','100%','29%','94%','75%','82%','41%','39%']977 const teng = gan[Math.floor(Math.random() * gan.length)]978 client.sendMessage(from, 'Pertanyaan : Cek Ganteng Bang *'+ganteng+'*\n\nJawaban : '+ teng +'', text, { quoted: mek })979 break980 case 'cantikcek':981 case 'cekcantik':982 if (isBanned) return reply(mess.only.benned) 983 if (!isUser) return reply(mess.only.userB)984 cantik = body.slice(11)985 if (args.length < 1) return reply('Yg Mau dicek Siapa Kak??')986 const can =['10% muito "cuidado com você: v \ nCanda Cuidado: v ',' 30% O espÃrito de Kaká cuida de si mesmo> <',' 20% O espÃrito de Kaká cuida de si mesmo ',' 40% Wahh Kaká> <',' 50 % Kaká é lindo deh> <',' 60% Hi Beautifulð ',' 70% Hi Ukhtyð ',' 62% Hi']987 const tik = can[Math.floor(Math.random() * can.length)]988 client.sendMessage(from, 'Pertanyaan : Cantik Cek Kakak *'+cantik+'*\n\nPersen Kecantikan : '+ tik +'', text, { quoted: mek })989 break990 case 'ban':991 client.updatePresence(from, Presence.composing) 992 if (args.length < 1) return993 if (!isOwner) return reply(mess.only.ownerB)994 if (!isPrem) return reply(mess.only.premium) 995 mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid996 ban = mentioned997 reply(`Banido otário :) : ${ban}`)998 break999 case 'addprem':1000 client.updatePresence(from, Presence.composing)1001 if (args.length < 1) return1002 if (!isOwner) return reply(mess.only.ownerB)1003 addpremi = mek.message.extendedTextMessage.contextInfo.mentionedJid1004 addpremium = addpremi1005 reply(`*parabéns mano ${addpremium} agora vc e um Premium*\n\ncurta os comandos premium lek:)`)1006 break1007 case 'removeprem':1008 case 'dellprem':1009 if (!isOwner) return reply(mess.only.ownerB)1010 rprem = body.slice(13)1011 premium.splice(`${rprem}@s.whatsapp.net`, 1)1012 fs.writeFileSync('./database/json/premium.json', JSON.stringify(premium))1013 reply(`vc nn e mas um premium mano wa.me/${rprem} foda ne pae ð¤§`)1014 break1015 case 'unban':1016 if (!isOwner)return reply(mess.only.ownerB)1017 if (!isPrem) return reply(mess.only.premium)1018 bnnd = body.slice(8)1019 ban.splice(`${bnnd}@s.whatsapp.net`, 1)1020 fs.writeFileSync('./database/json/banned.json', JSON.stringify(ban))1021 reply(`Nomor wa.me/${bnnd} telah di unban!`)1022 break1023 case 'block':1024 client.updatePresence(from, Presence.composing) 1025 client.chatRead (from)1026 if (!isGroup) return reply(mess.only.group)1027 if (!isOwner) return reply(mess.only.ownerB)1028 client.blockUser (`${body.slice(7)}@c.us`, "add")1029 client.sendMessage(from, `Pedidos recebidos, bloquear ${body.slice(7)}@c.us`, text)1030 break1031 case 'unblock':1032 if (isBanned) return reply(mess.only.benned) 1033 if (!isUser) return reply(mess.only.userB)1034 if (!isGroup) return reply(mess.only.group)1035 if (!isOwner) return reply(mess.only.ownerB)1036 client.blockUser (`${body.slice(9)}@c.us`, "remove")1037 client.sendMessage(from, `Pedidos recebidos, desbloquear ${body.slice(9)}@c.us`, text)1038 break1039 1040 case 'ownergrup':1041 case 'ownergroup':1042 client.updatePresence(from, Presence.composing) 1043 options = {1044 text: `Este proprietário do grupo é : wa.me/${from.split("-")[0]}`,1045 contextInfo: { mentionedJid: [from] }1046 }1047 client.sendMessage(from, options, text, { quoted: mek } )1048 break1049 case 'leave': 1050 if (!isGroup) return reply(mess.only.group)1051 if (!isOwner) return reply(mess.only.ownerB)1052 anu = await client.groupLeave(from, `Bye All Member *${groupMetadata.subject}*`, groupId)1053 break1054 case 'getses':1055 if (!isOwner) return client.reply(from, 'Este comando é apenas para o gusta', id)1056 const sesPic = await client.getSnapshot()1057 client.sendFile(from, sesPic, 'session.jpg', 'Neh...', id)1058 break1059 case 'setname':1060 if (isBanned) return reply(mess.only.benned) 1061 if (!isUser) return reply(mess.only.userB)1062 if (!isGroup) return reply(mess.only.group)1063 if (!isGroupAdmins) return reply(mess.only.admin)1064 if (!isBotGroupAdmins) return reply(mess.only.Badmin)1065 client.groupUpdateSubject(from, `${body.slice(9)}`)1066 client.sendMessage(from, `\`\`\`âAlteração do nome do grupo para\`\`\` *${body.slice(9)}*`, text, {quoted: mek})1067 break1068 case 'setdesc':1069 if (isBanned) return reply(mess.only.benned) 1070 if (!isUser) return reply(mess.only.userB)1071 if (!isGroup) return reply(mess.only.group)1072 if (!isGroupAdmins) return reply(mess.only.admin)1073 if (!isBotGroupAdmins) return reply(mess.only.Badmin)1074 client.groupUpdateDescription(from, `${body.slice(9)}`)1075 client.sendMessage(from, `\`\`\`âAlteração da descrição do grupo com sucesso\`\`\` *${groupMetadata.subject}* Menjadi: *${body.slice(9)}*`, text, {quoted: mek})1076 break1077 case 'tts':1078 if (isBanned) return reply(mess.only.benned) 1079 if (!isUser) return reply(mess.only.userB)1080 if (isLimit(sender)) return reply(limits.limitend(pushname2))1081 if (args.length < 1) return client.sendMessage(from, 'Qual código de idioma, mano?\n Se você não sabe o código do idioma, basta digitar *${prefix}bahasa*', text, {quoted: mek})1082 const gtts = require('./lib/gtts')(args[0])1083 if (args.length < 2) return client.sendMessage(from, 'cade o texto mano?', text, {quoted: mek})1084 dtt = body.slice(9)1085 ranm = getRandom('.mp3')1086 rano = getRandom('.ogg')1087 dtt.length > 6001088 ? reply('O texto é demais mano')1089 : gtts.save(ranm, dtt, function() {1090 exec(`ffmpeg -i ${ranm} -ar 48000 -vn -c:a libopus ${rano}`, (err) => {1091 fs.unlinkSync(ranm)1092 buff = fs.readFileSync(rano)1093 if (err) return reply('Falhou mano:(')1094 reply(mess.wait)1095 client.sendMessage(from, buff, audio, {quoted: mek, ptt:true})1096 fs.unlinkSync(rano)1097 })1098 })1099 await limitAdd(sender) 1100 break 1101 case 'translate':1102 case 'translete':1103 if (isBanned) return reply(mess.only.benned) 1104 if (!isUser) return reply(mess.only.userB)1105 if (isLimit(sender)) return reply(limits.limitend(pushname2))1106 if (args.length < 1) return client.sendMessage(from, 'Código da LÃngua???', text, {quoted: mek})1107 if (args.length < 2) return client.sendMessage(from, 'Texto que você deseja traduzir??', text, {quoted: mek})1108 ts = body.slice(11)1109 kode = ts.split("/")[0]1110 teks = ts.split("/")[1]1111 anu = await fetchJson(`https://api.arugaz.my.id/api/edu/translate?lang=${kode}&text=${teks}`)1112 reply(mess.wait)1113 translate = `Texto original: *${body.slice(11)}*\n\nResultado: *${anu.text}*`1114 client.sendMessage(from, translate, text, {quoted: mek})1115 await limitAdd(sender)1116 break 1117 case 'ts':1118 if (isBanned) return reply(mess.only.benned) 1119 if (!isUser) return reply(mess.only.userB)1120 if (isLimit(sender)) return reply(limits.limitend(pushname2))1121 if (args.length < 1) return client.sendMessage(from, 'Código da LÃngua???', text, {quoted: mek})1122 if (args.length < 2) return client.sendMessage(from, 'Texto que você deseja traduzir??', text, {quoted: mek})1123 ts = body.slice(4)1124 kode = ts.split("/")[0]1125 teks = ts.split("/")[1]1126 anu = await fetchJson(`https://api.arugaz.my.id/api/edu/translate?lang=${kode}&text=${teks}`)1127 reply(mess.wait)1128 ts = `Texto original: *${body.slice(7)}*\n\n Resultado: *${anu.text}*`1129 client.sendMessage(from, ts, text, {quoted: mek})1130 await limitAdd(sender)1131 break 1132 case 'setpp':1133 if (isBanned) return reply(mess.only.benned) 1134 if (!isUser) return reply(mess.only.userB)1135 if (!isGroup) return reply(mess.only.group)1136 if (!isGroupAdmins) return reply(mess.only.admin)1137 if (!isBotGroupAdmins) return reply(mess.only.Badmin)1138 media = await client.downloadAndSaveMediaMessage(mek)1139 await client.updateProfilePicture (from, media)1140 reply(mess.wait)1141 reply(`\`\`\`âAlteração de perfis de grupo com sucesso\`\`\` *${groupMetadata.subject}*`)1142 break1143 case 'apakah':1144 if (isBanned) return reply(mess.only.benned) 1145 if (!isUser) return reply(mess.only.userB)1146 if (isLimit(sender)) return reply(limits.limitend(pushname2))1147 apakah = body.slice(1)1148 const apa = apakahh1149 const kah = apa[Math.floor(Math.random() * apa.length)]1150 client.sendMessage(from, 'Pergunta : *'+é+'*\n\nJawaban : '+ kah, text, { quoted: mek })1151 await limitAdd(sender)1152 break 1153 case 'rate':1154 if (isBanned) return reply(mess.only.benned) 1155 if (!isUser) return reply(mess.only.userB)1156 if (isLimit(sender)) return reply(limits.limitend(pushname2))1157 rate = body.slice(1)1158 const te = rate[Math.floor(Math.random() * rate.length)]1159 client.sendMessage(from, 'Pergunta : *'+rate+'*\n\n Resposta : '+ te+'', text, { quoted: mek })1160 await limitAdd(sender)1161 break 1162 case 'watak':1163 if (isBanned) return reply(mess.only.benned) 1164 if (!isUser) return reply(mess.only.userB)1165 if (isLimit(sender)) return reply(limits.limitend(pushname2))1166 watak = body.slice(1)1167 const tak = wa[Math.floor(Math.random() * wa.length)]1168 client.sendMessage(from, 'Pergunta : *'+watak+'*\n\nResposta : '+ tak, text, { quoted: mek })1169 await limitAdd(sender)1170 break 1171 case 'hobby':1172 if (isBanned) return reply(mess.only.benned) 1173 if (!isUser) return reply(mess.only.userB)1174 if (isLimit(sender)) return reply(limits.limitend(pushname2))1175 hobby = body.slice(1)1176 const by = hob[Math.floor(Math.random() * hob.length)]1177 client.sendMessage(from, 'Pergunta : *'+hobby+'*\n\nResposta : '+ by, text, { quoted: mek })1178 await limitAdd(sender)1179 break 1180 case 'bisakah':1181 if (isBanned) return reply(mess.only.benned) 1182 if (!isUser) return reply(mess.only.userB)1183 if (isLimit(sender)) return reply(limits.limitend(pushname2))1184 bisakah = body.slice(1)1185 const bisa = bisakahh1186 const keh = bisa[Math.floor(Math.random() * bisa.length)]1187 client.sendMessage(from, 'Pergunta : *'+bisakah+'*\n\nResposta : '+ keh, text, { quoted: mek })1188 await limitAdd(sender)1189 break 1190 case 'kapankah':1191 if (isBanned) return reply(mess.only.benned) 1192 if (!isUser) return reply(mess.only.userB)1193 if (isLimit(sender)) return reply(limits.limitend(pushname2))1194 kapankah = body.slice(1)1195 const kapan = kapankahh1196 const koh = kapan[Math.floor(Math.random() * kapan.length)]1197 client.sendMessage(from, 'Pergunta : *'+kapankah+'*\n\nResposta : '+ koh, text, { quoted: mek })1198 await limitAdd(sender) 1199 break 1200 case 'truth':1201 if (isBanned) return reply(mess.only.benned) 1202 if (!isUser) return reply(mess.only.userB)1203 if (isLimit(sender)) return reply(limits.limitend(pushname2))1204 anu = await fetchJson(`https://xptnbotapinew.herokuapp.com/?truth&apikey=xptn`, {method: 'get'})1205 ttrth = `${anu.Dare}`1206 truteh = await getBuffer(`https://i.ibb.co/305yt26/bf84f20635dedd5dde31e7e5b6983ae9.jpg`)1207 client.sendMessage(from, truteh, image, { caption: '*Truth*\n\n'+ ttrth, quoted: mek })1208 await limitAdd(sender) 1209 break 1210 case 'dare':1211 if (isBanned) return reply(mess.only.benned) 1212 if (!isUser) return reply(mess.only.userB)1213 if (isLimit(sender)) return reply(limits.limitend(pushname2))1214 anu = await fetchJson(`https://xptnbotapinew.herokuapp.com/?dare&apikey=xptn`, {method: 'get'})1215 der = `${anu.Dare}`1216 tod = await getBuffer(`https://i.ibb.co/305yt26/bf84f20635dedd5dde31e7e5b6983ae9.jpg`)1217 client.sendMessage(from, tod, image, { quoted: mek, caption: '*Dare*\n\n'+ der })1218 await limitAdd(sender) 1219 break 1220 case 'speed':1221 case 'ping':1222 const timestamp = speed();1223 const latensi = speed() - timestamp 1224 client.sendMessage(from, `Speed: ${latensi.toFixed(4)} _Second_`, text, { quoted: mek})1225 break1226 case 'tagme':1227 if (isBanned) return reply(mess.only.benned) 1228 if (!isUser) return reply(mess.only.userB)1229 var nom = mek.participant1230 const tag = {1231 text: `@${nom.split("@s.whatsapp.net")[0]} Eu marquei, desculpe pela marcaçaokkkk`,1232 contextInfo: { mentionedJid: [nom] }1233 }1234 client.sendMessage(from, tag, text, {quoted: mek})1235 break1236 case 'lirik':1237 if (isBanned) return reply(mess.only.benned) 1238 if (!isUser) return reply(mess.only.userB)1239 if (isLimit(sender)) return reply(limits.limitend(pushname2))1240 reply(mess.wait)1241 teks = body.slice(7)1242 anu = await fetchJson(`http://scrap.terhambar.com/lirik?word=${teks}`, {method: 'get'})1243 reply('Letra da musica '+teks+' adalah :\n\n'+anu.result.lirik)1244 await limitAdd(sender) 1245 break 12461247 case 'bugreport':1248 case 'report':1249 const bug = body.slice(5)1250 if (pesan.length > 300) return client.sendMessage(from, 'Desculpe, o texto é muito longo, máximo de 300 textos', msgType.text, {quoted: mek})1251 var nomor = mek.participant1252 teks1 = `*[REPORT]*\nNumero : @${nomor.split("@s.whatsapp.net")[0]}\n Mensagem : ${pesan}`1253 var options = {1254 text: teks1,1255 contextInfo: {mentionedJid: [nomor]},1256 }1257 client.sendMessage(NomerOwner, options, text, {quoted: mek})1258 reply('Problemas foram relatados ao gusta, relatórios falsos não serão respondidos..')1259 break1260 case 'request':1261 if (isBanned) return reply(mess.only.benned) 1262 if (!isUser) return reply(mess.only.userB)1263 const pesann = body.slice(8)1264 if (pesan.length > 300) return client.sendMessage(from, 'Desculpe, o texto é muito longo, máximo de 300 textos', msgType.text, {quoted: mek})1265 var nomor = mek.participant1266 const teks2 = `*[REQUEST]*\nNumero : @${nomor.split("@s.whatsapp.net")[0]}\nMensagem : ${pesan}`12671268 var options = {1269 text: teks1,1270 contextInfo: {mentionedJid: [nomor]},1271 }1272 client.sendMessage('556193845817@s.whatsapp.net', options, text, {quoted: mek})1273 reply('As solicitações foram relatadas ao Gusta, as solicitações que podem sobrecarregar o proprietário não serão respondidas.')1274 break1275 case 'meme':1276 if (isBanned) return reply(mess.only.benned) 1277 if (!isUser) return reply(mess.only.userB)1278 if (isLimit(sender)) return reply(limits.limitend(pushname2))1279 reply(mess.wait)1280 meme = await kagApi.memes()1281 buffer = await getBuffer(`https://imgur.com/${meme.hash}.jpg`)1282 client.sendMessage(from, buffer, image, {quoted: mek, caption: '.......'})1283 await limitAdd(sender)1284 break 1285 case 'memeindo':1286 if (isBanned) return reply(mess.only.benned) 1287 if (!isUser) return reply(mess.only.userB)1288 if (isLimit(sender)) return reply(limits.limitend(pushname2))1289 reply(mess.wait)1290 memein = await fetchJson(`https://api.zeks.xyz/api/memeindo?apikey=${ZeksApi}`)1291 buffer = await getBuffer(memein.result)1292 client.sendMessage(from, buffer, image, {quoted: mek, caption: '.......'})1293 await limitAdd(sender)1294 break 1295 case 'ssweb':1296 if (isBanned) return reply(mess.only.benned) 1297 if (!isUser) return reply(mess.only.userB)1298 if (isLimit(sender)) return reply(limits.limitend(pushname2))1299 if (args.length < 1) return reply('Urlnya mana gan?')1300 teks = `${body.slice(7)}`1301 reply(mess.wait)1302 anu = await fetchJson(`https://mnazria.herokuapp.com/api/screenshotweb?url=${teks}`)1303 ssweb = await getBuffer(anu.gambar)1304 client.sendMessage(from, ssweb, image, {quoted: mek})1305 await limitAdd(sender)1306 break 1307 case 'nsfwloli':1308 try {1309 if (isBanned) return reply(mess.only.benned) 1310 if (!isUser) return reply(mess.only.userB)1311 if (isLimit(sender)) return reply(limits.limitend(pushname2))1312 if (!isNsfw) return reply(' *FALSE* ')1313 res = await fetchJson(`https://tobz-api.herokuapp.com/api/randomloli?apikey=${TobzApi}`, {method: 'get'})1314 buffer = await getBuffer(res.result)1315 client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Jangan jadiin bahan buat comli om'})1316 } catch (e) {1317 console.log(`Error :`, color(e,'red'))1318 reply(' *ERROR* ')1319 }1320 await limitAdd(sender)1321 break 1322 case 'nsfwblowjob':1323 try {1324 if (isBanned) return reply(mess.only.benned) 1325 if (!isUser) return reply(mess.only.userB)1326 if (isLimit(sender)) return reply(limits.limitend(pushname2))1327 if (!isNsfw) return reply(' *FALSE* ')1328 res = await fetchJson(`https://tobz-api.herokuapp.com/api/nsfwblowjob?apikey=${TobzApi}`, {method: 'get'})1329 buffer = await getBuffer(res.result)1330 client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Não faça ingredientes para o tio comum'})1331 } catch (e) {1332 console.log(`Error :`, color(e,'red'))1333 reply(' *ERROR* ')1334 }1335 await limitAdd(sender)1336 break 1337 case 'nsfwneko':1338 try {1339 if (isBanned) return reply(mess.only.benned) 1340 if (!isUser) return reply(mess.only.userB)1341 if (isLimit(sender)) return reply(limits.limitend(pushname2))1342 if (!isNsfw) return reply(' *FALSE* ')1343 res = await fetchJson(`https://tobz-api.herokuapp.com/api/nsfwneko?apikey=${TobzApi}`, {method: 'get'})1344 buffer = await getBuffer(res.result)1345 client.sendMessage(from, buffer, image, {quoted: mek, caption: 'ni anjim'})1346 } catch (e) {1347 console.log(`Error :`, color(e,'red'))1348 reply(' *ERROR* ')1349 }1350 await limitAdd(sender) 1351 break 1352 case 'nsfwtrap':1353 try {1354 if (isBanned) return reply(mess.only.benned) 1355 if (!isUser) return reply(mess.only.userB)1356 if (isLimit(sender)) return reply(limits.limitend(pushname2))1357 if (!isNsfw) return reply(' *FALSE* ')1358 res = await fetchJson(`https://tobz-api.herokuapp.com/api/nsfwtrap?apikey=${TobzApi}`, {method: 'get'})1359 buffer = await getBuffer(res.result)1360 client.sendMessage(from, buffer, image, {quoted: mek, caption: 'ni anjim'})1361 } catch (e) {1362 console.log(`Error :`, color(e,'red'))1363 reply(' *ERROR* ')1364 }1365 await limitAdd(sender) 1366 break 1367 case 'randomhentai':1368 case 'hentai':1369 try {1370 if (isBanned) return reply(mess.only.benned) 1371 if (!isUser) return reply(mess.only.userB)1372 if (!isPrem) return reply(mess.only.premium)1373 if (!isNsfw) return reply('â *NSFW DESATIVADO* â')1374 res = await fetchJson(`https://tobz-api.herokuapp.com/api/hentai?apikey=BotWeA`, {method: 'get'})1375 bufferxx = await getBuffer(res.result)1376 client.sendMessage(from, bufferxx, image, {quoted: mek, caption: 'hentai teros'})1377 } catch (e) {1378 console.log(`Error :`, color(e,'red'))1379 reply('â *ERROR* â')1380 }1381 break1382 case 'hilih':1383 if (isBanned) return reply(mess.only.benned) 1384 if (!isUser) return reply(mess.only.userB)1385 if (isLimit(sender)) return reply(limits.limitend(pushname2))1386 reply(mess.wait)1387 if (args.length < 1) return reply('Cadê o texto, mano?')1388 anu = await fetchJson(`https://api.i-tech.id/tools/hilih?key=${TechApi}&kata=${body.slice(7)}`, {method: 'get'})1389 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})1390 await limitAdd(sender) 1391 break 1392 case 'chord':1393 if (isBanned) return reply(mess.only.benned) 1394 if (!isUser) return reply(mess.only.userB)1395 if (isLimit(sender)) return reply(limits.limitend(pushname2))1396 reply(mess.wait)1397 if (args.length < 1) return reply('Mau Nyari Chord Lagu Apa??')1398 tels = body.slice(7)1399 anu = await fetchJson(`https://api.i-tech.id/tools/chord?key=${TechApi}&query=${tels}`, {method: 'get'})1400 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})1401 await limitAdd(sender) 1402 break 1403 case 'infogempa':1404 if (isBanned) return reply(mess.only.benned) 1405 if (!isUser) return reply(mess.only.userB)1406 if (isLimit(sender)) return reply(limits.limitend(pushname2))1407 anu = await fetchJson(`https://docs-jojo.herokuapp.com/api/infogempa`, {method: 'get'})1408 if (anu.error) return reply(anu.error)1409 buff = await getBuffer(anu.map)1410 reply(mess.wait)1411 gempa = `â¢Localizaçao *${anu.lokasi}*\n⢠Sugestão: *${anu.waktu}* \n⢠Potencia: *${anu.potensi}*\n⢠Magnitude: *${anu.magnitude}*\n⢠Profundidade: *${anu.kedalaman}*\n⢠coordenadas: *${anu.koordinat}*`1412 client.sendMessage(from, buff, image, {quoted: mek, caption: gempa})1413 await limitAdd(sender) 1414 break 1415 case 'kucing':1416 if (isBanned) return reply(mess.only.benned) 1417 if (!isUser) return reply(mess.only.userB)1418 if (isLimit(sender)) return reply(limits.limitend(pushname2))1419 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=kucing`, {method: 'get'})1420 reply(mess.wait)1421 n = JSON.parse(JSON.stringify(anu));1422 nimek = n[Math.floor(Math.random() * n.length)];1423 pok = await getBuffer(nimek)1424 client.sendMessage(from, pok, image, { quoted: mek , caption: 'miauuð'})1425 await limitAdd(sender) 1426 break 142714281429/*1430* ====only grup fitur anime====>1431*/1432 case 'anime':1433 if (isBanned) return reply(mess.only.benned) 1434 if (!isUser) return reply(mess.only.userB)1435 if (isLimit(sender)) return reply(limits.limitend(pushname2))1436 if (!isAnime) return reply(' *Deve ativar o modo Anime* ')1437 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/randomanime?apikey=${TobzApi}`, {method: 'get'})1438 reply(mess.wait)1439 pok = await getBuffer(anu.result)1440 client.sendMessage(from, pok, image, { quoted: mek , caption: 'nihhh'})1441 await limitAdd(sender) 1442 break 1443 case 'animekiss':1444 if (isBanned) return reply(mess.only.benned) 1445 if (!isUser) return reply(mess.only.userB)1446 if (isLimit(sender)) return reply(limits.limitend(pushname2))1447 if (!isAnime) return reply(' * Deve ativar o modo Anime* ')1448 anp = getRandom('.gif')1449 rano = getRandom('.webp')1450 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/kiss?apikey=${TobzApi}`, {method: 'get'})1451 exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=15 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {1452 fs.unlinkSync(ranp)1453 if (err) return reply(mess.error.stick)1454 buffer = fs.readFileSync(rano)1455 client.sendMessage(from, buffer, sticker, {quoted: mek})1456 fs.unlinkSync(rano)1457 })1458 await limitAdd(sender) 1459 break 1460 case 'naruto':1461 if (isBanned) return reply(mess.only.benned) 1462 if (!isUser) return reply(mess.only.userB)1463 if (isLimit(sender)) return reply(limits.limitend(pushname2))1464 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1465 reply(mess.wait)1466 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=Naruto`, {method: 'get'})1467 naru = JSON.parse(JSON.stringify(anu));1468 to = naru[Math.floor(Math.random() * naru.length)];1469 nye = await getBuffer(to)1470 client.sendMessage(from, nye, image, { caption: 'naruto!!', quoted: mek })1471 await limitAdd(sender)1472 break 1473 case 'minato':1474 if (isBanned) return reply(mess.only.benned) 1475 if (!isUser) return reply(mess.only.userB)1476 if (isLimit(sender)) return reply(limits.limitend(pushname2))1477 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1478 reply(mess.wait)1479 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=Minato`, {method: 'get'})1480 min = JSON.parse(JSON.stringify(anu));1481 ato = min[Math.floor(Math.random() * min.length)];1482 nye = await getBuffer(ato)1483 client.sendMessage(from, nye, image, { caption: 'minato!!', quoted: mek })1484 await limitAdd(sender)1485 break 1486 case 'boruto':1487 if (isBanned) return reply(mess.only.benned) 1488 if (!isUser) return reply(mess.only.userB)1489 if (isLimit(sender)) return reply(limits.limitend(pushname2))1490 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1491 reply(mess.wait)1492 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=Boruto`, {method: 'get'})1493 bor = JSON.parse(JSON.stringify(anu));1494 uto = bor[Math.floor(Math.random() * bor.length)];1495 nye = await getBuffer(uto)1496 client.sendMessage(from, nye, image, { caption: 'boruto!!', quoted: mek })1497 await limitAdd(sender)1498 break 1499 case 'hinata':1500 if (isBanned) return reply(mess.only.benned) 1501 if (!isUser) return reply(mess.only.userB)1502 if (isLimit(sender)) return reply(limits.limitend(pushname2))1503 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1504 reply(mess.wait)1505 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=Hinata`, {method: 'get'})1506 hina = JSON.parse(JSON.stringify(anu));1507 ta = hina[Math.floor(Math.random() * hina.length)];1508 nye = await getBuffer(ta)1509 client.sendMessage(from, nye, image, { caption: 'hinata!!', quoted: mek })1510 await limitAdd(sender)1511 break 1512 case 'sasuke':1513 if (isBanned) return reply(mess.only.benned) 1514 if (!isUser) return reply(mess.only.userB)1515 if (isLimit(sender)) return reply(limits.limitend(pushname2))1516 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1517 reply(mess.wait)1518 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=sasuke`, {method: 'get'})1519 sasu = JSON.parse(JSON.stringify(anu));1520 ke = sasu[Math.floor(Math.random() * sasu.length)];1521 nye = await getBuffer(ke)1522 client.sendMessage(from, nye, image, { caption: 'sasuke!!', quoted: mek })1523 await limitAdd(sender) 1524 break 1525 case 'sakura':1526 if (isBanned) return reply(mess.only.benned) 1527 if (!isUser) return reply(mess.only.userB)1528 if (isLimit(sender)) return reply(limits.limitend(pushname2))1529 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1530 reply(mess.wait)1531 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=sakura`, {method: 'get'})1532 sak = JSON.parse(JSON.stringify(anu));1533 kura = sak[Math.floor(Math.random() * sak.length)];1534 nye = await getBuffer(kura)1535 client.sendMessage(from, nye, image, { caption: 'sakura!!', quoted: mek })1536 await limitAdd(sender) 1537 break 15381539 case 'kaneki':1540 if (isBanned) return reply(mess.only.benned) 1541 if (!isUser) return reply(mess.only.userB)1542 if (isLimit(sender)) return reply(limits.limitend(pushname2))1543 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1544 reply(mess.wait)1545 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=kaneki`, {method: 'get'})1546 kan = JSON.parse(JSON.stringify(anu));1547 eki = kan[Math.floor(Math.random() * kan.length)];1548 nye = await getBuffer(eki)1549 client.sendMessage(from, nye, image, { caption: 'kaneki!!', quoted: mek })1550 await limitAdd(sender) 1551 break 1552 case 'toukachan':1553 if (isBanned) return reply(mess.only.benned) 1554 if (!isUser) return reply(mess.only.userB)1555 if (isLimit(sender)) return reply(limits.limitend(pushname2))1556 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1557 reply(mess.wait)1558 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=anime+touka`, {method: 'get'})1559 tou = JSON.parse(JSON.stringify(anu));1560 ka = tou[Math.floor(Math.random() * tou.length)];1561 nye = await getBuffer(ka)1562 client.sendMessage(from, nye, image, { caption: 'toukachan!!', quoted: mek })1563 await limitAdd(sender) 1564 break 1565 case 'rize':1566 if (isBanned) return reply(mess.only.benned) 1567 if (!isUser) return reply(mess.only.userB)1568 if (isLimit(sender)) return reply(limits.limitend(pushname2))1569 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1570 reply(mess.wait)1571 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=anime+rize`, {method: 'get'})1572 ri = JSON.parse(JSON.stringify(anu));1573 ze = ri[Math.floor(Math.random() * ri.length)];1574 nye = await getBuffer(ze)1575 client.sendMessage(from, nye, image, { caption: 'rize chan!!', quoted: mek })1576 await limitAdd(sender) 1577 break 1578 case 'akira':1579 if (isBanned) return reply(mess.only.benned) 1580 if (!isUser) return reply(mess.only.userB)1581 if (isLimit(sender)) return reply(limits.limitend(pushname2))1582 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1583 reply(mess.wait)1584 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=anime+akira`, {method: 'get'})1585 ak = JSON.parse(JSON.stringify(anu));1586 ara = ak[Math.floor(Math.random() * ak.length)];1587 nye = await getBuffer(ara)1588 client.sendMessage(from, nye, image, { caption: 'akira chan!!', quoted: mek })1589 await limitAdd(sender) 1590 break 1591 case 'itori':1592 if (isBanned) return reply(mess.only.benned) 1593 if (!isUser) return reply(mess.only.userB)1594 if (isLimit(sender)) return reply(limits.limitend(pushname2))1595 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1596 reply(mess.wait)1597 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=anime+itori`, {method: 'get'})1598 it = JSON.parse(JSON.stringify(anu));1599 ori = it[Math.floor(Math.random() * it.length)];1600 nye = await getBuffer(ori)1601 client.sendMessage(from, nye, image, { caption: 'itori chan!!', quoted: mek })1602 await limitAdd(sender) 1603 break 1604 case 'kurumi':1605 if (isBanned) return reply(mess.only.benned) 1606 if (!isUser) return reply(mess.only.userB)1607 if (isLimit(sender)) return reply(limits.limitend(pushname2))1608 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1609 reply(mess.wait)1610 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=anime+karumi`, {method: 'get'})1611 kur = JSON.parse(JSON.stringify(anu));1612 imi = kur[Math.floor(Math.random() * kur.length)];1613 nye = await getBuffer(imi)1614 client.sendMessage(from, nye, image, { caption: 'kurumi chan!!', quoted: mek })1615 await limitAdd(sender) 1616 break 1617 case 'miku':1618 if (isBanned) return reply(mess.only.benned) 1619 if (!isUser) return reply(mess.only.userB)1620 if (isLimit(sender)) return reply(limits.limitend(pushname2))1621 if (!isAnime) return reply(' *Harus Mengaktifkan Mode Anime* ')1622 reply(mess.wait)1623 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=anime+miku`, {method: 'get'})1624 mi = JSON.parse(JSON.stringify(anu));1625 ku = mi[Math.floor(Math.random() * mi.length)];1626 nye = await getBuffer(ku)1627 client.sendMessage(from, nye, image, { caption: 'miku chan!!', quoted: mek })1628 await limitAdd(sender) 1629 break 1630// akhir fitur anime16311632 case 'anjing':1633 if (isBanned) return reply(mess.only.benned) 1634 if (!isUser) return reply(mess.only.userB)1635 if (isLimit(sender)) return reply(limits.limitend(pushname2))1636 anu = await fetchJson(`https://api.fdci.se/rep.php?gambar=anjing`, {method: 'get'})1637 reply(mess.wait)1638 n = JSON.parse(JSON.stringify(anu));1639 nimek = n[Math.floor(Math.random() * n.length)];1640 pok = await getBuffer(nimek)1641 client.sendMessage(from, pok, image, { quoted: mek })1642 await limitAdd(sender) 1643 break 1644 case 'resepmasakan':1645 if (isBanned) return reply(mess.only.benned) 1646 if (!isUser) return reply(mess.only.userB)1647 if (isLimit(sender)) return reply(limits.limitend(pushname2))1648 reply(mess.wait)1649 anu = await fetchJson(`https://api.vhtear.com/resepmasakan?query=${body.slice(12)}&apikey=${VthearApi}`, {method: 'get'})1650 buff = await getBuffer(anu.result.image)1651 resep = `*${anu.result.title}*\n${anu.result.desc}\n\n*BAHAN² YG DIPERLUKAN*\n${anu.result.bahan}\n\n*CARA MASAKNYA*\n${anu.result.cara}`1652 client.sendMessage(from, buff, image, {quoted: mek, caption: resep})1653 await limitAdd(sender) 1654 break 1655 case 'cersex':1656 if (isBanned) return reply(mess.only.benned) 1657 if (!isUser) return reply(mess.only.userB)1658 if (!isPrem) return reply(mess.only.premium)1659 if (isLimit(sender)) return reply(limits.limitend(pushname2))1660 anu = await fetchJson(`https://api.vhtear.com/cerita_sex&apikey=${VthearApi}`, {method: 'get'})1661 if (anu.error) return reply(anu.error)1662 sex = await getBuffer(anu.result.image)1663 reply (mess.wait)1664 cerita = `⢠*Judul:* ${anu.result.judul}\n\n${anu.result.cerita}`1665 client.sendMessage(from, sex, image, {quoted: mek, caption: cerita})1666 await limitAdd(sender) 1667 break 1668 case 'pornhub':1669 if (isBanned) return reply(mess.only.benned) 1670 if (!isPrem) return reply(mess.only.premium)1671 if (!isUser) return reply(mess.only.userB)1672 if (isLimit(sender)) return reply(limits.limitend(pushname2))1673 reply(mess.wait)1674 if (args.length < 1) return reply('onde esta o texto mano?')1675 teks = body.slice(9)1676 anu = await fetchJson(`https://api.arugaz.my.id/api/media/pornhub/search?query=${teks}`, {method: 'get'})1677 teks = `===============\n`1678 for (let bokep of anu.result) {1679 teks += `Title: ${bokep.title}\nAktor: ${bokep.author}\nViewers: *${bokep.views}*\nDurasi: ${bokep.duration}\nLink: ${bokep.link}\n===============\n`1680 }1681 reply(teks.trim())1682 await limitAdd(sender) 1683 break 1684 1685 case 'xxx':1686 if (isBanned) return reply(mess.only.benned) 1687 if (!isUser) return reply(mess.only.userB)1688 if (!isPrem) return reply(mess.only.premium)1689 if (isLimit(sender)) return reply(limits.limitend(pushname2))1690 reply(mess.wait)1691 if (args.length < 1) return reply('onde esta o texto mano?')1692 teks = body.slice(5)1693 anu = await fetchJson(`https://api.vhtear.com/xxxsearch?query=${teks}&apikey=${VthearApi}`, {method: 'get'})1694 teks = `===============\n`1695 for (let bokep of anu.result) {1696 teks += `⢠Title: ${bokep.data.title}\n⢠Durasi: ${bokep.data.durasi}\n⢠Link: ${bokep.data.url}\n===============\n`1697 }1698 reply(teks.trim())1699 await limitAdd(sender) 1700 break 17011702 case 'fb':1703 client.updatePresence(from, Presence.composing)1704 if (isBanned) return reply(mess.only.benned) 1705 if (!isUser) return reply(mess.only.userB)1706 if (isLimit(sender)) return reply(limits.limitend(pushname2))1707 reply(mess.wait)1708 if (args.length < 1) return reply('Cadê o url mano?')1709 if (!isUrl(args[0]) && !args[0].includes('www.facebook.com')) return reply(mess.error.Iv)1710 reply(mess.wait)1711 anu = await fetchJson(`https://mhankbarbar.tech/api/epbe?url=${args[0]}&apiKey=${BarBarApi}`, {method: 'get'})1712 if (anu.error) return reply(anu.error)1713 client.sendMessage(from, '[ AGUARDE ] Em andamento \ n \ nO link é apenas do Google, mano, então pode ser baixado', text, {quoted: mek})1714 efbe = `Title: *${anu.title}*\nSize: *${anu.filesize}\nDipublikasikan Pada: *${anu.published}*`1715 tefbe = await getBuffer(anu.thumb)1716 client.sendMessage(from, tefbe, image, {quoted: mek, caption: efbe})1717 buffer = await getBuffer(anu.result)1718 client.sendMessage(from, buffer, video, {mimetype: 'video/mp4', quoted: mek, caption: 'Nih Gan'})1719 await limitAdd(sender) 1720 break 1721 1722 case 'insta':1723 if (isBanned) return reply(mess.only.benned)1724 if (!isUser) return reply(mess.only.userB)1725 if (isLimit(sender)) return reply(limits.limitend(pushname2))1726 if (!isUrl(args[0]) && !args[0].includes('www.instagram.com')) return reply(mess.error.lv)1727 anu = await fetchJson(`https://api.i-tech.id/dl/igdl?key=${TechApi}&link=${args[0]}`, {method: 'get'})1728 insta = getBuffer(anu.result.url)1729 reply(mess.wait)1730 client.sendMessage(from, insta, {quoted: mek})1731 await limitAdd(sender) 1732 break 1733 1734 case 'instastory':1735 if (isBanned) return reply(mess.only.benned)1736 if (!isUser) return reply(mess.only.userB) 1737 if (isLimit(sender)) return reply(limits.limitend(pushname2))1738 instor = `${body.slice(12)}`1739 anu = await fetchJson(`https://api.i-tech.id/dl/story?key=${TechApi}&username=${instor}`, {method: 'get'})1740 buff = await getBuffer(anu.result.url)1741 client.sendMessage(from, buff, image, {quoted: mek})1742 await limitAdd(sender)1743 break1744 case 'hekerbucin':1745 if (isBanned) return reply(mess.only.benned)1746 if (!isUser) return reply(mess.only.userB) 1747 if (isLimit(sender)) return reply(limits.limitend(pushname2))1748 anu = await fetchJson(`http://itsmeikygans.my.id/bacotanhacker?apikey=${ItsApi}`, {method: 'get'})1749 reply (anu.result)1750 await limitAdd(sender) 1751 break 17521753 case 'ytsearch':1754 if (isBanned) return reply(mess.only.benned) 1755 if (!isUser) return reply(mess.only.userB)1756 if (isLimit(sender)) return reply(limits.limitend(pushname2))1757 if (args.length < 1) return reply('O que você está procurando??')1758 reply(mess.wait)1759 anu = await fetchJson(`https://api.arugaz.my.id/api/media/ytsearch?query=${body.slice(10)}`, {method: 'get'})1760 if (anu.error) return reply(anu.error)1761 teks = '=================\n'1762 for (let i of anu.result) {1763 teks += `\`\`\`Titulo\`\`\` : *${i.title}*\n\`\`\`Link\`\`\` : *https://youtu.be/${i.id}*\n\`\`\`Publicados\`\`\` : *${i.uploadDate}*\n\`\`\`Duraçao\`\`\` : *${i.duration}*\n\`\`\`Viewers: \`\`\`*${h2k(i.viewCount)}*\n\`\`\`Canal:\`\`\` *${i.channel.name}*\n=================\n`1764 }1765 reply(teks.trim())1766 await limitAdd(sender) 1767 break 1768 case 'film':1769 if (isBanned) return reply(mess.only.benned)1770 if (!isUser) return reply(mess.only.userB)1771 if (isLimit(sender)) return reply(limits.limitend(pushname2))1772 if (args.length < 1) return reply('Que filme quer encontrar?')1773 reply(mess.wait)1774 anu = await fetchJson(`https://api.vhtear.com/downloadfilm?judul=${body.slice(6)}&apikey=${VthearApi}`, {method: 'get'})1775 if (anu.error) return reply(anu.error)1776 film = `⢠Judul: *${anu.result.judul}*\n⢠Resolusi: *${anu.result.resolusi}*\n⢠Link Download: *${anu.result.urlDownload}*\n`1777 client.sendMessage(from, film, text, {quoted: mek})1778 await limitAdd(sender) 1779 break 1780 case 'tiktok':1781 if (isBanned) return reply(mess.only.benned) 1782 if (!isUser) return reply(mess.only.userB)1783 if (isLimit(sender)) return reply(limits.limitend(pushname2))1784 if (args.length < 1) return reply('Cadê o url mano?')1785 if (!isUrl(args[0]) && !args[0].includes('vt')) return reply(mess.error.Iv)1786 reply(mess.wait)1787 anu = await fetchJson(`https://api.vhtear.com/tiktokdl?link=${args[0]}&apikey=${VthearApi}`, {method: 'get'})1788 if (anu.error) return reply(anu.error)1789 buffer = await getBuffer(anu.result.video)1790 client.sendMessage(from, buffer, video, {quoted: mek})1791 await limitAdd(sender)1792 break 1793 case 'tiktokstalk':1794 try {1795 if (isBanned) return reply(mess.only.benned) 1796 if (!isUser) return reply(mess.only.userB)1797 if (isLimit(sender)) return reply(limits.limitend(pushname2))1798 if (args.length < 1) return client.sendMessage(from, 'Onde está o nome de usuário, mano?', text, {quoted: mek})1799 let { user, stats } = await tiktod.getUserProfileInfo(args[0])1800 reply(mess.wait)1801 teks = `*ID* : ${user.id}\n*Username* : ${user.uniqueId}\n*Nickname* : ${user.nickname}\n*Followers* : ${stats.followerCount}\n*Followings* : ${stats.followingCount}\n*Posts* : ${stats.videoCount}\n*Luv* : ${stats.heart}\n`1802 buffer = await getBuffer(user.avatarLarger)1803 client.sendMessage(from, buffer, image, {quoted: mek, caption: teks})1804 } catch (e) {1805 console.log(`Error :`, color(e,'red'))1806 reply('PossÃvel nome de usuário inválido')1807 }1808 await limitAdd(sender) 1809 break 1810 case 'wp':1811 if (isBanned) return reply(mess.only.benned) 1812 if (!isUser) return reply(mess.only.userB)1813 1814 if (args.length < 1) return reply('Cadê o texto tio')1815 teksj = body.slice(4)1816 reply(mess.wait)1817 anwu = await fetchJson(`https://api.vhtear.com/walpaper?query=${teksj}&apikey=Jsieu8287362jshre82`, {method: 'get'})1818 bufferx = await getBuffer(anwu.result.LinkImg)1819 client.sendMessage(from, bufferx, image, {quoted: mek})1820 break1821//creator1822 case 'nulis':1823 case 'tulis':1824 client.updatePresence(from, Presence.composing)1825 if (isBanned) return reply(mess.only.benned) 1826 if (!isUser) return reply(mess.only.userB)1827 if (isLimit(sender)) return reply(limits.limitend(pushname2))1828 if (args.length < 1) return reply(`${name} O que devo escrever ??`)1829 reply(mess.wait)1830 tulis = body.slice(7)1831 nama = tulis.split("/")[0];1832 kelas = tulis.split("/")[1];1833 isi = tulis.split("/")[2];1834 nulis = await getBuffer(`https://api.zeks.xyz/api/magernulis?nama=${nama}&kelas=${kelas}&text=${isi}&tinta=4`, {method: 'get'})1835 client.sendMessage(from, nulis, image, {quoted: mek})1836 await limitAdd(sender) 1837 break 1838 case 'ttp':1839 if (isBanned) return reply(mess.only.benned) 1840 if (!isUser) return reply(mess.only.userB)1841 if (isLimit(sender)) return reply(limits.limitend(pushname2))1842 if (args.length < 1) return reply('*Cadê o texto tio?*')1843 ranp = getRandom('.png')1844 rano = getRandom('.webp')1845 teks = body.slice(5).trim()1846 anu = await fetchJson(`https://mhankbarbar.tech/api/text2image?text=${teks}&apiKey=${BarBarApi}`, {method: 'get'})1847 if (anu.error) return reply(anu.error)1848 reply(mess.wait)1849 exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {1850 fs.unlinkSync(ranp)1851 if (err) return reply(mess.error.stick)1852 bufferhgf = fs.readFileSync(rano)1853 client.sendMessage(from, bufferhgf, sticker, {quoted: mek})1854 fs.unlinkSync(rano)1855 })1856 await limitAdd(sender)1857 break 1858 1859 case 'slide':1860 if (isBanned) return reply(mess.only.benned) 1861 if (!isUser) return reply(mess.only.userB)1862 if (isLimit(sender)) return reply(limits.limitend(pushname2))1863 if (args.length < 1) return reply('*Cade o texto man?*')1864 teks = `${body.slice(7)}`1865 atytyd = await getBuffer(`https://api.vhtear.com/slidingtext?text=${teks}&apikey=${VthearApi}`, {method: 'get'})1866 reply(mess.wait)1867 client.sendMessage(from, atytyd, video, {quoted: mek})1868 await limitAdd(sender) 1869 break 1870 case 'cparty':1871 if (args.length < 1) return reply(mess.blank)1872 if (isBanned) return reply(mess.only.benned) 1873 if (!isUser) return reply(mess.only.userB)1874 if (isLimit(sender)) return reply(limits.limitend(pushname2))1875 part = body.slice(8)1876 reply(mess.wait)1877 bufferu = await getBuffer(`https://api.vhtear.com/partytext?text=${part}&apikey=${VthearApi}`, {method: 'get'})1878 client.sendMessage(from, bufferu, image, {caption: 'aqui mano', quoted: mek})1879 await limitAdd(sender) 1880 break 1881 case 'cshadow':1882 if (args.length < 1) return reply(mess.blank)1883 if (isBanned) return reply(mess.only.benned) 1884 if (!isUser) return reply(mess.only.userB)1885 if (isLimit(sender)) return reply(limits.limitend(pushname2))1886 shad = body.slice(9)1887 reply(mess.wait)1888 ssha = await getBuffer(`https://api-anoncybfakeplayer.herokuapp.com/photooxy/shadowtext?text=${shad}`)1889 client.sendMessage(from, ssha, image, {caption: 'Nih kak', quoted: mek})1890 await limitAdd(sender) 1891 break 1892 case 'cminion':1893 if (args.length < 1) return reply(mess.blank)1894 if (isBanned) return reply(mess.only.benned) 1895 if (!isUser) return reply(mess.only.userB)1896 if (isLimit(sender)) return reply(limits.limitend(pushname2))1897 minio = body.slice(9)1898 reply(mess.wait)1899 minn = await getBuffer(`https://api-anoncybfakeplayer.herokuapp.com/textpro/miniontext?text=${minio}`)1900 client.sendMessage(from, minn, image, {caption: 'Aqui man', quoted: mek})1901 await limitAdd(sender) 1902 break 1903 case 'cneon':1904 if (args.length < 1) return reply(mess.blank)1905 if (isBanned) return reply(mess.only.benned) 1906 if (!isUser) return reply(mess.only.userB)1907 if (isLimit(sender)) return reply(limits.limitend(pushname2))1908 nneoo = body.slice(7)1909 reply(mess.wait)1910 nooe = await getBuffer(`https://api-anoncybfakeplayer.herokuapp.com/textpro/neontext?text=${nneoo}`)1911 client.sendMessage(from, nooe, image, {caption: 'Nih kak', quoted: mek})1912 await limitAdd(sender) 1913 break 1914 case 'cneongreen':1915 if (args.length < 1) return reply(mess.blank)1916 if (isBanned) return reply(mess.only.benned) 1917 if (!isUser) return reply(mess.only.userB)1918 if (isLimit(sender)) return reply(limits.limitend(pushname2))1919 grre = body.slice(12)1920 reply(mess.wait)1921 gree = await getBuffer(`https://api-anoncybfakeplayer.herokuapp.com/textpro/greenneontext?text=${grre}`)1922 client.sendMessage(from, gree, image, {caption: 'Nih kak', quoted: mek})1923 await limitAdd(sender) 1924 break 1925 case 'cneon2':1926 if (args.length < 1) return reply(mess.blank)1927 if (isBanned) return reply(mess.only.benned) 1928 if (!isUser) return reply(mess.only.userB)1929 if (isLimit(sender)) return reply(limits.limitend(pushname2))1930 duadua = body.slice(8)1931 reply(mess.wait)1932 duaa = await getBuffer(`https://api-anoncybfakeplayer.herokuapp.com/textpro/neonwithgalaxytext?text=${duadua}`)1933 client.sendMessage(from, duaa, image, {caption: 'Aqui man', quoted: mek})1934 await limitAdd(sender) 1935 break 1936 case 'c3d':1937 if (args.length < 1) return reply(mess.blank)1938 if (isBanned) return reply(mess.only.benned) 1939 if (!isUser) return reply(mess.only.userB)1940 if (isLimit(sender)) return reply(limits.limitend(pushname2))1941 dimen = body.slice(5)1942 reply(mess.wait)1943 tigaa = await getBuffer(`https://api-anoncybfakeplayer.herokuapp.com/textpro/3dgradientstext?text=${dimen}`)1944 client.sendMessage(from, tigaa, image, {caption: 'Aqui man', quoted: mek})1945 await limitAdd(sender) 1946 break 1947 case 'croman':1948 if (!isUser) return reply(mess.only.userB)1949 if (isBanned) return reply(mess.only.benned)1950 if (isLimit(sender)) return reply(limits.limitend(pushname2))1951 roman = `${body.slice(8)}`1952 if (args.length < 1) return reply('Cadê o texto, mano??')1953 if (args.length > 10) return reply('minimo de 10 caracteres')1954 buff = await getBuffer(`https://api.vhtear.com/romancetext?text=${roman}&apikey=${VthearApi}`, {method: 'get'})1955 client.sendMessage(from, buff, image, {quoted: mek})1956 await limitAdd(sender) 1957 break 1958 case 'clove':1959 if (!isUser) return reply(mess.only.userB)1960 if (isBanned) return reply(mess.only.benned)1961 if (isLimit(sender)) return reply(limits.limitend(pushname2))1962 if (args.length < 1) return reply('Cade o texto??')1963 if (args.length > 10) return reply('Minimo de 10 caracteres')1964 love = `${body.slice(7)}`1965 buff = await getBuffer(`https://api.vhtear.com/lovemessagetext?text=${love}&apikey=${VthearApi}`, {method: 'get'})1966 client.sendMessage(from, buff, image, {quoted: mek})1967 await limitAdd(sender)1968 break 1969 case 'cmwolf':1970 if (!isUser) return reply(mess.only.userB)1971 if (isBanned) return reply(mess.only.benned)1972 if (isLimit(sender)) return reply(limits.limitend(pushname2))1973 if (args.length < 1) return reply('Cade o texto??')1974 if (args.length > 10) return reply('Minimo de 10 caracteres')1975 mwolf = `${body.slice(8)}`1976 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/photooxy?theme=wolf_metal&text=${mwolf}&apikey=${TobzApi}`, {method: 'get'})1977 cmwolf = await getBuffer(anu.result)1978 client.sendMessage(from, cmwolf, image, {quoted: mek})1979 await limitAdd(sender)1980 break 1981 case 'cml':1982 if (isBanned) return reply(mess.only.benned) 1983 if (!isUser) return reply(mess.only.userB)1984 if (isLimit(sender)) return reply(limits.limitend(pushname2))1985 if (args.length < 1) return reply('Cade o texto??')1986 if (args.length > 10) return reply('Minimo de 10 caracteres')1987 cml = `${body.slice(5)}`1988 cml1 = cml.split("/")[0];1989 cml2 = cml.split("/")[1];1990 buffer = await getBuffer(`https://api.vhtear.com/logoml?hero=${cml1}&text=${cml2}&apikey=${VthearApi}`, {method: 'get'})1991 client.sendMessage(from, buffer, image, {quoted: mek})1992 await limitAdd(sender) 1993 break 1994 case 'cpubg':1995 if (isBanned) return reply(mess.only.benned) 1996 if (!isUser) return reply(mess.only.userB)1997 if (isLimit(sender)) return reply(limits.limitend(pushname2))1998 if (args.length < 1) return reply('Cade o texto??')1999 if (args.length > 10) return reply('Minimo de 10 caracteres')2000 cpubg = `${body.slice(7)}`2001 cpubg1 = cpubg.split("/")[0];2002 cpubg2 = cpubg.split("/")[1];2003 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/photooxy?theme=pubg&text1=${cpubg1}&text2=${cpubg2}&apikey=${TobzApi}`, {method: 'get'})2004 cpubg = await getBuffer(anu.result)2005 client.sendMessage(from, cpubg, image, {quoted: mek})2006 await limitAdd(sender) 2007 break 2008 case 'csky':2009 if (isBanned) return reply(mess.only.benned) 2010 if (!isUser) return reply(mess.only.userB)2011 if (isLimit(sender)) return reply(limits.limitend(pushname2))2012 sky = `${body.slice(6)}`2013 if (args.length < 1) return reply('Cade o texto??')2014 if (args.length > 10) return reply('Minimo de 10 caracteres')2015 anu = await fetchJson(`https://api.zeks.xyz/api/skytext?text=${sky}&apikey=${ZeksApi}`, {method: 'get'})2016 gools7 = await getBuffer(anu.result)2017 client.sendMessage(from, gools7, image, {quoted: mek})2018 await limitAdd(sender) 2019 break 2020 case 'cwooden':2021 if (isBanned) return reply(mess.only.benned) 2022 if (!isUser) return reply(mess.only.userB)2023 if (isLimit(sender)) return reply(limits.limitend(pushname2))2024 wood = `${body.slice(9)}`2025 if (args.length < 1) return reply('Cade o texto??')2026 if (args.length > 10) return reply('Minimo de 10 caracteres')2027 anu = await fetchJson(`https://api.zeks.xyz/api/woodentext?text=${wood}&apikey=${ZeksApi}`, {method: 'get'})2028 gools6 = await getBuffer(anu.result)2029 client.sendMessage(from, gools6, image, {quoted: mek})2030 await limitAdd(sender) 2031 break 2032 case 'ccrossfire':2033 if (isBanned) return reply(mess.only.benned) 2034 if (!isUser) return reply(mess.only.userB)2035 if (isLimit(sender)) return reply(limits.limitend(pushname2))2036 cf = `${body.slice(12)}`2037 if (args.length < 1) return reply('Cade o texto??')2038 if (args.length > 10) return reply('Minimo de 10 caracteres')2039 anu = await fetchJson(`https://api.zeks.xyz/api/crosslogo?text=${cf}&apikey=${ZeksApi}`, {method: 'get'})2040 gools5 = await getBuffer(anu.result)2041 client.sendMessage(from, gools5, image, {quoted: mek})2042 await limitAdd(sender) 2043 break 2044 case 'cflower':2045 if (isBanned) return reply(mess.only.benned) 2046 if (!isUser) return reply(mess.only.userB)2047 if (isLimit(sender)) return reply(limits.limitend(pushname2))2048 flower = `${body.slice(9)}`2049 if (args.length < 1) return reply('Cade p texto??')2050 if (args.length > 10) return reply('Minimo de 10 caracteres')2051 anu = await fetchJson(`https://api.zeks.xyz/api/flowertext?text=${flower}&apikey=${ZeksApi}`, {method: 'get'})2052 gools3 = await getBuffer(anu.result)2053 client.sendMessage(from, gools3, image, {quoted: mek})2054 await limitAdd(sender) 2055 break 2056 case 'cnaruto':2057 if (isBanned) return reply(mess.only.benned) 2058 if (!isUser) return reply(mess.only.userB)2059 if (isLimit(sender)) return reply(limits.limitend(pushname2))2060 naruto = `${body.slice(9)}`2061 if (args.length < 1) return reply('Cade o texto??')2062 if (args.length > 10) return reply('Minimo de 10 caracteres')2063 anu = await fetchJson(`https://api.zeks.xyz/api/naruto?text=${naruto}&apikey=${ZeksApi}`, {method: 'get'})2064 gools4 = await getBuffer(anu.result)2065 client.sendMessage(from, gools4, image, {quoted: mek})2066 await limitAdd(sender) 2067 break 2068 case 'tahta':2069 if (!isUser) return reply(mess.only.userB)2070 if (isLimit(sender)) return reply(limits.limitend(pushname2))2071 if (isBanned) return reply(mess.only.benned)2072 tahta = `${body.slice(7)}`2073 if (args.length < 1) return reply('Cade o texto??')2074 if (args.length > 10) return reply('Minimo de 10 caracteres')2075 buff = await getBuffer(`https://api.zeks.xyz/api/hartatahta?text=${tahta}&apikey=${ZeksApi}`, {method: 'get'})2076 client.sendMessage(from, buff, image, {quoted: mek})2077 await limitAdd(sender) 2078 break 2079 case 'cbpink':2080 if (!isUser) return reply(mess.only.userB)2081 if (isBanned) return reply(mess.only.benned)2082 if (isLimit(sender)) return reply(limits.limitend(pushname2))2083 bpink = `${body.slice(8)}`2084 if (args.length < 1) return reply('Cade o texto??')2085 if (args.length > 10) return reply('Minimo de 10 caracteres')2086 buff = await getBuffer(`https://api.vhtear.com/blackpinkicon?text=${bpink}&apikey=${VthearApi}`, {method: 'get'})2087 client.sendMessage(from, buff, image, {quoted: mek})2088 await limitAdd(sender)2089 break 2090 case 'cthunder':2091 if (!isUser) return reply(mess.only.userB)2092 if (isBanned) return reply(mess.only.benned)2093 if (isLimit(sender)) return reply(limits.limitend(pushname2))2094 thunder = `${body.slice(10)}`2095 if (args.length < 1) return reply('Cade o texto??')2096 if (args.length > 10) return reply('Minimo de 10 caracteres')2097 buff = await getBuffer(`https://api.vhtear.com/thundertext?text=${thunder}&apikey=${VthearApi}`, {method: 'get'})2098 client.sendMessage(from, buff, image, {quoted: mek})2099 await limitAdd(sender) 2100 break 21012102 case 'quotemaker':2103 if (isBanned) return reply(mess.only.benned)2104 if (isLimit(sender)) return reply(limits.limitend(pushname2))2105 if (!isUser) return reply(mess.only.userB)2106 gh = `${body.slice(12)}`2107 quote = gh.split("/")[0];2108 wm = gh.split("/")[1];2109 bg = gh.split("/")[2];2110 const pref = `Usage: \n${prefix}quotemaker teks/watermark/theme\n\nEx :\n${prefix}quotemaker ini contoh/bicit/random`2111 if (args.length < 1) return reply(pref)2112 anu = await fetchJson(`https://terhambar.com/aw/qts/?kata=${quote}&author=${wm}&tipe=${bg}`, {method: 'get'})2113 buffer = await getBuffer(anu.result)2114 client.sendMessage(from, buffer, image, {quoted: mek})2115 await limitAdd(sender) 2116 break 2117 case 'cglitch':2118 if (isBanned) return reply(mess.only.benned) 2119 if (!isUser) return reply(mess.only.userB)2120 if (isLimit(sender)) return reply(limits.limitend(pushname2))2121 if (args.length < 1) return reply('Cade o texto?')2122 hm = `${body.slice(8)}`2123 text1 = hm.split("/")[0];2124 text2 = hm.split("/")[1]; 2125 glitch = await getBuffer(`https://api.vhtear.com/glitchtext?text1=${text1}&text2=${text2}&apikey=${VthearApi}`, {method: 'get'})2126 client.sendMessage(from, glitch, image, {quoted: mek, caption: 'Aqui man'})2127 await limitAdd(sender) 2128 break 2129 case 'cphlogo':2130 if (isBanned) return reply(mess.only.benned) 2131 if (!isUser) return reply(mess.only.userB)2132 if (isLimit(sender)) return reply(limits.limitend(pushname2))2133 gh = `${body.slice(9)}`2134 gbl1 = gh.split("/")[0];2135 gbl2 = gh.split("/")[1];2136 if (args.length < 1) return reply('Cade o texto?')2137 buffer = await getBuffer(`https://api.vhtear.com/pornlogo?text1=${gbl1}&text2=${gbl2}&apikey=${VthearApi}`, {method: 'get'})2138 client.sendMessage(from, buffer, image, {quoted: mek})2139 await limitAdd(sender) 2140 break 21412142//akhir kreator2143 case 'jarak':2144 if (isBanned) return reply(mess.only.benned) 2145 if (!isUser) return reply(mess.only.userB)2146 if (isLimit(sender)) return reply(limits.limitend(pushname2))2147 jarak = `${body.slice(7)}`2148 ja = jarak.split("/")[0];2149 rak = jarak.split("/")[1];2150 anu = await fetchJson(`https://api.vhtear.com/distance?from=${ja}&to=${rak}&apikey=${VthearApi}`, {method: 'get'})2151 client.sendMessage(from, `${anu.result.data}`, text, {quoted: mek})2152 await limitAdd(sender) 2153 break 2154 case 'infoalamat':2155 if (isBanned) return reply(mess.only.benned) 2156 if (!isUser) return reply(mess.only.userB)2157 if (isLimit(sender)) return reply(limits.limitend(pushname2))2158 reply(mess.wait)2159 anu = await fetchJson(`https://api.vhtear.com/infoalamat?query=${body.slice(12)}&apikey=${VthearApi}`, {method: 'get'})2160 client.sendMessage(from, `${anu.result.data}`, text, {quoted: mek})2161 await limitAdd(sender) 2162 break 2163 case 'tinyurl':2164 if (isBanned) return reply(mess.only.benned) 2165 if (!isUser) return reply(mess.only.userB)2166 if (isLimit(sender)) return reply(limits.limitend(pushname2))2167 reply(mess.wait)2168 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/tinyurl?url=${body.slice(9)}&apikey=${TobzApi}`)2169 tinyurl = `${anu.result}`2170 reply(tinyurl)2171 await limitAdd(sender) 2172 break 2173 case 'infonomor':2174 if (isBanned) return reply(mess.only.benned) 2175 if (!isUser) return reply(mess.only.userB)2176 if (isLimit(sender)) return reply(limits.limitend(pushname2))2177 reply(mess.wait)2178 anu = await fetchJson(`https://docs-jojo.herokuapp.com/api/infonomor?no=${body.slice(10)}`)2179 infonomor = `*nomor* \n${anu.nomor} *international* \n${anu.international}`2180 reply(infonomor)2181 await limitAdd(sender) 2182 break 2183 case 'igstalk':2184 if (isBanned) return reply(mess.only.benned) 2185 if (!isUser) return reply(mess.only.userB)2186 if (isLimit(sender)) return reply(limits.limitend(pushname2))2187 anu = await fetchJson(`https://mhankbarbar.tech/api/stalk?username=${body.slice(9)}&apiKey=${BarBarApi}`, {method: 'get'})2188 buffer = await getBuffer(anu.Profile_pic)2189 reply(mess.wait)2190 hasil = `ã *INSTAGRAM STALKER* ã\n\n⢠Link: https://www.instagram.com/${anu.Username}\n⢠Nomde completo: ${anu.Name}\n⢠Following : ${anu.Jumlah_Followers}\n⢠Seguidores : ${anu.Jumlah_Following}\n⢠Número de posts: ${anu.Jumlah_Post}\n⢠Bio : ${anu.Biodata}`2191 client.sendMessage(from, buffer, image, {quoted: mek, caption: hasil})2192 await limitAdd(sender) 2193 break 2194 case 'mimpi':2195 if (isBanned) return reply(mess.only.benned)2196 if (isLimit(sender)) return reply(limits.limitend(pushname2))2197 if (!isUser) return reply(mess.only.userB)2198 reply(mess.wait)2199 anu = await fetchJson(`https://api.arugaz.my.id/api/primbon/tafsirmimpi?mimpi=${body.slice(7)}`, {method: 'get'})2200 mimpi = `Arti Mimpi *${body.slice(7)}* Adalah:\n${anu.result.hasil}`2201 client.sendMessage(from, mimpi, text, {quoted: mek})2202 await limitAdd(sender) 2203 break 2204 case 'quotes':2205 if (isBanned) return reply(mess.only.benned) 2206 if (!isUser) return reply(mess.only.userB)2207 if (isLimit(sender)) return reply(limits.limitend(pushname2))2208 anu = await fetchJson(`https://api.arugaz.my.id/api/random/text/quotes`, {method: 'get'})2209 quotes = `Quotes Dari: *${anu.result.by}*\n\n\n*${anu.result.quote}*`2210 client.sendMessage(from, quotes, text, {quoted: mek})2211 await limitAdd(sender) 2212 break 2213 case 'fakta':2214 if (isBanned) return reply(mess.only.benned) 2215 if (isLimit(sender)) return reply(limits.limitend(pushname2))2216 if (!isUser) return reply(mess.only.userB)2217 anu = await fetchJson(`https://api.arugaz.my.id/api/random/text/faktaunik`, {method: 'get'})2218 fakta = `Faktanya: *${anu.result}*`2219 client.sendMessage(from, fakta, text, {quoted: mek})2220 await limitAdd(sender) 2221 break 2222 case 'katabijak':2223 if (isBanned) return reply(mess.only.benned) 2224 if (!isUser) return reply(mess.only.userB)2225 if (isLimit(sender)) return reply(limits.limitend(pushname2))2226 anu = await fetchJson(`https://api.arugaz.my.id/api/random/text/katabijak`, {method: 'get'})2227 katabijak = `Kata Bijak: *${anu.result}*`2228 client.sendMessage(from, katabijak, text, {quoted: mek})2229 await limitAdd(sender) 2230 break 22312232 case 'profiltiktok':2233 if (isBanned) return reply(mess.only.benned) 2234 if (!isUser) return reply(mess.only.userB)2235 if (isLimit(sender)) return reply(limits.limitend(pushname2))2236 reply(mess.wait)2237 anu = await fetchJson(`https://docs-jojo.herokuapp.com/api/tiktokpp?user=${body.slice(14)}`)2238 tiktok = await getBuffer(anu.result)2239 client.sendMessage(from, tiktok, image, {quoted: mek})2240 await limitAdd(sender) 2241 break 2242 case 'darkjokes':2243 client.updatePresence(from, Presence.composing) 2244 if (isBanned) return reply(mess.only.benned) 2245 if (isLimit(sender)) return reply(limits.limitend(pushname2))2246 if (!isUser) return reply(mess.only.userB)2247 reply(mess.wait)2248 data = fs.readFileSync('./BRYAN/drak.js');2249 jsonData = JSON.parse(data);2250 randIndex = Math.floor(Math.random() * jsonData.length);2251 randKey = jsonData[randIndex];2252 darkjokes = await getBuffer(randKey.result)2253 client.sendMessage(from, darkjokes, image, {quoted: mek, caption: '\`\`\`NIH BANG\`\`\`'})2254 await limitAdd(sender) 2255 break 2256 case 'coli':2257 client.updatePresence(from, Presence.composing) 2258 if (isBanned) return reply(mess.only.benned) 2259 if (isLimit(sender)) return reply(limits.limitend(pushname2))2260 if (!isUser) return reply(mess.only.userB)2261 reply(mess.wait)2262 data = fs.readFileSync('./BRYAN/bokep.js');2263 jsonData = JSON.parse(data);2264 randIndex = Math.floor(Math.random() * jsonData.length);2265 randKey = jsonData[randIndex];2266 bokep = await getBuffer(randKey.result)2267 client.sendMessage(from, bokep, image, {quoted: mek, caption: '\`\`\`NGEBOKEP TROS\`\`\`'})2268 await limitAdd(sender) 2269 break 2270 case 'katailham':2271 if (isBanned) return reply(mess.only.benned) 2272 if (isLimit(sender)) return reply(limits.limitend(pushname2)) 2273 if (!isUser) return reply(mess.only.userB)2274 anu = await fetchJson(`http://itsmeikygans.my.id/bacotanilham?apikey=${ItsApi}`, {method: 'get'})2275 kata = anu.result2276 client.sendMessage(from, kata, text, {quoted: mek})2277 await limitAdd(sender)2278 break 2279 2280 case 'katacinta':2281 if (isBanned) return reply(mess.only.benned) 2282 if (!isUser) return reply(mess.only.userB)2283 if (isLimit(sender)) return reply(limits.limitend(pushname2))2284 anu = await fetchJson(`https://docs-jojo.herokuapp.com/api/katacinta`, {method: 'get'})2285 katacin = `*${anu.result}*`2286 client.sendMessage(from, katacin, text, {quoted: mek})2287 await limitAdd(sender) 2288 break 2289 2290 case 'pasangan':2291 if (isBanned) return reply(mess.only.benned) 2292 if (!isUser) return reply(mess.only.userB)2293 if (isLimit(sender)) return reply(limits.limitend(pushname2))2294 pa = `${body.slice(10)}`2295 sa = pa.split("/")[0];2296 ngan = pa.split("/")[1];2297 anu = await fetchJson(`https://api.vhtear.com/primbonjodoh?nama=${sa}&pasangan=${ngan}&apikey=${VthearApi}`, {method: 'get'})2298 client.sendMessage(from, `${anu.result.hasil}`, {quoted: mek})2299 await limitAdd(sender) 2300 break 23012302 case 'persengay':2303 case 'gaypersen':2304 if (!isUser) return reply(mess.only.userB)2305 if (isLimit(sender)) return reply(limits.limitend(pushname2))2306 if (args.length < 1) return reply('marque seu amigo!')2307 rate = body.slice(11)2308 const kl = persengayy[Math.floor(Math.random() * persengayy.length)]2309 client.sendMessage(from, 'Porcentagem Gay: *'+rate+'*\n\nResposta : '+kl+'', text, { quoted: mek })2310 await limitAdd(sender) 2311 break 23122313 case 'pbucin':2314 case 'persenbucin':2315 case 'bucinpersen':2316 if (!isUser) return reply(mess.only.userB)2317 if (isLimit(sender)) return reply(limits.limitend(pushname2))2318 if (args.length < 1) return reply('Mana Nama?')2319 rate = body.slice(8)2320 const pbucin = persenbucin[Math.floor(Math.random() * persenbucin.length)]2321 client.sendMessage(from, 'Persen Bucin Kak: *'+rate+'*\n\nJawaban : '+ pbucin +'', text, { quoted: mek })2322 await limitAdd(sender) 2323 break 2324 case 'map':2325 if (isBanned) return reply(mess.only.benned) 2326 if (!isUser) return reply(mess.only.userB)2327 if (isLimit(sender)) return reply(limits.limitend(pushname2))2328 reply(mess.wait)2329 anu = await fetchJson(`https://mnazria.herokuapp.com/api/maps?search=${body.slice(5)}`, {method: 'get'})2330 buffer = await getBuffer(anu.gambar)2331 client.sendMessage(from, buffer, image, {quoted: mek, caption: `${body.slice(5)}`})2332 await limitAdd(sender) 2333 break 2334 case 'url2img':2335 if (isBanned) return reply(mess.only.benned) 2336 if (!isUser) return reply(mess.only.userB)2337 if (isLimit(sender)) return reply(limits.limitend(pushname2))2338 tipelist = ['desktop','tablet','mobile']2339 if (args.length < 1) return reply('Tipenya apa gan?')2340 if (!tipelist.includes(args[0])) return reply('Tipe desktop|tablet|mobile')2341 if (args.length < 2) return reply('Urlnya mana gan?')2342 if (!isUrl(args[1])) return reply(mess.error.Iv)2343 reply(mess.wait)2344 anu = await fetchJson(`https://mhankbarbar.tech/api/url2image?tipe=${args[0]}&url=${args[1]}&apiKey=${BarBarApi}`, {method: 'get'})2345 if (anu.error) return reply(anu.error)2346 url2img = await getBuffer(anu.result)2347 client.sendMessage(from, url2img, image, {quoted: mek})2348 await limitAdd(sender)2349 break 2350 case 'tagall':2351 if (isBanned) return reply(mess.only.benned) 2352 if (!isUser) return reply(mess.only.userB)2353 if (!isGroup) return reply(mess.only.group)2354 if (!isGroupAdmins) return reply(mess.only.admin)2355 members_id = []2356 teks = (args.length > 1) ? body.slice(8).trim() : ''2357 teks += '\n'2358 for (let mem of groupMembers) {2359 teks += `â ⥠@${mem.jid.split('@')[0]}\nwa.me/${mem.jid.split('@')[0]}\n`2360 members_id.push(mem.jid)2361 }2362 mentions(`ââââ⪠Tag By *${pushname2}* âªââ`+ teks +'ââââã ${nome} ãâââ', members_id, true)2363 break2364 case 'mentionall':2365 if (isBanned) return reply(mess.only.benned) 2366 if (!isUser) return reply(mess.only.userB)2367 if (!isGroup) return reply(mess.only.group)2368 if (!isGroupAdmins) return reply(mess.only.admin)2369 members_id = []2370 teks = '\n'2371 for (let mem of groupMembers) {2372 teks += `â ⥠@${mem.jid.split('@')[0]}\n`2373 members_id.push(mem.jid)2374 }2375 mentions(`âââã *${body.slice(12)}* ãâªââ`+teks+'ââã EL GUSTA ã', members_id, true)2376 break2377 case 'kbbi':2378 if (isBanned) return reply(mess.only.benned) 2379 if (!isUser) return reply(mess.only.userB)2380 if (isLimit(sender)) return reply(limits.limitend(pushname2))2381 reply(mess.wait)2382 if (args.length < 1) return reply('Apa yang mau dicari gan?')2383 anu = await fetchJson(`https://mnazria.herokuapp.com/api/kbbi?search=${body.slice(6)}`, {method: 'get'})2384 reply('Menurut Kbbi:\n\n'+anu.result)2385 await limitAdd(sender)2386 break 2387 case 'grup':2388 case 'gc':2389 case 'group':2390 if (isBanned) return reply(mess.only.benned) 2391 if (!isUser) return reply(mess.only.userB)2392 if (!isGroup) return reply(mess.only.group)2393 if (!isGroupAdmins) return reply(mess.only.admin)2394 if (!isBotGroupAdmins) return reply(mess.only.Badmin)2395 if (args[0] === 'buka') {2396 reply(`\`\`\`âSucesso na abertura do grupo\`\`\` *${groupMetadata.subject}*`)2397 client.groupSettingChange(from, GroupSettingChange.messageSend, false)2398 } else if (args[0] === 'tutup') {2399 reply(`\`\`\`âSucesso no Fechamento do Grupo\`\`\` *${groupMetadata.subject}*`)2400 client.groupSettingChange(from, GroupSettingChange.messageSend, true)2401 }2402 break2403 case 'say':2404 if (isBanned) return reply(mess.only.benned) 2405 if (!isUser) return reply(mess.only.userB)2406 if (isLimit(sender)) return reply(limits.limitend(pushname2))2407 anu = await fetchJson(`https://anuz.herokuapp.com/api/bapakfont?kata=${body.slice(6)}`, {method: 'get'})2408 reply(anu.result)2409 await limitAdd(sender) 2410 break 2411 case 'artinama':2412 if (isBanned) return reply(mess.only.benned) 2413 if (!isUser) return reply(mess.only.userB)2414 if (isLimit(sender)) return reply(limits.limitend(pushname2))2415 if (args.length < 1) return reply('O que voce quer procurar mano?')2416 anu = await fetchJson(`https://mnazria.herokuapp.com/api/arti?nama=${body.slice(6)}`, {method: 'get'})2417 reply('Por nome:\n\n'+anu.result)2418 await limitAdd(sender) 2419 break 2420 case 'clearall':2421 if (!isOwner) return reply('quem e vc?')2422 anu = await client.chats.all()2423 client.setMaxListeners(25)2424 for (let _ of anu) {2425 client.deleteChat(_.jid)2426 }2427 reply(`\`\`\`deleta todo o chat do CREITIM\`\`\``)2428 break2429 case 'bcgc':2430 if (!isOwner) return reply("Este comando só pode ser usado pelo proprietário ${name}")2431 client.updatePresence(from, Presence.composing) 2432 if (args.length < 1) return reply('onde está o texto?')2433 if (isMedia && !mek.message.videoMessage || isQuotedImage) {2434 if (!isGroup) return reply(mess.only.group)2435 if (!isGroupAdmins) return reply(mess.only.admin)2436 if (!isBotGroupAdmins) return reply(mess.only.Badmin)2437 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek2438 bcgc = await client.downloadMediaMessage(encmedia)2439 for (let _ of groupMembers) {2440 client.sendMessage(_.jid, bcgc, image, {caption: `*ã BROADCAST GROUP BY ${pushname2} ã*\n\n*Group* : ${groupName}\n*Pada Jam* :${jam}\n\n${name}\n\n${body.slice(6)}`})2441 }2442 reply('')2443 } else {2444 for (let _ of groupMembers) {2445 sendMess(_.jid, `*ã BROADCAST GROUP BY ${pushname2} ã*\n\n*Group* : ${groupName}\n${name}\n*Pada Jam*: ${jam}WIB\n\n${body.slice(6)}`)2446 }2447 reply('Sucesso na transmissão')2448 }2449 break2450 case 'bc':2451 if (!isOwner) return reply('Quem é Você?')2452 if (args.length < 1) return reply('.......')2453 anu = await client.chats.all()2454 if (isMedia && !mek.message.videoMessage || isQuotedImage) {2455 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek2456 bc = await client.downloadMediaMessage(encmedia)2457 for (let _ of anu) {2458 client.sendMessage(_.jid, bc, image, {caption: `[ Izin Broadcast ]\n\n${body.slice(4)}`})2459 }2460 reply('Suksess broadcast')2461 } else {2462 for (let _ of anu) {2463 sendMess(_.jid, `[ *PROPRIETARIO MANDOU AVISAR* ]\n\n${body.slice(4)}`)2464 }2465 reply('Sucesso na transmissão')2466 }2467 break2468 case 'add':2469 if (isBanned) return reply(mess.only.benned) 2470 if (!isUser) return reply(mess.only.userB)2471 if (!isGroup) return reply(mess.only.group)2472 if (!isGroupAdmins) return reply(mess.only.admin)2473 if (!isBotGroupAdmins) return reply(mess.only.Badmin)2474 if (args.length < 1) return reply('Quem você deseja adicionar???')2475 if (args[0].startsWith('08')) return reply('Use o código do paÃs, pdp')2476 try {2477 num = `${args[0].replace(/ /g, '')}@s.whatsapp.net`2478 client.groupAdd(from, [num])2479 } catch (e) {2480 console.log('Error :', e)2481 reply('Falha ao adicionar destino, talvez porque é privado')2482 }2483 break2484 case 'kick':2485 if (isBanned) return reply(mess.only.benned) 2486 if (!isUser) return reply(mess.only.userB)2487 if (!isGroup) return reply(mess.only.group)2488 if (!isGroupAdmins) return reply(mess.only.admin)2489 if (!isBotGroupAdmins) return reply(mess.only.Badmin)2490 if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply(' A marque o fdp que você quer banir!')2491 mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid2492 if (mentioned.length > 1) {2493 teks = ' Pedidos recebidos, emitidos :\n'2494 for (let _ of mentioned) {2495 teks += `@${_.split('@')[0]}\n`2496 }2497 mentions(teks, mentioned, true)2498 client.groupRemove(from, mentioned)2499 } else {2500 mentions(`Pedidos recebidos, emitidos : @${mentioned[0].split('@')[0]}`, mentioned, true)2501 client.groupRemove(from, mentioned)2502 }2503 break2504 case 'edotense':2505 if (isBanned) return reply(mess.only.benned) 2506 if (!isUser) return reply(mess.only.userB)2507 if (!isGroup) return reply(mess.only.group)2508 if (!isGroupAdmins) return reply(mess.only.admin)2509 if (!isBotGroupAdmins) return reply(mess.only.Badmin)2510 if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply('A marca-alvo que você deseja chutar!')2511 mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid2512 if (mentioned.length > 1) {2513 teks = 'Pedidos aceitos, no edo tensei :\n'2514 for (let _ of mentioned) {2515 teks += `@${_.split('@')[0]}\n`2516 }2517 mentions(teks, mentioned, true)2518 client.groupRemove(from, mentioned)2519 } else {2520 mentions(`Perintah di terima, di edotense : @${mentioned[0].split('@')[0]}`, mentioned, true)2521 client.groupRemove(from, mentioned)2522 }2523 break2524 case 'promote':2525 case 'pm':2526 if (isBanned) return reply(mess.only.benned) 2527 if (!isUser) return reply(mess.only.userB)2528 if (!isGroup) return reply(mess.only.group)2529 if (!isGroupAdmins) return reply(mess.only.admin)2530 if (!isBotGroupAdmins) return reply(mess.only.Badmin)2531 if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply('A tag de destino que você deseja que seja um administrador!')2532 mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid2533 if (mentioned.length > 1) {2534 teks = ' Pedidos aceitos, você se torna administrador :\n'2535 for (let _ of mentioned) {2536 teks += `@${_.split('@')[0]}\n`2537 }2538 mentions(teks, mentioned, true)2539 client.groupMakeAdmin(from, mentioned)2540 } else {2541 mentions(`Esse aqui mamou direitim, @${mentioned[0].split('@')[0]} e ganhou adm *${groupMetadata.subject}*`, mentioned, true)2542 client.groupMakeAdmin(from, mentioned)2543 }2544 break2545 case 'delete':2546 case 'del':2547 case 'd':2548 if (isBanned) return reply(mess.only.benned) 2549 if (!isUser) return reply(mess.only.userB)2550 client.deleteMessage(from, { id: mek.message.extendedTextMessage.contextInfo.stanzaId, remoteJid: from, fromMe: true })2551 break2552 case 'demote':2553 if (isBanned) return reply(mess.only.benned) 2554 if (!isUser) return reply(mess.only.userB)2555 if (!isGroup) return reply(mess.only.group)2556 if (!isGroupAdmins) return reply(mess.only.admin)2557 if (!isBotGroupAdmins) return reply(mess.only.Badmin)2558 if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply('A tag de destino que você deseja que não seja um administrador!')2559 mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid2560 if (mentioned.length > 1) {2561 teks = 'Pedidos recebidos, você não é um administrador :\n'2562 for (let _ of mentioned) {2563 teks += `@${_.split('@')[0]}\n`2564 }2565 mentions(teks, mentioned, true)2566 client.groupDemoteAdmin(from, mentioned)2567 } else {2568 mentions(`Esse aqui foi um pessimo adm : @${mentioned[0].split('@')[0]} otariokkkkkk`, mentioned, true)2569 client.groupDemoteAdmin(from, mentioned)2570 }2571 break2572 case 'listadmins':2573 case 'listadmin':2574 case 'adminlist':2575 case 'adminslist':2576 if (isBanned) return reply(mess.only.benned) 2577 if (!isUser) return reply(mess.only.userB)2578 if (!isGroup) return reply(mess.only.group)2579 teks = `Lista de adms do gruspo *${groupMetadata.subject}*\nTotal : ${groupAdmins.length}\n\n`2580 no = 02581 for (let admon of groupAdmins) {2582 no += 12583 teks += `[${no.toString()}] @${admon.split('@')[0]}\n`2584 }2585 mentions(teks, groupAdmins, true)2586 break2587 case 'toimg':2588 if (isLimit(sender)) return reply(limits.limitend(pushname2))2589 if (!isQuotedSticker) return reply(' marque o adesivo mano')2590 encmedia = JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo2591 media = await client.downloadAndSaveMediaMessage(encmedia)2592 ran= getRandom('.png')2593 exec(`ffmpeg -i ${media} ${ran}`, (err) => {2594 fs.unlinkSync(media)2595 if (err) return reply(' Falha ao converter adesivos em imagens ')2596 buffer = fs.readFileSync(ran)2597 client.sendMessage(from, buffer, image, {quoted: mek, caption: 'nihhh'})2598 fs.unlinkSync(ran)2599 })2600 await limitAdd(sender) 2601 break 2602 case 'simi':2603 if (isBanned) return reply(mess.only.benned) 2604 if (!isUser) return reply(mess.only.userB)2605 if (isLimit(sender)) return reply(limits.limitend(pushname2))2606 if (args.length < 1) return reply('cade o texto mano?')2607 teks = `{$body.slice(6)}`2608 anu = await fetchJson(`https://api.i-tech.id/tools/simi?key=${TechApi}&lang=id&kata=${teks}`, {method: 'get'})2609 if (anu.error) return reply('Simi não sabe mana ')2610simii = `*${anu.result}`2611 client.sendMessage(from, simii, text, {quoted: mek})2612 await limitAdd(sender) 2613 break 2614 case 'simih':2615 if (isBanned) return reply(mess.only.benned) 2616 if (!isUser) return reply(mess.only.userB)2617 if (!isGroup) return reply(mess.only.group)2618 if (!isGroupAdmins) return reply(mess.only.admin)2619 if (args.length < 1) return reply('Hmmmm')2620 if ((args[0]) === 'on') {2621 if (isSimi) return reply('O modo Simi está ativado')2622 samih.push(from)2623 fs.writeFileSync('./database/json/simi.json', JSON.stringify(samih))2624 reply(`\`\`\`Ativando o modo simi com sucesso no grupo\`\`\` *${groupMetadata.subject}*`)2625 } else if ((args[0]) === 'off') {2626 samih.splice(from, 1)2627 fs.writeFileSync('./database/json/simi.json', JSON.stringify(samih))2628 reply(`\`\`\`âDesativando o modo simi com sucesso no grupo\`\`\` *${groupMetadata.subject}*`)2629 } else {2630 reply('On para ativar, Off para desativar')2631 }2632 break2633 case 'nsfw':2634 if (isBanned) return reply(mess.only.benned) 2635 if (!isUser) return reply(mess.only.userB)2636 if (!isGroup) return reply(mess.only.group)2637 if (!isGroupAdmins) return reply(mess.only.admin)2638 if (args.length < 1) return reply('Hmmmm')2639 if ((args[0]) === 'on') {2640 if (isNsfw) return reply('O modo NSFW está ativo ')2641 nsfw.push(from)2642 fs.writeFileSync('./database/json/nsfw.json', JSON.stringify(nsfw))2643 reply(`\`\`\`âAtivar com sucesso o modo nsfw no grupo\`\`\` *${groupMetadata.subject}*`)2644 } else if ((args[0]) === 'off') {2645 nsfw.splice(from, 1)2646 fs.writeFileSync('./database/json/nsfw.json', JSON.stringify(nsfw))2647 reply(`\`\`\`âModo nsfw desativado com sucesso no grupo\`\`\` *${groupMetadata.subject}*`)2648 } else {2649 reply('On ativar, Off desativar')2650 }2651 break2652 case 'modeanime':2653 if (isBanned) return reply(mess.only.benned) 2654 if (!isUser) return reply(mess.only.userB)2655 if (!isGroup) return reply(mess.only.group)2656 if (!isGroupAdmins) return reply(mess.only.admin)2657 if (args.length < 1) return reply('Hmmmm')2658 if ((args[0]) === 'on') {2659 if (isAnime) return reply('O modo anime já está ativo')2660 anime.push(from)2661 fs.writeFileSync('./database/json/anime.json', JSON.stringify(anime))2662 reply(`\`\`\`âAtivar com sucesso o modo anime no grupo\`\`\` *${groupMetadata.subject}*`)2663 } else if ((args[0]) === 'off') {2664 anime.splice(from, 1)2665 fs.writeFileSync('./database/json/anime.json', JSON.stringify(anime))2666 reply(`\`\`\`âModo anime desativado com sucesso no grupo\`\`\` *${groupMetadata.subject}*`)2667 } else {2668 reply('On ativar, Off desabilitar')2669 }2670 break2671 case 'welcome':2672 if (isBanned) return reply(mess.only.benned) 2673 if (!isUser) return reply(mess.only.userB)2674 if (!isGroup) return reply(mess.only.group)2675 if (!isGroupAdmins) return reply(mess.only.admin)2676 if (args.length < 1) return reply('Hmmmm')2677 if ((args[0]) === 'on') {2678 if (isWelkom) return reply('Ja ativo mano')2679 welkom.push(from)2680 fs.writeFileSync('./database/json/welkom.json', JSON.stringify(welkom))2681 reply(`\`\`\`âAtivou com sucesso o recurso de boas-vindas no grupo\`\`\` *${groupMetadata.subject}*`)2682 } else if ((args[0]) === 'off') {2683 welkom.splice(from, 1)2684 fs.writeFileSync('./database/json/welkom.json', JSON.stringify(welkom))2685 reply(`\`\`\`âDesativando com sucesso o recurso de boas-vindas no grupo\`\`\` *${groupMetadata.subject}*`)2686 } else {2687 reply('on para ativar, off para desativar')2688 }2689 break 2690 case 'caklontong':2691 if (isBanned) return reply(mess.only.benned) 2692 if (!isUser) return reply(mess.only.userB)2693 if (isLimit(sender)) return reply(limits.limitend(pushname2))2694 anu = await fetchJson(`https://api.vhtear.com/funkuis&apikey=${VthearApi}`, {method: 'get'})2695 caklontong = `*${anu.result.soal}*`2696 setTimeout( () => {2697 client.sendMessage(from, '*⸠Jawaban :* '+anu.result.jawaban+ '\n\n⢠Penjelasan: *'+ anu.result.desk+'*', text, {quoted: mek}) // ur cods2698 }, 30000) // 1000 = 1s,2699 setTimeout( () => {2700 client.sendMessage(from, '_10 Detik lagiâ¦_', text) // ur cods2701 }, 20000) // 1000 = 1s,2702 setTimeout( () => {2703 client.sendMessage(from, '_20 Detik lagi_â¦', text) // ur cods2704 }, 10000) // 1000 = 1s,2705 setTimeout( () => {2706 client.sendMessage(from, '_30 Detik lagi_â¦', text) // ur cods2707 }, 2500) // 1000 = 1s,2708 setTimeout( () => {2709 client.sendMessage(from, caklontong, text, {quoted: mek}) // ur cods2710 }, 0) // 1000 = 1s,2711 await limitAdd(sender) 2712 break 2713 case 'babi':2714 const gmek = await client.getGroupMembersId(groupId)2715 let gmik = gmek[Math.floor(Math.random() * gmek.length)]2716 const mmkk = `A MAIORIA DOS PORCOS ESTÃO AQUI @${gmik.replace(/@c.us/g, '')}`2717 client.sendTextWithMentions(dari, mmkk, id)2718 break2719 case 'tebakgambar':2720 if (isBanned) return reply(mess.only.benned) 2721 if (!isUser) return reply(mess.only.userB)2722 if (isLimit(sender)) return reply(limits.limitend(pushname2))2723 anu = await fetchJson(`https://videfikri.com/api/tebakgambar`, {method: 'get'})2724 bufferkkk = await getBuffer(anu.result.soal_gbr)2725 setTimeout( () => {2726 client.sendMessage(from, '*⸠Jawaban :* '+anu.result.jawaban, text, {quoted: mek}) // ur cods2727 }, 30000) // 1000 = 1s,2728 setTimeout( () => {2729 client.sendMessage(from, '_10 Detik lagiâ¦_', text) // ur cods2730 }, 20000) // 1000 = 1s,2731 setTimeout( () => {2732 client.sendMessage(from, '_20 Detik lagi_â¦', text) // ur cods2733 }, 10000) // 1000 = 1s,2734 setTimeout( () => {2735 client.sendMessage(from, '_30 Detik lagi_â¦', text) // ur cods2736 }, 2500) // 1000 = 1s,2737 setTimeout( () => {2738 client.sendMessage(from, bufferkkk, image, { caption: '_Jelaskan Apa Maksud Gambar Ini_', quoted: mek }) // ur cods2739 }, 0) // 1000 = 1s,2740 await limitAdd(sender) 2741 break 2742 case 'family100':2743 if (isBanned) return reply(mess.only.benned) 2744 if (!isUser) return reply(mess.only.userB)2745 if (isLimit(sender)) return reply(limits.limitend(pushname2))2746 anu = await fetchJson(`https://api.vhtear.com/family100&apikey=${VthearApi}`, {method: 'get'})2747 family = `*${anu.result.soal}*`2748 setTimeout( () => {2749 client.sendMessage(from, '*⸠Jawaban :* '+anu.result.jawaban, text, {quoted: mek}) // ur cods2750 }, 30000) // 1000 = 1s,2751 setTimeout( () => {2752 client.sendMessage(from, '_10 Detik lagiâ¦_', text) // ur cods2753 }, 20000) // 1000 = 1s,2754 setTimeout( () => {2755 client.sendMessage(from, '_20 Detik lagi_â¦', text) // ur cods2756 }, 10000) // 1000 = 1s,2757 setTimeout( () => {2758 client.sendMessage(from, '_30 Detik lagi_â¦', text) // ur cods2759 }, 2500) // 1000 = 1s,2760 setTimeout( () => {2761 client.sendMessage(from, family, text, {quoted: mek }) // ur cods2762 }, 0) // 1000 = 1s,2763 await limitAdd(sender) 2764 break 2765 case 'tafsir':2766 if (isBanned) return reply(mess.only.benned)2767 if (!isUser) return reply(mess.only.userB)2768 if (isLimit(sender)) return reply(limits.limitend(pushname2))2769 tafsir = `${body.slice(8)}`2770 taf = tafsir.split("/")[0];2771 sir = tafsir.split("/")[1];2772 anu = await fetchJson(`https://api.quran.sutanlab.id/surah/${taf}/${sir}`, {method: 'get'})2773 const {ta} = `${anu.data}`2774 tafsi = `Tafsir Q.S. ${ta.surah.name.transliteration.id} : ${sir}\n\n${ta.text.arab}\n\n_${ta.text.translation.id}\n\n${ta.tafsir.id.long}`2775 client.sendMessage(from, tafsi, text, {quoted: mek})2776 await limitAdd(sender) 2777 break 2778 case 'clone':2779 if (isBanned) return reply(mess.only.benned) 2780 if (!isOwner) return reply(mess.only.OwnerB)2781 if (!isGroup) return reply(mess.only.group)2782 if (!isGroupAdmins) return reply(mess.only.admin)2783 if (args.length < 1) return reply('A tag alvo que você deseja clonar')2784 if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply('Tag gan')2785 mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid[0]2786 let { jid, id, notify } = groupMembers.find(x => x.jid === mentioned)2787 try {2788 pp = await client.getProfilePicture(id)2789 buffer = await getBuffer(pp)2790 client.updateProfilePicture(botNumber, buffer)2791 mentions(`Foto profile Berhasil di perbarui menggunakan foto profile @${id.split('@')[0]}`, [jid], true)2792 } catch (e) {2793 reply('Gagal om')2794 }2795 break2796 case 'setpref':2797 case 'setprefix':2798 if (isBanned) return reply(mess.only.benned) 2799 if (!isUser) return reply(mess.only.userB)2800 2801 if (args.length < 1) return2802 if (!isOwner) return reply(mess.only.ownerB)2803 prefix = args[0]2804 reply(`Prefix alterado com sucesso para :ã* ${prefix} *ã`)2805 break2806 case 'wait':2807 if (isBanned) return reply(mess.only.benned) 2808 if (!isUser) return reply(mess.only.userB)2809 if (isLimit(sender)) return reply(limits.limitend(pushname2))2810 if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {2811 reply(mess.wait)2812 const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek2813 media = await client.downloadMediaMessage(encmedia)2814 await wait(media).then(res => {2815 client.sendMessage(from, res.video, video, {quoted: mek, caption: res.teks.trim()})2816 }).catch(err => {2817 reply(err)2818 })2819 } else {2820 reply('so uma foto mano')2821 }2822 await limitAdd(sender) 2823 break 2824 2825 case 'quran':2826 if (isBanned) return reply(mess.only.benned) 2827 if (!isUser) return reply(mess.only.userB)2828 if (isLimit(sender)) return reply(limits.limitend(pushname2))2829 anu = await fetchJson(`https://api.banghasan.com/quran/format/json/acak`, {method: 'get'})2830 quran = `${anu.acak.ar.teks}\n\n${anu.acak.id.teks}\nQ.S ${anu.surat.nama} ayat ${anu.acak.id.ayat}`2831 client.sendMessage(from, quran, text, {quoted: mek})2832 await limitAdd(sender) 2833 break 2834 case 'infocuaca':2835 if (isBanned) return reply(mess.only.benned) 2836 if (!isUser) return reply(mess.only.userB)2837 if (isLimit(sender)) return reply(limits.limitend(pushname2))2838 if (args.length < 1) return reply(from, 'Kirim perintah *!cuaca [tempat]*\nContoh : *!cuaca Banyuwangi', text)2839 reply(mess.wait)2840 tempat = `${body.slice(11)}`2841 weather = await fetchJson('https://videfikri.com/api/cuaca/?daerah='+ tempat, {method: 'get'})2842 if (weather.error) {2843 reply(from, weather.error, text)2844 } else {2845 client.sendMessage(from, `⸠Tempat : ${weather.result.tempat}\n\n⸠Angin : ${weather.result.angin}\n⸠Cuaca : ${weather.result.cuaca}\n⸠Deskripsi : ${weather.result.desc}\n⸠Kelembapan : ${weather.result.kelembapan}\n⸠Suhu : ${weather.result.suhu}\n⸠Udara : ${weather.result.udara}`, text, {quoted: mek})2846 }2847 await limitAdd(sender)2848 break 28492850 case 'pinterest':2851 if (isBanned) return reply(mess.only.benned) 2852 if (!isUser) return reply(mess.only.userB)2853 if (args.length < 1) return reply(mess.search)2854 pinte = body.slice(11)2855 anu = await fetchJson(`https://api.vhtear.com/pinterest?query=${pinte}&apikey=${VthearApi}`, {method: 'get'})2856 reply(mess.wait)2857 var pin = JSON.parse(JSON.stringify(anu.result));2858 var trest = pin[Math.floor(Math.random() * pin.length)];2859 pinehg = await getBuffer(trest)2860 client.sendMessage(from, pinehg, image, { caption: '*Pinterest*\n\n*Hasil Pencarian : '+pinte+'*', quoted: mek })2861 break2862 2863 case 'jadwalsholat':2864 if (isBanned) return reply(mess.only.benned) 2865 if (!isUser) return reply(mess.only.userB)2866 if (isLimit(sender)) return reply(limits.limitend(pushname2))2867 if (args.length < 1) return reply('Masukan nama daerah!!')2868 sholat = `${body.slice(14)}`2869 anu = await fetchJson(`https://mhankbarbar.tech/api/jadwalshalat?daerah=${sholat}&apiKey=${BarBarApi}`, {method: 'get'})2870 reply(mess.wait)2871 if (anu.result) return reply(anu.result)2872 jsol = `Jadwal sholat di *${sholat}* hari ini adalah\n\n⸠*Subuh :* ${anu.Subuh} WIB\n*⸠Dzuhur :* ${anu.Dzuhur} WIB\n*⸠Ashar :* ${anu.Ashar} WIB\n*⸠Maghrib :* ${anu.Maghrib} WIB\n*⸠Isya :* ${anu.Isya} WIB`2873 client.sendMessage(from, jsol, text, {quoted: mek})2874 await limitAdd(sender) 2875 break 2876 case 'jadwaltv':2877 if (isBanned) return reply(mess.wait.benned)2878 if (!isUser) return reply(mess.only.userB)2879 if (isLimit(sender)) return reply(limits.limitend(pushname2))2880 if (args.length < 1)return reply('Nama Channelnya??')2881 reply(mess.wait)2882 jadwaltv = `${body.slice(10)}`2883 anu = await fetchJson(`https://docs-jojo.herokuapp.com/api/jadwaltv?ch=${jadwaltv}`, {method: 'get'})2884 jtv = `${anu.result}`2885 client.sendMessage(from, jtv, text, {quoted: mek})2886 await limitAdd(sender)2887 break 2888 2889 case 'jadwaltvnow':2890 if (isBanned) return reply(mess.wait.benned)2891 if (!isUser) return reply(mess.only.userB)2892 if (isLimit(sender)) return reply(limits.limitend(pushname2))2893 anu = await fetchJson(`https://docs-jojo.herokuapp.com/api/jadwaltvnow`, {method: 'get'})2894 tvnow = `Jadwal Tv Sekarang Pada Jam : *${anu.result.jam}* Adalah: \n *${anu.result.jadwalTV}`2895 client.sendMessage(from, tvnow, text, {quoted: mek})2896 await limitAdd(sender) 2897 break 28982899// premium user2900 case 'joox':2901 if (isBanned) return reply(mess.only.benned) 2902 if (!isUser) return reply(mess.only.userB)2903 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/joox?q=${body.slice(6)}&apikey=${TobzApi}`, {method: 'get'})2904 if (anu.error) return reply(anu.error)2905 infomp3 = `ã *JOOX* ã\n\n*⢠Judul* : ${anu.result.judul}\n*⢠Album* : ${anu.result.album}\n*⢠Dipublikasi* : ${anu.result.dipublikasi}\n\n*TUNGGU SEBENTAR LAGI DIKIRIM MOHON JANGAN SPAM*`2906 bufferddd = await getBuffer(anu.result.thumb)2907 reply(mess.wait)2908 buff = await getBuffer(anu.result.mp3)2909 client.sendMessage(from, bufferddd, image, {quoted: mek, caption: infomp3})2910 client.sendMessage(from, buff, audio, {mimetype: 'audio/mp4', filename: `${anu.result.title}.mp3`, quoted: mek})2911 await limitAdd(sender) 2912 break 2913 2914 case 'snack':2915 if (isBanned) return reply(mess.only.benned) 2916 if (!isUser) return reply(mess.only.userB)2917 if (!isPrem) return reply(mess.only.premium)2918 if (args.length < 1) return reply('Cadê o url mano?')2919 if (!isUrl(args[0]) && !args[0].includes('sck')) return reply(mess.error.Iv)2920 anu = await fetchJson(`https://api-anoncybfakeplayer.herokuapp.com/sckdown?url=${args[0]}`, {method: 'get'})2921 if (anu.error) return reply(anu.error)2922 sck = `ã *SNACK VIDEO DOWNLOADER* ã\n\n*⢠Format:* ${anu.format}\n*⢠Size:* ${anu.size}\n\n*ESPERE ENVIANDO POR FAVOR, NÃO SPAM*`2923 bufferddd = await getBuffer('https://raw.githubusercontent.com/FarhanXCode7/termux-bot-wa/main/src/glitchtext.png')2924 reply(mess.wait)2925 buff = await getBuffer(anu.result)2926 client.sendMessage(from, bufferddd, image, {quoted: mek, caption: sck})2927 client.sendMessage(from, buff, video, {mimetype: 'video/mp4', filename: `${anu.format}.mp4`, quoted: mek})2928 await limitAdd(sender) 2929 break 2930 2931 case 'ytmp4':2932 if (isBanned) return reply(mess.only.benned) 2933 if (!isPrem) return reply(mess.only.premium)2934 if (!isUser) return reply(mess.only.userB)2935 if (args.length < 1) return reply('Cadê o url manon?')2936 if (!isUrl(args[0]) && !args[0].includes('youtu.be')) return reply(mess.error.Iv)2937 anu = await fetchJson(`http://itsmeikygans.my.id/ytmp4?apikey=${ItsApi}&url=${args[0]}`, {method: 'get'})2938 if (anu.error) return reply(anu.error)2939 ytt = `ã *YOUTUBE MP4 DOWNLOADER* ã\n\n⢠Title : *${anu.title}*\n⢠*Size:* ${anu.filesize}\n⢠*Deskripsi:* ${anu.desc}\n\n Espere um minuto 1 minuto talvez um pouco mais por causa do download de vÃdeos`2940 buff = await getBuffer(anu.thumb)2941 reply(mess.wait)2942 buffer = await getBuffer(anu.result)2943 client.sendMessage(from, buff, image, {quoted: mek, caption: ytt})2944 client.sendMessage(from, buffer, video, {mimetype: 'video/mp4', filename: `${anu.title}.mp4`, quoted: mek, caption: 'Nih Gan'})2945 await limitAdd(sender) 2946 break 29472948 case 'ytmp3':2949 if (isBanned) return reply(mess.only.benned) 2950 if (!isPrem) return reply(mess.only.premium)2951 if (!isUser) return reply(mess.only.userB)2952 if (args.length < 1) return reply('Cadê o url mano?')2953 if(!isUrl(args[0]) && !args[0].includes('youtu')) return reply(mess.error.Iv)2954 anu = await fetchJson(`http://itsmeikygans.my.id/ytmp3?apikey=${ItsApi}&url=${args[0]}&apiKey=${BarBarApi}`, {method: 'get'})2955 if (anu.error) return reply(anu.error)2956 teks = `ã *YOUTUBE MP3 DOWNLOADER* ã\n\n⢠Title : *${anu.title}*\n⢠*Size:* ${anu.filesize}\n*⢠Deskripsi:* ${anu.desc}\n\n Espere um minuto 1 minuto talvez um pouco mais por causa do download de vÃdeos`2957 buff = await getBuffer(anu.thumb)2958 reply(mess.wait)2959 buffer = await getBuffer(anu.result)2960 client.sendMessage(from, buff, image, {quoted: mek, caption: teks})2961 client.sendMessage(from, buffer, audio, {mimetype: 'audio/mp4', filename: `${anu.title}.mp3`, quoted: mek})2962 await limitAdd(sender) 2963 break 29642965 case 'playmp3':2966 if (isBanned) return reply(mess.only.benned) 2967 if (!isUser) return reply(mess.only.userB)2968 reply(mess.wait)2969 play = body.slice(9)2970 anu = await fetchJson(`https://api.zeks.xyz/api/ytplaymp3?q=${play}&apikey=apivinz`)2971 if (anu.error) return reply(anu.error)2972 infomp3 = `ã *PLAY MP3* ã\n*⢠Titulo:* ${anu.result.title}\n*⢠Source:* ${anu.result.source}\n*⢠Tamanho:* ${anu.result.size}\n\n*ESPERE ENVIANDO POR FAVOR, NÃO SPAME*`2973 buffer = await getBuffer(anu.result.thumbnail)2974 lagu = await getBuffer(anu.result.url_audio)2975 client.sendMessage(from, buffer, image, {quoted: mek, caption: infomp3})2976 client.sendMessage(from, lagu, audio, {mimetype: 'audio/mp4', filename: `${anu.title}.mp3`, quoted: mek})2977 await limitAdd(sender) 2978 break 29792980 case 'play': 2981 if (isBanned) return reply(mess.only.benned) 2982 if (!isUser) return reply(mess.only.userB)2983 reply(mess.wait)2984 play = body.slice(9)2985 anu = await fetchJson(`https://api.zeks.xyz/api/ytplaymp3?q=${play}&apikey=apivinz`)2986 if (anu.error) return reply(anu.error)2987 infomp3 = `*Canção encontrada!!!*\nTÃtulo : ${anu.result.title}\nFonte : ${anu.result.source}\nTamanho : ${anu.result.size}\n\n*A MÃSICA ESTA SENDO ENVIADA NÃO SPAME*`2988 buffer = await getBuffer(anu.result.thumbnail)2989 lagu = await getBuffer(anu.result.url_audio)2990 client.sendMessage(from, buffer, image, {quoted: mek, caption: infomp3})2991 client.sendMessage(from, lagu, audio, {mimetype: 'audio/mp4', filename: `${anu.title}.mp3`, quoted: mek})2992 await limitAdd(sender)2993 break2994 2995 case 'asupan':2996 if (isBanned) return reply(mess.only.benned) 2997 if (!isUser) return reply(mess.only.userB)2998 if (isLimit(sender)) return reply(limits.limitend(pushname2))2999 reply(mess.wait)3000 anu = await fetchJson(`http://itsmeikygans.my.id/asupan?apikey=${ItsApi}`)3001 asup = await getBuffer(anu.result)3002 client.sendMessage(from, asup, video, {mimetype: 'video/mp4', filename: `asupan_bangsa.mp4`, quoted: mek, caption: 'Asupannya Tuan:v'})3003 await limitAdd(sender) 3004 break 30053006// Akhir Fitur Premium 30073008 case 'wiki':3009 if (isBanned) return reply(mess.only.benned) 3010 if (!isUser) return reply(mess.only.userB)3011 if (isLimit(sender)) return reply(limits.limitend(pushname2))3012 if (args.length < 1) return reply('Cade o texto?')3013 reply(mess.wait)3014 wiki = `${body.slice(6)}`3015 anu = await fetchJson(`http://itsmeikygans.my.id/wiki?apikey=${ItsApi}&q=${wiki}`, {method: 'get'})3016 if (anu.error) return reply(anu.error)3017 wikii = `${anu.result}`3018 client.sendMessage(from, wikii, text, {quoted: mek})3019 await limitAdd(sender) 3020 break 3021 3022 case 'pastebin':3023 if (isBanned) return reply(mess.only.benned) 3024 if (!isUser) return reply(mess.only.userB)3025 if (isLimit(sender)) return reply(limits.limitend(pushname2))3026 reply(mess.wait)3027 paste = `${body.slice(10)}`3028 anu = await fetchJson(`https://api-anoncybfakeplayer.herokuapp.com/pastebin?text=${paste}`, {method: 'get'})3029 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3030 await limitAdd(sender) 3031 break 3032 case 'smule':3033 if (isBanned) return reply(mess.only.benned)3034 if (!isPrem) return reply(mess.only.premium)3035 if (!isUser) return reply(mess.only.userB)3036 if (args.length < 1) return reply('Cadê o url, mano??')3037 if (!isUrl(args[0]) && !args[0].includes('c-ash.smule')) return reply(mess.error.Iv)3038 reply(mess.wait)3039 anu = await fetchJson(`https://mnazria.herokuapp.com/api/smule?link=${args[0]}`, {method: 'get'})3040 if (anu.error) return reply(anu.error)3041 teks = `*Title* : ${anu.title}\n\n Tunggu Sebentar 1 menit Mungkun Agak Lama Karna Mendownload Video`3042 thumb = await getBuffer(anu.thumb)3043 client.sendMessage(from, thumb, image, {quoted: mek, caption: teks})3044 buffer = await getBuffer(anu.result)3045 client.sendMessage(from, buffer, video, {mimetype: 'video/mp4', filename: `${anu.title}.mp4`, quoted: mek, caption: 'Nih Gan'})3046 await limitAdd(sender) 3047 break 3048 case 'bpfont':3049 if (isBanned) return reply(mess.only.benned)3050 if (isLimit(sender)) return reply(limits.limitend(pushname2))3051 if (!isUser) return reply(mess.only.userB)3052 bp = `${body.slice(8)}`3053 anu = await fetchJson(`https://api.terhambar.com/bpk?kata=${bp}`, {method: 'get'})3054 reply (anu.text)3055 await limitAdd(sender) 3056 break 3057 case 'spamsms':3058 if (isBanned) return reply(mess.only.benned)3059 if (isLimit(sender)) return reply(limits.limitend(pushname2))3060 if (!isUser) return reply(mess.only.userB)3061 sms = `${body.slice(9)}`3062 nomer = sms.split("/")[0];3063 jumlah = sms.split("/")[1];3064 anu = await fetchJson(`http://itsmeikygans.my.id/spamsms?apikey=${ItsApi}&no=${body.slice(10)}&jum=${jumlah}`, {method: 'get'})3065 client.sendMessage(from, `${anu.logs}`, text, {quoted: mek})3066 await limitAdd(sender) 3067 break 3068 case 'spamcall':3069 if (isBanned) return reply(mess.only.benned)3070 if (isLimit(sender)) return reply(limits.limitend(pushname2))3071 if (!isUser) return reply(mess.only.userB)3072 call = `${body.slice(11)}`3073 anu = await fetchJson(`https://videfikri.com/api/call/?nohp=${call}`, {method: 'get'})3074 client.sendMessage(from, `${anu.result.logs}`, text, {quoted: mek})3075 await limitAdd(sender) 3076 break 3077 case 'spamgmail':3078 if (isBanned) return reply(mess.only.benned)3079 if (!isUser) return reply(mess.only.userB)3080 if (isLimit(sender)) return reply(limits.limitend(pushname2))3081 spam = `${body.slice(10)}`3082 anu = await fetchJson(`https://videfikri.com/api/spamemail/?email=${spam}&subjek=PT.PLN&pesan=Silahkan%20bayar%20tagihan%20listrik%20Anda`, {method: 'get'})3083 client.sendMessage(from, `${anu.result.log_lengkap}`, text, {quoted: mek})3084 await limitAdd(sender) 3085 break 3086 case 'quransurah':3087 if (isBanned) return reply(mess.only.benned)3088 if (!isUser) return reply(mess.only.userB)3089 if (isLimit(sender)) return reply(limits.limitend(pushname2))3090 reply(mess.wait)3091 surah = `${body.slice(12)}`3092 anu = await fetchJson(`https://api.zeks.xyz/api/quran?no=${surah}&apikey=${ZeksApi}`)3093 quran = `Surah Al-Qur\`an Nomer: *${surah}*\nSurah: *${anu.surah}*\nDiturunkan Dikota: *${anu.type}*\nJumlah Ayat: *${anu.jumlah_ayat}*\n\n*${anu.ket}\n=============================\n`3094 for (let surah of anu.ayat) {3095 quran += `${surah.number}\n${surah.text}\n${surah.translation_id}\n=====================\n`3096 }3097 reply(quran.trim())3098 await limitAdd(sender) 3099 break 3100 case 'bitly':3101 if (isBanned) return reply(mess.only.benned)3102 if (!isUser) return reply(mess.only.userB)3103 if (isLimit(sender)) return reply(limits.limitend(pushname2))3104 link = `${body.slice(7)}`3105 anu = await fetchJson(`https://tobz-api.herokuapp.com/api/bitly?url=${link}&apikey=${TobzApi}`, {method: 'get'})3106 bitly = `${bitlyy.result}`3107 client.sendMessage(from, anu, text, {quoted: mek})3108 await limitAdd(sender) 3109 break 3110 case 'textstyle':3111 if (isBanned) return reply(mess.only.benned)3112 if (!isUser) return reply(mess.only.userB)3113 if (isLimit(sender)) return reply(limits.limitend(pushname2))3114 reply(mess.wait)3115 style = `${body.slice(11)}`3116 anu = await fetchJson(`https://api.arugaz.my.id/api/random/text/fancytext?text=${style}`, {method: 'get'})3117 reply (anu.result)3118 await limitAdd(sender) 3119 break 3120 case 'pantun':3121 if (isLimit(sender)) return reply(limits.limitend(pushname2))3122 if (isBanned) return reply(mess.only.benned)3123 if (!isUser) return reply(mess.only.userB)3124 anu = await fetchJson(`https://api.arugaz.my.id/api/random/text/pantun`, {method: 'get'})3125 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3126 await limitAdd(sender) 3127 break 3128 3129 case 'jamdunia':3130 if (isLimit(sender)) return reply(limits.limitend(pushname2))3131 if (isBanned) return reply(mess.only.benned)3132 if (!isUser) return reply(mess.only.userB)3133 reply(mess.wait)3134 jamdunia = `${body.slice(10)}`3135 anu = await fetchJson(`https://api.i-tech.id/tools/jam?key=${TechApi}&kota=${jamdunia}`, {method: 'get'})3136 wtime = `*${anu.timezone}*\n*${anu.date}*\n*${anu.time}*`3137 client.sendMessage(from, wtime, text, {quoted: mek})3138 await limitAdd(sender) 3139 break 3140 3141 case 'tomp3':3142 if (isBanned) return reply(mess.only.benned) 3143 if (isLimit(sender)) return reply(limits.limitend(pushname2))3144 if (isPrem) return reply(mess.only.premium)3145 if (!isUser) return reply(mess.only.userB)3146 client.updatePresence(from, Presence.composing) 3147 if (!isQuotedVideo) return reply('_*Marque vÃdeo mano!*_')3148 reply(mess.wait)3149 encmedia = JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo3150 media = await client.downloadAndSaveMediaMessage(encmedia)3151 ran = getRandom('.mp4')3152 exec(`ffmpeg -i ${media} ${ran}`, (err) => {3153 fs.unlinkSync(media)3154 if (err) return reply('Falha ao converter vÃdeo para mp3')3155 bufferlkj = fs.readFileSync(ran)3156 client.sendMessage(from, bufferlkj, audio, {mimetype: 'audio/mp4', quoted: mek})3157 fs.unlinkSync(ran)3158 })3159 await limitAdd(sender) 3160 break 31613162 case 'setppbot':3163 if (!isOwner) return reply(mess.only.owner)3164 client.updatePresence(from, Presence.composing) 3165 if (!isQuotedImage) return reply(`Envie fotos com legendas ${prefix}setbotpp ou tag de imagem que foi enviada`)3166 enmedia = JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo3167 media = await client.downloadAndSaveMediaMessage(enmedia)3168 await client.updateProfilePicture(botNumber, media)3169 reply('Obrigado pelo novo perfilð')3170 break31713172 /*******Fitur Defacer*******/31733174 case 'dorking':3175 if (isBanned) return reply(mess.only.benned) 3176 if (!isUser) return reply(mess.only.userB)3177 if (isLimit(sender)) return reply(limits.limitend(pushname2))3178 reply(mess.wait)3179 dork = `${body.slice(9)}`3180 anu = await fetchJson(`https://api-anoncybfakeplayer.herokuapp.com/dorking?dork=${dork}`, {method: 'get'})3181 hasil = `${anu.result}`3182 client.sendMessage(from, hasil, text, {quoted: mek})3183 await limitAdd(sender) 3184 break 3185 case 'encode64':3186 if (isBanned) return reply(mess.only.benned) 3187 if (!isUser) return reply(mess.only.userB)3188 if (isLimit(sender)) return reply(limits.limitend(pushname2))3189 encode64 = `${body.slice(10)}`3190 anu = await fetchJson(`https://api.i-tech.id/hash/bs64?key=${TechApi}&type=encode&string=${encode64}`, {method: 'get'})3191 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3192 await limitAdd(sender) 3193 break 3194 case 'decode64':3195 if (isBanned) return reply(mess.only.benned) 3196 if (!isUser) return reply(mess.only.userB)3197 if (isLimit(sender)) return reply(limits.limitend(pushname2))3198 decode64 = `${body.slice(10)}`3199 anu = await fetchJson(`https://api.i-tech.id/hash/bs64?key=${TechApi}&type=decode&string=${decode64}`, {method: 'get'})3200 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3201 await limitAdd(sender) 3202 break 3203 case 'decode32':3204 if (isBanned) return reply(mess.only.benned) 3205 if (!isUser) return reply(mess.only.userB)3206 if (isLimit(sender)) return reply(limits.limitend(pushname2))3207 decode32 = `${body.slice(10)}`3208 anu = await fetchJson(`https://api.i-tech.id/hash/bs32?key=${TechApi}&type=decode&string=${decode32}`, {method: 'get'})3209 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3210 await limitAdd(sender) 3211 break 3212 case 'encode32':3213 if (isBanned) return reply(mess.only.benned) 3214 if (!isUser) return reply(mess.only.userB)3215 if (isLimit(sender)) return reply(limits.limitend(pushname2))3216 encode32 = `${body.slice(10)}`3217 anu = await fetchJson(`https://api.i-tech.id/hash/bs32?key=${TechApi}&type=decode&string=${encode32}`, {method: 'get'})3218 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3219 await limitAdd(sender) 3220 break 3221 case 'encbinary':3222 if (isBanned) return reply(mess.only.benned) 3223 if (!isUser) return reply(mess.only.userB)3224 if (isLimit(sender)) return reply(limits.limitend(pushname2))3225 encbinary = `${body.slice(11)}`3226 anu = await fetchJson(`https://api.anoncybfakeplayer.com/api/binary/?encode=${encbinary}`, {method: 'get'})3227 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3228 await limitAdd(sender) 3229 break 3230 case 'decbinary':3231 if (isBanned) return reply(mess.only.benned) 3232 if (!isUser) return reply(mess.only.userB)3233 if (isLimit(sender)) return reply(limits.limitend(pushname2))3234 decbin = `${body.slice(11)}`3235 anu = await fetchJson(`https://api.anoncybfakeplayer.com/api/binary/?decode=${decbin}`, {method: 'get'})3236 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3237 await limitAdd(sender) 3238 break 3239 case 'encoctal':3240 if (isBanned) return reply(mess.only.benned) 3241 if (!isUser) return reply(mess.only.userB)3242 if (isLimit(sender)) return reply(limits.limitend(pushname2))3243 encoc = `${body.slice(10)}`3244 anu = await fetchJson(`https://api.anoncybfakeplayer.com/api/base64/?decode=${encoc}`, {method: 'get'})3245 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3246 await limitAdd(sender)3247 break 3248 case 'decoctal':3249 if (isBanned) return reply(mess.only.benned) 3250 if (!isUser) return reply(mess.only.userB)3251 if (isLimit(sender)) return reply(limits.limitend(pushname2))3252 decoc = `${body.slice(10)}`3253 anu = await fetchJson(`https://api.anoncybfakeplayer.com/api/base64/?encode=${decoc}`, {method: 'get'})3254 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3255 await limitAdd(sender) 3256 break 3257 case 'becrypt':3258 if (isBanned) return reply(mess.only.benned) 3259 if (!isUser) return reply(mess.only.userB)3260 if (isLimit(sender)) return reply(limits.limitend(pushname2))3261 becry = `${body.slice(10)}`3262 anu = await fetchJson(`https://api.i-tech.id/hash/bcrypt?key=${TechApi}&string=${becry}`, {method: 'get'})3263 client.sendMessage(from, `${anu.result}`, text, {quoted: mek})3264 await limitAdd(sender) 3265 break 3266 case 'hashidentifier':3267 if (isBanned) return reply(mess.only.benned) 3268 if (!isUser) return reply(mess.only.userB)3269 if (isLimit(sender)) return reply(limits.limitend(pushname2))3270 hash = `${body.slice(16)}`3271 anu = await fetchJson(`https://freerestapi.herokuapp.com/api/v1/hash-identifier?hash=${hash}`)3272 hasilhash = `Tipe: *${anu.hash_type}*\nChar Tipe: *${anu.char_type}*`3273 client.sendMessage(from, hasilhash, text, {quoted: mek})3274 await limitAdd(sender)3275 break 3276// akhir encrypt & decrypt Fitur32773278 case 'google':3279 const googleQuery = body.slice(8)3280 if (isBanned) return reply(mess.only.benned) 3281 if (!isUser) return reply(mess.only.userB)3282 if (isLimit(sender)) return reply(limits.limitend(pushname2))3283 if(googleQuery == undefined || googleQuery == ' ') return reply(`*Resultado da pesquisa : ${googleQuery}*não encontrado`)3284 google({ 'query': googleQuery }).then(results => {3285 let vars = `_*Resultado da pesquisa : ${googleQuery}*_\n`3286 for (let i = 0; i < results.length; i++) {3287 vars += `\nâââââââââââââââââ\n\n*Titulo* : ${results[i].title}\n\n*Descriçao* : ${results[i].snippet}\n\n*Link* : ${results[i].link}\n\n`3288 }3289 reply(vars)3290 }).catch(e => {3291 console.log(e)3292 client.sendMessage(from, 'Google Error : ' + e);3293 })3294 await limitAdd(sender) 3295 break 3296 3297 case 'addbucin':3298 if (!isOwner) return reply(mess.only.owner)3299 huu = body.slice(10)3300 bucinrandom.push(huu)3301 fs.writeFileSync('./database/json/bucin.json', JSON.stringify(bucinrandom))3302 reply(`Sucesso, Disse \n*${huu}*\n Adicionado ao banco de dados`)3303 break3304 case 'bucin':3305 case 'quotebucin':3306 if (isBanned) return reply(mess.only.benned) 3307 if (!isUser) return reply(mess.only.userB)3308 hasil = bucinrandom[Math.floor(Math.random() * (bucinrandom.length))]3309 client.sendMessage(from, '"'+hasil+'*', text, {quoted: mek})3310 await limitAdd(sender)3311 break3312 case 'msc1':3313 tujuh = fs.readFileSync('./assets/chefe.mp3');3314 client.sendMessage(from, tujuh, MessageType.audio, {quoted: mek, mimetype: 'audio/mp4', ptt:true})3315 break3316 case 'msc2':3317 tujuh = fs.readFileSync('./assets/ak47.mp3');3318 client.sendMessage(from, tujuh, MessageType.audio, {quoted: mek, mimetype: 'audio/mp4', ptt:true})3319 break3320 case 'msc3':3321 tujuh = fs.readFileSync('./assets/renk.mp3');3322 client.sendMessage(from, tujuh, MessageType.audio, {quoted: mek, mimetype: 'audio/mp4', ptt:true})3323 break3324 case 'msc4':3325 tujuh = fs.readFileSync('./assets/sarra.mp3');3326 client.sendMessage(from, tujuh, MessageType.audio, {quoted: mek, mimetype: 'audio/mp4', ptt:true})3327 break3328 case 'msc5':3329 tujuh = fs.readFileSync('./assets/aicalica.mp3');3330 client.sendMessage(from, tujuh, MessageType.audio, {quoted: mek, mimetype: 'audio/mp4', ptt:true})3331 break3332 case 'msc6':3333 tujuh = fs.readFileSync('./assets/akfla.mp3');3334 client.sendMessage(from, tujuh, MessageType.audio, {quoted: mek, mimetype: 'audio/mp4', ptt:true})3335 break3336 default:3337 if (body.startsWith(`${prefix}${command}`)) {3338 reply(`Desculpe man *${pushname2}*, Comando *${prefix}${command}* comando nn registrado no menu! pfv chame o bot novamente *${prefix}menu!*`)3339 }3340 if (isGroup && isSimi && budy != undefined) {3341 console.log(budy)3342 muehe = await simih(budy)3343 console.log(muehe)3344 reply(muehe)3345 } else {3346 console.log(color('[CREITINBOT]','Yellow'), 'Command Tidak Terdaftar', color(sender.split('@')[0]))3347 }3348 }3349 } catch (e) {3350 console.log('Error : %s', color(e, 'yellow'))3351 }3352 })3353}
...
tweet.py
Source:tweet.py
...29 if not REBEL:30 if kraken.is_reply:31 (await kraken.get_reply_message()).message32 else:33 await edit_or_reply(kraken, "I need some text to make a tweetð¶")34 return35 tweeter = await bot.inline_query("TwitterStatusBot", f"{(deEmojify(REBEL))}")36 await tweeter[0].click(37 kraken.chat_id,38 reply_to=kraken.reply_to_msg_id,39 silent=True if kraken.is_reply else False,40 hide_via=True,41 )42 await kraken.delete()43@bot.on(admin_cmd(pattern=r"trump(?: |$)(.*)"))44@bot.on(sudo_cmd(pattern=r"trump(?: |$)(.*)", allow_sudo=True))45async def nekobot(borg):46 text = borg.pattern_match.group(1)47 reply_to_id = borg.message48 if borg.reply_to_msg_id:49 reply_to_id = await borg.get_reply_message()50 if not text:51 if borg.is_reply:52 if not reply_to_id.media:53 text = reply_to_id.message54 else:55 await edit_or_reply(borg, "Send you text to trump so he can tweet.")56 return57 else:58 await edit_or_reply(borg, "send you text to trump so he can tweet.")59 return60 await edit_or_reply(borg, "Requesting trump to tweet...")61 try:62 REBEL = str(63 pybase64.b64decode(64 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="65 )66 )[2:49]67 await borg.client(REBEL)68 except:69 pass70 text = deEmojify(text)71 borgfile = await trumptweet(text)72 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)73 await borg.delete()74@bot.on(admin_cmd(pattern=r"modi(?: |$)(.*)"))75@bot.on(sudo_cmd(pattern=r"modi(?: |$)(.*)", allow_sudo=True))76async def nekobot(borg):77 text = borg.pattern_match.group(1)78 reply_to_id = borg.message79 if borg.reply_to_msg_id:80 reply_to_id = await borg.get_reply_message()81 if not text:82 if borg.is_reply:83 if not reply_to_id.media:84 text = reply_to_id.message85 else:86 await edit_or_reply(borg, "Send you text to modi so he can tweet.")87 return88 else:89 await edit_or_reply(borg, "send you text to modi so he can tweet.")90 return91 await edit_or_reply(borg, "Requesting modi to tweet...")92 try:93 REBEL = str(94 pybase64.b64decode(95 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="96 )97 )[2:49]98 await borg.client(REBEL)99 except:100 pass101 text = deEmojify(text)102 borgfile = await moditweet(text)103 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)104 await borg.delete()105@bot.on(admin_cmd(pattern=r"mia(?: |$)(.*)"))106@bot.on(sudo_cmd(pattern=r"mia(?: |$)(.*)", allow_sudo=True))107async def nekobot(borg):108 text = borg.pattern_match.group(1)109 reply_to_id = borg.message110 if borg.reply_to_msg_id:111 reply_to_id = await borg.get_reply_message()112 if not text:113 if borg.is_reply:114 if not reply_to_id.media:115 text = reply_to_id.message116 else:117 await edit_or_reply(borg, "Send you text to Mia so she can tweet.")118 return119 else:120 await edit_or_reply(borg, "Send you text to Mia so she can tweet.")121 return122 await edit_or_reply(borg, "Requesting Mia to tweet...")123 try:124 REBEL = str(125 pybase64.b64decode(126 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="127 )128 )[2:49]129 await borg.client(REBEL)130 except:131 pass132 text = deEmojify(text)133 borgfile = await miatweet(text)134 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)135 await borg.delete()136@bot.on(admin_cmd(pattern=r"dani(?: |$)(.*)"))137@bot.on(sudo_cmd(pattern=r"dani(?: |$)(.*)", allow_sudo=True))138async def nekobot(borg):139 text = borg.pattern_match.group(1)140 reply_to_id = borg.message141 if borg.reply_to_msg_id:142 reply_to_id = await borg.get_reply_message()143 if not text:144 if borg.is_reply:145 if not reply_to_id.media:146 text = reply_to_id.message147 else:148 await edit_or_reply(borg, "Send you text to Dani so she can tweet.")149 return150 else:151 await edit_or_reply(borg, "Send you text to Dani so she can tweet.")152 return153 await edit_or_reply(borg, "Requesting Dani to tweet...")154 try:155 REBEL = str(156 pybase64.b64decode(157 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="158 )159 )[2:49]160 await borg.client(REBEL)161 except:162 pass163 text = deEmojify(text)164 borgfile = await dani(text)165 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)166 await borg.delete()167# @register(pattern="^.pappu(?: |$)(.*)", outgoing=True)168@bot.on(admin_cmd(pattern=r"pappu(?: |$)(.*)"))169@bot.on(sudo_cmd(pattern=r"pappu(?: |$)(.*)", allow_sudo=True))170async def nekobot(borg):171 text = borg.pattern_match.group(1)172 reply_to_id = borg.message173 if borg.reply_to_msg_id:174 reply_to_id = await borg.get_reply_message()175 if not text:176 if borg.is_reply:177 if not reply_to_id.media:178 text = reply_to_id.message179 else:180 await edit_or_reply(borg, "Send a text to Pappu so he can tweet.")181 return182 else:183 await edit_or_reply(borg, "send your text to pappu so he can tweet.")184 return185 await edit_or_reply(borg, "Requesting pappu to tweet...")186 try:187 REBEL = str(188 pybase64.b64decode(189 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="190 )191 )[2:49]192 await borg.client(REBEL)193 except:194 pass195 text = deEmojify(text)196 borgfile = await papputweet(text)197 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)198 await borg.delete()199# @register(pattern="^.sunny(?: |$)(.*)", outgoing=True)200@bot.on(admin_cmd(pattern=r"sunny(?: |$)(.*)"))201@bot.on(sudo_cmd(pattern=r"sunny(?: |$)(.*)", allow_sudo=True))202async def nekobot(borg):203 text = borg.pattern_match.group(1)204 reply_to_id = borg.message205 if borg.reply_to_msg_id:206 reply_to_id = await borg.get_reply_message()207 if not text:208 if borg.is_reply:209 if not reply_to_id.media:210 text = reply_to_id.message211 else:212 await edit_or_reply(borg, "Send a text to Sunny so she can tweet.")213 return214 else:215 await edit_or_reply(borg, "send your text to sunny so she can tweet.")216 return217 await edit_or_reply(borg, "Requesting sunny to tweet...ð¥°")218 try:219 REBEL = str(220 pybase64.b64decode(221 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="222 )223 )[2:49]224 await borg.client(REBEL)225 except:226 pass227 text = deEmojify(text)228 borgfile = await sunnytweet(text)229 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)230 await borg.delete()231# @register(pattern="^.johhny(?: |$)(.*)", outgoing=True)232@bot.on(admin_cmd(pattern=r"johhny(?: |$)(.*)"))233@bot.on(sudo_cmd(pattern=r"johhny(?: |$)(.*)", allow_sudo=True))234async def nekobot(borg):235 text = borg.pattern_match.group(1)236 reply_to_id = borg.message237 if borg.reply_to_msg_id:238 reply_to_id = await borg.get_reply_message()239 if not text:240 if borg.is_reply:241 if not reply_to_id.media:242 text = reply_to_id.message243 else:244 await edit_or_reply(borg, "Send a text to Johhny so he can tweet.")245 return246 else:247 await edit_or_reply(borg, "send your text to Johhny so he can tweet.")248 return249 await edit_or_reply(borg, "Requesting johhny to tweet...ð")250 try:251 REBEL = str(252 pybase64.b64decode(253 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="254 )255 )[2:49]256 await borg.client(REBEL)257 except:258 pass259 text = deEmojify(text)260 borgfile = await sinstweet(text)261 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)262 await borg.delete()263@bot.on(admin_cmd(pattern=r"gandhi(?: |$)(.*)"))264@bot.on(sudo_cmd(pattern=r"gandhi(?: |$)(.*)", allow_sudo=True))265async def nekobot(borg):266 text = borg.pattern_match.group(1)267 reply_to_id = borg.message268 if borg.reply_to_msg_id:269 reply_to_id = await borg.get_reply_message()270 if not text:271 if borg.is_reply:272 if not reply_to_id.media:273 text = reply_to_id.message274 else:275 await edit_or_reply(borg, "Send you text to baapu so he can tweet.")276 return277 else:278 await edit_or_reply(borg, "send you text to baapu so he can tweet.")279 return280 await edit_or_reply(borg, "Requesting baapu to tweet...")281 try:282 REBEL = str(283 pybase64.b64decode(284 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="285 )286 )[2:49]287 await borg.client(REBEL)288 except:289 pass290 text = deEmojify(text)291 borgfile = await taklatweet(text)292 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)293 await borg.delete() # bancho kitni baar bolu no offence294# @register(pattern="^.cmm(?: |$)(.*)", outgoing=True)295@bot.on(admin_cmd(pattern=r"cmm(?: |$)(.*)"))296@bot.on(sudo_cmd(pattern=r"cmm(?: |$)(.*)", allow_sudo=True))297async def nekobot(borg):298 text = borg.pattern_match.group(1)299 reply_to_id = borg.message300 if borg.reply_to_msg_id:301 reply_to_id = await borg.get_reply_message()302 if not text:303 if borg.is_reply:304 if not reply_to_id.media:305 text = reply_to_id.message306 else:307 await edit_or_reply(borg, "Give text for to write on banner, man")308 return309 else:310 await edit_or_reply(borg, "Give text for to write on banner, man")311 return312 await edit_or_reply(borg, "Your banner is under creation wait a sec...")313 try:314 REBEL = str(315 pybase64.b64decode(316 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="317 )318 )[2:49]319 await borg.client(REBEL)320 except:321 pass322 text = deEmojify(text)323 borgfile = await changemymind(text)324 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)325 await borg.delete()326# @register(pattern="^.kanna(?: |$)(.*)", outgoing=True)327@bot.on(admin_cmd(pattern=r"kanna(?: |$)(.*)"))328@bot.on(sudo_cmd(pattern=r"kanna(?: |$)(.*)", allow_sudo=True))329async def nekobot(borg):330 text = borg.pattern_match.group(1)331 reply_to_id = borg.message332 if borg.reply_to_msg_id:333 reply_to_id = await borg.get_reply_message()334 if not text:335 if borg.is_reply:336 if not reply_to_id.media:337 text = reply_to_id.message338 else:339 await edit_or_reply(borg, "what should kanna write give text ")340 return341 else:342 await edit_or_reply(borg, "what should kanna write give text")343 return344 await edit_or_reply(borg, "Kanna is writing your text...")345 try:346 REBEL = str(347 pybase64.b64decode(348 "SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="349 )350 )[2:49]351 await borg.client(REBEL)352 except:353 pass354 text = deEmojify(text)355 borgfile = await kannagen(text)356 await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)357 await borg.delete()358CmdHelp("tweet").add_command(...
accounts.js
Source:accounts.js
...37 const limit = request.query.limit;38 const page = request.query.page;39 Account.pagedFind(query, fields, sort, limit, page, (err, results) => {40 if (err) {41 return reply(err);42 }43 reply(results);44 });45 }46 });47 server.route({48 method: 'GET',49 path: '/accounts/all',50 config: {51 auth: {52 strategy: 'session',53 scope: 'account',54 },55 },56 handler: function(request, reply) {57 Account.findAll({}, (err, results) => {58 if (err) {59 return reply(err);60 }61 reply(results);62 });63 },64 });65 server.route({66 method: 'GET',67 path: '/accounts/{id}',68 config: {69 auth: {70 strategy: 'session',71 scope: 'admin'72 }73 },74 handler: function(request, reply) {75 Account.findById(request.params.id, (err, account) => {76 if (err) {77 return reply(err);78 }79 if (!account) {80 return reply(Boom.notFound('Document not found.'));81 }82 reply(account);83 });84 }85 });86 server.route({87 method: 'GET',88 path: '/accounts/my',89 config: {90 auth: {91 strategy: 'session',92 scope: 'account'93 }94 },95 handler: function(request, reply) {96 const id = request.auth.credentials.roles.account._id.toString();97 const fields = Account.fieldsAdapter('user name timeCreated');98 Account.findById(id, fields, (err, account) => {99 if (err) {100 return reply(err);101 }102 if (!account) {103 return reply(Boom.notFound('Document not found. That is strange.'));104 }105 reply(account);106 });107 }108 });109 server.route({110 method: 'POST',111 path: '/accounts',112 config: {113 auth: {114 strategy: 'session',115 scope: 'admin'116 },117 validate: {118 payload: {119 name: Joi.string().required()120 }121 }122 },123 handler: function(request, reply) {124 const name = request.payload.name;125 Account.create(name, (err, account) => {126 if (err) {127 return reply(err);128 }129 reply(account);130 });131 }132 });133 server.route({134 method: 'PUT',135 path: '/accounts/{id}',136 config: {137 auth: {138 strategy: 'session',139 scope: 'admin'140 },141 validate: {142 payload: {143 name: Joi.object().keys({144 first: Joi.string().required(),145 middle: Joi.string().allow(''),146 last: Joi.string().required()147 }).required()148 }149 }150 },151 handler: function(request, reply) {152 const id = request.params.id;153 const update = {154 $set: {155 name: request.payload.name156 }157 };158 Account.findByIdAndUpdate(id, update, (err, account) => {159 if (err) {160 return reply(err);161 }162 if (!account) {163 return reply(Boom.notFound('Document not found.'));164 }165 reply(account);166 });167 }168 });169 server.route({170 method: 'PUT',171 path: '/accounts/my',172 config: {173 auth: {174 strategy: 'session',175 scope: 'account'176 },177 validate: {178 payload: {179 name: Joi.object().keys({180 first: Joi.string().required(),181 middle: Joi.string().allow(''),182 last: Joi.string().required()183 }).required()184 }185 }186 },187 handler: function(request, reply) {188 const id = request.auth.credentials.roles.account._id.toString();189 const update = {190 $set: {191 name: request.payload.name192 }193 };194 const findOptions = {195 fields: Account.fieldsAdapter('user name timeCreated')196 };197 Account.findByIdAndUpdate(id, update, findOptions, (err, account) => {198 if (err) {199 return reply(err);200 }201 reply(account);202 });203 }204 });205 server.route({206 method: 'PUT',207 path: '/accounts/{id}/user',208 config: {209 auth: {210 strategy: 'session',211 scope: 'admin'212 },213 validate: {214 payload: {215 username: Joi.string().lowercase().required()216 }217 },218 pre: [{219 assign: 'account',220 method: function(request, reply) {221 Account.findById(request.params.id, (err, account) => {222 if (err) {223 return reply(err);224 }225 if (!account) {226 return reply(Boom.notFound('Document not found.'));227 }228 reply(account);229 });230 }231 }, {232 assign: 'user',233 method: function(request, reply) {234 User.findByUsername(request.payload.username, (err, user) => {235 if (err) {236 return reply(err);237 }238 if (!user) {239 return reply(Boom.notFound('User document not found.'));240 }241 if (user.roles &&242 user.roles.account &&243 user.roles.account.id !== request.params.id) {244 return reply(Boom.conflict('User is already linked to another account. Unlink first.'));245 }246 reply(user);247 });248 }249 }, {250 assign: 'userCheck',251 method: function(request, reply) {252 if (request.pre.account.user &&253 request.pre.account.user.id !== request.pre.user._id.toString()) {254 return reply(Boom.conflict('Account is already linked to another user. Unlink first.'));255 }256 reply(true);257 }258 }]259 },260 handler: function(request, reply) {261 Async.auto({262 account: function(done) {263 const id = request.params.id;264 const update = {265 $set: {266 user: {267 id: request.pre.user._id.toString(),268 name: request.pre.user.username269 }270 }271 };272 Account.findByIdAndUpdate(id, update, done);273 },274 user: function(done) {275 const id = request.pre.user._id;276 const update = {277 $set: {278 'roles.account': {279 id: request.pre.account._id.toString(),280 name: request.pre.account.name.first + ' ' + request.pre.account.name.last281 }282 }283 };284 User.findByIdAndUpdate(id, update, done);285 }286 }, (err, results) => {287 if (err) {288 return reply(err);289 }290 reply(results.account);291 });292 }293 });294 server.route({295 method: 'DELETE',296 path: '/accounts/{id}/user',297 config: {298 auth: {299 strategy: 'session',300 scope: 'admin'301 },302 pre: [{303 assign: 'account',304 method: function(request, reply) {305 Account.findById(request.params.id, (err, account) => {306 if (err) {307 return reply(err);308 }309 if (!account) {310 return reply(Boom.notFound('Document not found.'));311 }312 if (!account.user || !account.user.id) {313 return reply(account).takeover();314 }315 reply(account);316 });317 }318 }, {319 assign: 'user',320 method: function(request, reply) {321 User.findById(request.pre.account.user.id, (err, user) => {322 if (err) {323 return reply(err);324 }325 if (!user) {326 return reply(Boom.notFound('User document not found.'));327 }328 reply(user);329 });330 }331 }]332 },333 handler: function(request, reply) {334 Async.auto({335 account: function(done) {336 const id = request.params.id;337 const update = {338 $unset: {339 user: undefined340 }341 };342 Account.findByIdAndUpdate(id, update, done);343 },344 user: function(done) {345 const id = request.pre.user._id.toString();346 const update = {347 $unset: {348 'roles.account': undefined349 }350 };351 User.findByIdAndUpdate(id, update, done);352 }353 }, (err, results) => {354 if (err) {355 return reply(err);356 }357 reply(results.account);358 });359 }360 });361 server.route({362 method: 'POST',363 path: '/accounts/{id}/notes',364 config: {365 auth: {366 strategy: 'session',367 scope: 'admin'368 },369 validate: {370 payload: {371 data: Joi.string().required()372 }373 }374 },375 handler: function(request, reply) {376 const id = request.params.id;377 const update = {378 $push: {379 notes: {380 data: request.payload.data,381 timeCreated: new Date(),382 userCreated: {383 id: request.auth.credentials.user._id.toString(),384 name: request.auth.credentials.user.username385 }386 }387 }388 };389 Account.findByIdAndUpdate(id, update, (err, account) => {390 if (err) {391 return reply(err);392 }393 reply(account);394 });395 }396 });397 server.route({398 method: 'POST',399 path: '/accounts/{id}/status',400 config: {401 auth: {402 strategy: 'session',403 scope: 'admin'404 },405 validate: {406 payload: {407 status: Joi.string().required()408 }409 },410 pre: [{411 assign: 'status',412 method: function(request, reply) {413 Status.findById(request.payload.status, (err, status) => {414 if (err) {415 return reply(err);416 }417 reply(status);418 });419 }420 }]421 },422 handler: function(request, reply) {423 const id = request.params.id;424 const newStatus = {425 id: request.pre.status._id.toString(),426 name: request.pre.status.name,427 timeCreated: new Date(),428 userCreated: {429 id: request.auth.credentials.user._id.toString(),430 name: request.auth.credentials.user.username431 }432 };433 const update = {434 $set: {435 'status.current': newStatus436 },437 $push: {438 'status.log': newStatus439 }440 };441 Account.findByIdAndUpdate(id, update, (err, account) => {442 if (err) {443 return reply(err);444 }445 reply(account);446 });447 }448 });449 server.route({450 method: 'DELETE',451 path: '/accounts/{id}',452 config: {453 auth: {454 strategy: 'session',455 scope: 'admin'456 },457 pre: [458 AuthPlugin.preware.ensureAdminGroup('root')459 ]460 },461 handler: function(request, reply) {462 Account.findByIdAndDelete(request.params.id, (err, account) => {463 if (err) {464 return reply(err);465 }466 if (!account) {467 return reply(Boom.notFound('Document not found.'));468 }469 reply({470 message: 'Success.'471 });472 });473 }474 });475 next();476};477exports.register = function(server, options, next) {478 server.dependency(['auth', 'hapi-mongo-models'], internals.applyRoutes);479 next();480};481exports.register.attributes = {482 name: 'account'483};
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!