From 7c75a10560a7982dd10b933553d8bd670746c519 Mon Sep 17 00:00:00 2001 From: Malik The King <130395171+Nasrullahmalik@users.noreply.github.com> Date: Mon, 25 Dec 2023 20:23:14 +0500 Subject: [PATCH] Add files via upload --- plugins/Quran-surah.js | 71 ++++ plugins/ai-bing2.js | 28 ++ plugins/ai_bard.js | 32 ++ plugins/aimalik_bard.js | 32 ++ plugins/malik-cricket.js | 31 ++ plugins/malik-geonews.js | 23 + plugins/malik-logos.js | 886 +++++++++++++++++++++++++++++++++++++++ plugins/malik-openai.js | 121 ++++++ 8 files changed, 1224 insertions(+) create mode 100644 plugins/Quran-surah.js create mode 100644 plugins/ai-bing2.js create mode 100644 plugins/ai_bard.js create mode 100644 plugins/aimalik_bard.js create mode 100644 plugins/malik-cricket.js create mode 100644 plugins/malik-geonews.js create mode 100644 plugins/malik-logos.js create mode 100644 plugins/malik-openai.js diff --git a/plugins/Quran-surah.js b/plugins/Quran-surah.js new file mode 100644 index 0000000..e82834f --- /dev/null +++ b/plugins/Quran-surah.js @@ -0,0 +1,71 @@ +import fetch from 'node-fetch'; +import { translate } from '@vitalets/google-translate-api'; + +let Handler = async (m, { conn }) => { + try { + // Extract the surah number or name from the command text. + let surahInput = m.text.split(' ')[1]; + + if (!surahInput) { + throw new Error(`Please specify the surah number or name`); + } + + let surahListRes = await fetch('https://quran-endpoint.vercel.app/quran'); + let surahList = await surahListRes.json(); + + let surahData = surahList.data.find(surah => + surah.number === Number(surahInput) || + surah.asma.ar.short.toLowerCase() === surahInput.toLowerCase() || + surah.asma.en.short.toLowerCase() === surahInput.toLowerCase() + ); + + if (!surahData) { + throw new Error(`Couldn't find surah with number or name "${surahInput}"`); + } + + let res = await fetch(`https://quran-endpoint.vercel.app/quran/${surahData.number}`); + + if (!res.ok) { + let error = await res.json(); + throw new Error(`API request failed with status ${res.status} and message ${error.message}`); + } + + let json = await res.json(); + + // Translate tafsir from Bahasa Indonesia to Urdu + let translatedTafsirUrdu = await translate(json.data.tafsir.id, { to: 'ur', autoCorrect: true }); + + // Translate tafsir from Bahasa Indonesia to English + let translatedTafsirEnglish = await translate(json.data.tafsir.id, { to: 'en', autoCorrect: true }); + + let quranSurah = ` +🕌 *Quran: The Holy Book*\n +📜 *Surah ${json.data.number}: ${json.data.asma.ar.long} (${json.data.asma.en.long})*\n +Type: ${json.data.type.en}\n +Number of verses: ${json.data.ayahCount}\n +🔮 *Explanation (Urdu):*\n +${translatedTafsirUrdu.text}\n +🔮 *Explanation (English):*\n +${translatedTafsirEnglish.text}`; + + m.reply(quranSurah); + + if (json.data.recitation.full) { + conn.sendFile(m.chat, json.data.recitation.full, 'recitation.mp3', null, m, true, { type: 'audioMessage', ptt: true }); + } + } catch (error) { + console.error(error); + m.reply(`Error: ${error.message}`); + } +}; + +Handler.help = ['quran [surah_number|surah_name]']; +Handler.tags = ['quran', 'surah']; +Handler.command = ['quran', 'surah'] + +export default Handler; + + + + + \ No newline at end of file diff --git a/plugins/ai-bing2.js b/plugins/ai-bing2.js new file mode 100644 index 0000000..7e61497 --- /dev/null +++ b/plugins/ai-bing2.js @@ -0,0 +1,28 @@ +import fetch from 'node-fetch'; + +const handler = async (m, {conn, text, usedPrefix, command}) => { + if (!text) { + throw `*Example:* ${usedPrefix + command} Hello Bing`; + } + + try { + m.react('👁'); + + const API_URL = `https://aemt.me/bingai?text=${encodeURIComponent(text)}`; + const response = await fetch(API_URL); + const data = await response.json(); + + if (data.status && data.result) { + const respuestaAPI = data.result + "_©️Bing: ʙʏ ɴᴀꜱʀᴜʟʟᴀʜ ᴍᴀᴄʜɪ🦹‍♂️_"; + conn.reply(m.chat, respuestaAPI, m); + } else { + throw '*Server is busy now. Try again Later.*'; + } + } catch (error) { + throw `*Error*`; + } +}; + +handler.command = /^bing$/i; + +export default handler; \ No newline at end of file diff --git a/plugins/ai_bard.js b/plugins/ai_bard.js new file mode 100644 index 0000000..f836dc1 --- /dev/null +++ b/plugins/ai_bard.js @@ -0,0 +1,32 @@ +import fetch from 'node-fetch' +import uploader from '../lib/uploadImage.js' + +var handler = async (m, { conn, text, command, usedPrefix }) => { + +let q = m.quoted ? m.quoted : m +let mime = (q.msg || q).mimetype || q.mediaType || '' +if (!mime){ +if (!text) throw `*🎟 ️Ask Question* \n\n *_Example:_* *.bard Hi* \n\n*_Example 2:_* *.ans who are you? * \n\n *I'm ready to help and reply your queries*` +await m.react('🪄') +let json = await (await fetch(`https://aemt.me/bard?text=${text}`)).json() +conn.sendMessage(m.chat, { text: json.result + "\n\n*_©️Bard: ʙʏ ɴᴀꜱʀᴜʟʟᴀʜ ᴍᴀᴄʜɪ🦹‍♂️_*" }, { quoted: m }) + +} else +if (/image/g.test(mime) && !/webp/g.test(mime)) { +let buffer = await q.download() +await m.react('🪄') +let media = await (uploader)(buffer) +if (!text) throw `*🎟️ Upload image with Question*\n\n 🪄 *_Example:_* *What is this?* \n\n *I'm ready to help and reply your queries.*` + +let json = await (await fetch(`https://aemt.me/bardimg?url=${media}&text=${text}`)).json() + +conn.sendMessage(m.chat, { text: json.result + "\n\n*_©️Bard: ʙʏ ɴᴀꜱʀᴜʟʟᴀʜ ᴍᴀᴄʜɪ🦹‍♂️_*" }, { quoted: m }) + +} else return conn.reply(m.chat, `*🎟️Upload image with Question\n I'm ready to help and reply your queries.*`, m ) + +} + +handler.command = /^(bard|ask|ans)$/i + + +export default handler \ No newline at end of file diff --git a/plugins/aimalik_bard.js b/plugins/aimalik_bard.js new file mode 100644 index 0000000..f836dc1 --- /dev/null +++ b/plugins/aimalik_bard.js @@ -0,0 +1,32 @@ +import fetch from 'node-fetch' +import uploader from '../lib/uploadImage.js' + +var handler = async (m, { conn, text, command, usedPrefix }) => { + +let q = m.quoted ? m.quoted : m +let mime = (q.msg || q).mimetype || q.mediaType || '' +if (!mime){ +if (!text) throw `*🎟 ️Ask Question* \n\n *_Example:_* *.bard Hi* \n\n*_Example 2:_* *.ans who are you? * \n\n *I'm ready to help and reply your queries*` +await m.react('🪄') +let json = await (await fetch(`https://aemt.me/bard?text=${text}`)).json() +conn.sendMessage(m.chat, { text: json.result + "\n\n*_©️Bard: ʙʏ ɴᴀꜱʀᴜʟʟᴀʜ ᴍᴀᴄʜɪ🦹‍♂️_*" }, { quoted: m }) + +} else +if (/image/g.test(mime) && !/webp/g.test(mime)) { +let buffer = await q.download() +await m.react('🪄') +let media = await (uploader)(buffer) +if (!text) throw `*🎟️ Upload image with Question*\n\n 🪄 *_Example:_* *What is this?* \n\n *I'm ready to help and reply your queries.*` + +let json = await (await fetch(`https://aemt.me/bardimg?url=${media}&text=${text}`)).json() + +conn.sendMessage(m.chat, { text: json.result + "\n\n*_©️Bard: ʙʏ ɴᴀꜱʀᴜʟʟᴀʜ ᴍᴀᴄʜɪ🦹‍♂️_*" }, { quoted: m }) + +} else return conn.reply(m.chat, `*🎟️Upload image with Question\n I'm ready to help and reply your queries.*`, m ) + +} + +handler.command = /^(bard|ask|ans)$/i + + +export default handler \ No newline at end of file diff --git a/plugins/malik-cricket.js b/plugins/malik-cricket.js new file mode 100644 index 0000000..704f265 --- /dev/null +++ b/plugins/malik-cricket.js @@ -0,0 +1,31 @@ +import axios from "axios" + let handler = async (m, { args }) => { + if (!args[0]) throw "No matchs found. Or Type correct match id" +const response = axios.get(`https://cric-theta.vercel.app/score?url=https://m.cricbuzz.com/cricket-commentary/${args}×tamp=`+new Date()); +const res = await response + +let msg = '' +if (res.data.title) msg += res.data.title + `\n` +if (res.data.update) msg += `*`+res.data.update + `*\n\n` +if (res.data.current) msg += '*'+res.data.current + `*\n` +if (res.data.batsman) msg += `Batsman 🏏: *${res.data.batsman} - ${res.data.batsmanrun} ${res.data.ballsfaced}\n` +if (res.data.sr) msg +=`Strike rate: ${res.data.sr}\n` +if (res.data.batsman) msg +=`Batsman 2 🏏: *${res.data.batsmantwo}* - ${res.data.batsmantworun} ${res.data.batsmantwoballsfaced}\n` +if (res.data.batsman) msg += `Strike rate: ${res.data.batsmantwosr}\n\n` +if (res.data.batsman) msg += `Bowler ⚾: *${res.data.bowler}*\n` +if (res.data.batsman) msg +=`Over: ${res.data.bowlerover}\n` +if (res.data.batsman) msg += `Runs: ${res.data.bowlerruns}\n` +if (res.data.batsman) msg +=`Wickets: ${res.data.bowlerwickets}\n` +if (res.data.batsman) msg+=`Bowler 2: ${res.data.bowlertwo}\n\n` +if (res.data.batsman) { +msg += `${res.data.recentballs}\n\n` +msg += `Last wicket ❌ ${res.data.lastwicket}\n` +msg += `Run rate %: *${res.data.runrate}*\n` +} +m.reply('*Live score updating... 🏏🏏*') + m.reply(msg) + } +handler.help = ['score **'] +handler.tags = ['herramientas'] +handler.command = /^(cricket|score)$/i +export default handler \ No newline at end of file diff --git a/plugins/malik-geonews.js b/plugins/malik-geonews.js new file mode 100644 index 0000000..5c8b8ea --- /dev/null +++ b/plugins/malik-geonews.js @@ -0,0 +1,23 @@ +import axios from "axios" + let handler = async (m, { args }) => { +const response = axios.get(`https://cric-theta.vercel.app/geo?url=https://urdu.geo.tv/`); +const res = await response + +let msg = '' +if (res.data.newsb) msg += "\n📺*جیو نیوز*\n\n" + res.data.newsb +if (res.data.newsc) msg += res.data.newsc +if (res.data.newsd) msg += res.data.newsd +if (res.data.newse) msg += res.data.newse +if (res.data.newsf) msg += res.data.newsf +if (res.data.newg) msg += res.data.newsg +if (res.data.newsh) msg += res.data.newsh +if (res.data.newsi) msg += res.data.newsi +if (res.data.newsj) msg += res.data.newsj +if (res.data.newsk) msg += res.data.newsk + + m.reply(msg) + } +handler.help = ['geo'] +handler.tags = ['herramientas'] +handler.command = /^(geo|geonews)$/i +export default handler \ No newline at end of file diff --git a/plugins/malik-logos.js b/plugins/malik-logos.js new file mode 100644 index 0000000..99501a0 --- /dev/null +++ b/plugins/malik-logos.js @@ -0,0 +1,886 @@ +import axios from "axios"; +import cheerio from "cheerio"; +import FormData from "form-data"; +const split = '|'; +const e = 'error'; +const handler = async (m, {conn, args: [effect], text: txt, usedPrefix, command, name}) => { + if (!effect) throw '*[❗𝐈𝐍𝐅𝐎❗] ¿𝙲𝙾𝙼𝙾 𝚄𝚂𝙰𝚁 𝙴𝚂𝚃𝙴 𝙲𝙾𝙼𝙰𝙽𝙳𝙾?*\n—◉ _#logo (efecto) (texto)_\n*𝙴𝙹𝙴𝙼𝙿𝙻𝙾:*\n—◉ _#logo 3d-deep-sea-metal Mystic_\n\n*[❗] 𝙲𝚄𝙰𝙽𝙳𝙾 𝙻𝙴𝚂 𝙳𝙸𝙶𝙰 𝚀𝚄𝙴 𝙷𝙰𝙲𝙴 𝙵𝙰𝙻𝚃𝙰 𝚄𝙽 𝚃𝙴𝚇𝚃𝙾 𝙴𝙻 𝚄𝚂𝙾 𝚂𝙴𝚁𝙸𝙰:*\n—◉ _#logo (efecto) (texto1|texto2)_\n*𝙴𝙹𝙴𝙼𝙿𝙻𝙾:*\n—◉ _#logo Wolf-Logo-Galaxy Mystic|Bot_\n\n*<𝑳𝑰𝑺𝑻𝑨 𝑫𝑬 𝑬𝑭𝑬𝑪𝑻𝑶𝑺/>*\n\n° ඬ⃟📝 #logo ' + effects.map((v) => v.title).join('\n° ඬ⃟📝 #logo '); + if (!effects.find((v) => (new RegExp(v.title, 'gi')).test(effect))) throw `*[❗𝐈𝐍𝐅𝐎❗] 𝙴𝙻 𝙴𝙵𝙴𝙲𝚃𝙾 ${effect} 𝙽𝙾 𝙴𝚂𝚃𝙰 𝙴𝙽 𝙻𝙰 𝙻𝙸𝚂𝚃𝙰 𝙳𝙴 𝙴𝙵𝙴𝙲𝚃𝙾𝚂*`; + let text = txt.replace(new RegExp(effect, 'gi'), '').trimStart(); + if (text.includes(split)) { + text = text.split(split).map((t) => t.trim()); + } else { + text = [text.trim()]; + } + const effectoSelect = effects.find((effectz) => new RegExp(effectz?.title, 'i').test(effect)); + const res = await maker(effectoSelect?.url, [...text]).catch(_ => { throw '*[❗] Falta el texto al que se realizara el logo*' }) + if (typeof res == 'number') throw res == -1 ? `*[❗𝐈𝐍𝐅𝐎❗] 𝙴𝙻 𝙴𝙵𝙴𝙲𝚃𝙾 ${effect} 𝙽𝙾 𝙴𝚂𝚃𝙰 𝙴𝙽 𝙻𝙰 𝙻𝙸𝚂𝚃𝙰 𝙳𝙴 𝙴𝙵𝙴𝙲𝚃𝙾𝚂*` : `*[❗𝐈𝐍𝐅𝐎❗] 𝙴𝙻 𝚄𝚂𝙾 𝙲𝙾𝚁𝚁𝙴𝙲𝚃𝙾 𝙳𝙴𝙻 𝙲𝙾𝙼𝙰𝙽𝙳𝙾 𝙴𝚂 ${usedPrefix + command} ${effect} ${new Array(res).fill('texto').map((v, i) => v + (i ? i + 1 : '')).join('|')}*`; + await conn.sendMessage(m.chat, {image: {url: res.image}, caption: `*𝚃𝙾𝙼𝙰 𝚃𝚄 𝙸𝙼𝙰𝙶𝙴𝙽 𝙿𝙴𝚁𝚂𝙾𝙽𝙰𝙻𝙸𝚉𝙰𝙳𝙰!!*\n*𝙴𝙵𝙴𝙲𝚃𝙾: ${effect}*`}, {quoted: m}); +}; +handler.help = ['logos']; +handler.tags = ['nulis']; +handler.command = /^(logo|logos|logos2)$/i; +export default handler; + +var effects = [ + { + 'title': '3d-deep-sea-metal', + 'url': 'https://textpro.me/create-3d-deep-sea-metal-text-effect-online-1053.html', + }, + { + 'title': 'American-flag-3D', + 'url': 'https://textpro.me/create-american-flag-3d-text-effect-online-1051.html', + }, + { + 'title': '3D-sci-fi', + 'url': 'https://textpro.me/create-3d-sci-fi-text-effect-online-1050.html', + }, + { + 'title': '3D-rainbow-color-calligraphy', + 'url': 'https://textpro.me/3d-rainbow-color-calligraphy-text-effect-1049.html', + }, + { + 'title': '3D-water-pipe', + 'url': 'https://textpro.me/create-3d-water-pipe-text-effects-online-1048.html', + }, + { + 'title': 'Halloween-skeleton', + 'url': 'https://textpro.me/create-halloween-skeleton-text-effect-online-1047.html', + }, + { + 'title': 'a-spooky-Halloween', + 'url': 'https://textpro.me/create-a-spooky-halloween-text-effect-online-1046.html', + }, + { + 'title': 'a-cinematic-horror', + 'url': 'https://textpro.me/create-a-cinematic-horror-text-effect-1045.html', + }, + { + 'title': 'a-sketch', + 'url': 'https://textpro.me/create-a-sketch-text-effect-online-1044.html', + }, + { + 'title': 'blue-circuit-style', + 'url': 'https://textpro.me/create-blue-circuit-style-text-effect-online-1043.html', + }, + { + 'title': 'space', + 'url': 'https://textpro.me/create-space-text-effects-online-free-1042.html', + }, + { + 'title': 'a-metallic', + 'url': 'https://textpro.me/create-a-metallic-text-effect-free-online-1041.html', + }, + { + 'title': 'Creat-glossy-metalic', + 'url': 'https://textpro.me/creat-glossy-metalic-text-effect-free-online-1040.html', + }, + { + 'title': 'a-Captain-America', + 'url': 'https://textpro.me/create-a-captain-america-text-effect-free-online-1039.html', + }, + { + 'title': 'science-fiction', + 'url': 'https://textpro.me/create-science-fiction-text-effect-online-free-1038.html', + }, + { + 'title': 'Video-game-classic-8-bit', + 'url': 'https://textpro.me/video-game-classic-8-bit-text-effect-1037.html', + }, + { + 'title': 'green-horror-style', + 'url': 'https://textpro.me/create-green-horror-style-text-effect-online-1036.html', + }, + { + 'title': 'a-transformer', + 'url': 'https://textpro.me/create-a-transformer-text-effect-online-1035.html', + }, + { + 'title': 'berry', + 'url': 'https://textpro.me/create-berry-text-effect-online-free-1033.html', + }, + { + 'title': 'layered', + 'url': 'https://textpro.me/create-layered-text-effects-online-free-1032.html', + }, + { + 'title': 'Online-thunder--generator', + 'url': 'https://textpro.me/online-thunder-text-effect-generator-1031.html', + }, + { + 'title': 'a-magma-hot', + 'url': 'https://textpro.me/create-a-magma-hot-text-effect-online-1030.html', + }, + { + 'title': '3D-stone-cracked-cool', + 'url': 'https://textpro.me/3d-stone-cracked-cool-text-effect-1029.html', + }, + { + 'title': '3D-neon-light', + 'url': 'https://textpro.me/create-3d-neon-light-text-effect-online-1028.html', + }, + { + 'title': 'impressive-glitch', + 'url': 'https://textpro.me/create-impressive-glitch-text-effects-online-1027.html', + }, + { + 'title': 'a-glitch', + 'url': 'https://textpro.me/create-a-glitch-text-effect-online-free-1026.html', + }, + { + 'title': 'embossed--on-cracked-surface', + 'url': 'https://textpro.me/create-embossed-text-effect-on-cracked-surface-1024.html', + }, + { + 'title': 'Broken-glass', + 'url': 'https://textpro.me/broken-glass-text-effect-free-online-1023.html', + }, + { + 'title': 'art-paper-cut', + 'url': 'https://textpro.me/create-art-paper-cut-text-effect-online-1022.html', + }, + { + 'title': 'artistic-black-and-white-status-and-quote-with-your-photos', + 'url': 'https://textpro.me/create-artistic-black-and-white-status-and-quote-with-your-photos-1021.html', + }, + { + 'title': 'Online-3D-gradient--generator', + 'url': 'https://textpro.me/online-3d-gradient-text-effect-generator-1020.html', + }, + { + 'title': 'a-3D-glossy-metal', + 'url': 'https://textpro.me/create-a-3d-glossy-metal-text-effect-1019.html', + }, + { + 'title': '3D-realistic--on-the-beach', + 'url': 'https://textpro.me/create-3d-realistic-text-effect-on-the-beach-online-1018.html', + }, + { + 'title': 'a-watercolor', + 'url': 'https://textpro.me/create-a-free-online-watercolor-text-effect-1017.html', + }, + { + 'title': 'Online-multicolor-3D-paper-cut', + 'url': 'https://textpro.me/online-multicolor-3d-paper-cut-text-effect-1016.html', + }, + { + 'title': 'Write-text-on-foggy-window', + 'url': 'https://textpro.me/write-text-on-foggy-window-online-free-1015.html', + }, + { + 'title': 'neon-devil-wings', + 'url': 'https://textpro.me/create-neon-devil-wings-text-effect-online-free-1014.html', + }, + { + 'title': '3D-underwater--generator', + 'url': 'https://textpro.me/3d-underwater-text-effect-generator-online-1013.html', + }, + { + 'title': 'Online-black-and-white-bear-mascot-logo-creation', + 'url': 'https://textpro.me/online-black-and-white-bear-mascot-logo-creation-1012.html', + }, + { + 'title': 'wonderful-graffiti-art', + 'url': 'https://textpro.me/create-wonderful-graffiti-art-text-effect-1011.html', + }, + { + 'title': 'a-cool-graffiti-text-on-the-wall', + 'url': 'https://textpro.me/create-a-cool-graffiti-text-on-the-wall-1010.html', + }, + { + 'title': 'cool-wall-graffiti', + 'url': 'https://textpro.me/create-cool-wall-graffiti-text-effect-online-1009.html', + }, + { + 'title': 'a-christmas-holiday-snow', + 'url': 'https://textpro.me/create-a-christmas-holiday-snow-text-effect-1007.html', + }, + { + 'title': 'a-futuristic-technology-neon-light', + 'url': 'https://textpro.me/create-a-futuristic-technology-neon-light-text-effect-1006.html', + }, + { + 'title': 'snow--for-winter-holidays', + 'url': 'https://textpro.me/create-snow-text-effects-for-winter-holidays-1005.html', + }, + { + 'title': 'a-cloud--on-the-sky', + 'url': 'https://textpro.me/create-a-cloud-text-effect-on-the-sky-online-1004.html', + }, + { + 'title': '3D-luxury-gold', + 'url': 'https://textpro.me/3d-luxury-gold-text-effect-online-1003.html', + }, + { + 'title': '3D-gradient', + 'url': 'https://textpro.me/3d-gradient-text-effect-online-free-1002.html', + }, + { + 'title': 'Blackpink-logo-style', + 'url': 'https://textpro.me/create-blackpink-logo-style-online-1001.html', + }, + { + 'title': 'realistic-vintage-style-light-bulb', + 'url': 'https://textpro.me/create-realistic-vintage-style-light-bulb-1000.html', + }, + { + 'title': 'realistic-cloud', + 'url': 'https://textpro.me/create-realistic-cloud-text-effect-online-free-999.html', + }, + { + 'title': 'a-cloud--in-the-sky', + 'url': 'https://textpro.me/create-a-cloud-text-effect-in-the-sky-online-997.html', + }, + { + 'title': 'Write-in-Sand-Summer-Beach', + 'url': 'https://textpro.me/write-in-sand-summer-beach-free-online-991.html', + }, + { + 'title': 'Sand-Writing', + 'url': 'https://textpro.me/sand-writing-text-effect-online-990.html', + }, + { + 'title': 'Sand-engraved-3d', + 'url': 'https://textpro.me/sand-engraved-3d-text-effect-989.html', + }, + { + 'title': 'a-summery-sand-writing', + 'url': 'https://textpro.me/create-a-summery-sand-writing-text-effect-988.html', + }, + { + 'title': 'Foil-Balloon--For-Birthday', + 'url': 'https://textpro.me/foil-balloon-text-effect-for-birthday-987.html', + }, + { + 'title': '3d-glue--with-realistic-style', + 'url': 'https://textpro.me/create-3d-glue-text-effect-with-realistic-style-986.html', + }, + { + 'title': 'space-3D', + 'url': 'https://textpro.me/create-space-3d-text-effect-online-985.html', + }, + { + 'title': 'Metal-Dark-Gold', + 'url': 'https://textpro.me/metal-dark-gold-text-effect-984.html', + }, + { + 'title': 'Glitch--Style-Tik-Tok', + 'url': 'https://textpro.me/create-glitch-text-effect-style-tik-tok-983.html', + }, + { + 'title': 'a-Stone', + 'url': 'https://textpro.me/create-a-stone-text-effect-online-982.html', + }, + { + 'title': 'Neon-Light--With-Galaxy-Style', + 'url': 'https://textpro.me/neon-light-text-effect-with-galaxy-style-981.html', + }, + { + 'title': '1917-Style', + 'url': 'https://textpro.me/1917-style-text-effect-online-980.html', + }, + { + 'title': '80\'s-Retro-Neon', + 'url': 'https://textpro.me/80-s-retro-neon-text-effect-online-979.html', + }, + { + 'title': 'Minion--3D', + 'url': 'https://textpro.me/minion-text-effect-3d-online-978.html', + }, + { + 'title': 'Pornhub-Style-Logo', + 'url': 'https://textpro.me/pornhub-style-logo-online-generator-free-977.html', + }, + { + 'title': 'Double-Exposure--Black-&-White', + 'url': 'https://textpro.me/double-exposure-text-effect-black-white-976.html', + }, + { + 'title': 'Holographic-3D', + 'url': 'https://textpro.me/holographic-3d-text-effect-975.html', + }, + { + 'title': '3D-Avengers-logo', + 'url': 'https://textpro.me/create-3d-avengers-logo-online-974.html', + }, + { + 'title': 'Metal-Purple-Dual-Effect', + 'url': 'https://textpro.me/metal-purple-dual-effect-973.html', + }, + { + 'title': 'logo-style-Marvel-studios-Ver:-metal', + 'url': 'https://textpro.me/create-logo-style-marvel-studios-ver-metal-972.html', + }, + { + 'title': 'logo-style-Marvel-studios', + 'url': 'https://textpro.me/create-logo-style-marvel-studios-online-971.html', + }, + { + 'title': 'Deluxe-Silver', + 'url': 'https://textpro.me/deluxe-silver-text-effect-970.html', + }, + { + 'title': 'Color-Full-Luxury-Metal', + 'url': 'https://textpro.me/color-full-luxury-metal-text-effect-969.html', + }, + { + 'title': 'Glossy-Blue-Metal', + 'url': 'https://textpro.me/glossy-blue-metal-text-effect-967.html', + }, + { + 'title': 'Deluxe-Gold', + 'url': 'https://textpro.me/deluxe-gold-text-effect-966.html', + }, + { + 'title': 'Glossy-Carbon', + 'url': 'https://textpro.me/glossy-carbon-text-effect-965.html', + }, + { + 'title': 'Fabric', + 'url': 'https://textpro.me/fabric-text-effect-online-964.html', + }, + { + 'title': 'Neon', + 'url': 'https://textpro.me/neon-text-effect-online-963.html', + }, + { + 'title': 'New-Year-Cards-3D-By-Name', + 'url': 'https://textpro.me/new-year-cards-3d-by-name-960.html', + }, + { + 'title': 'Happ-new-year-card-firework-gif', + 'url': 'https://textpro.me/happ-new-year-card-firework-gif-959.html', + }, + { + 'title': 'Fullcolor-Balloon', + 'url': 'https://textpro.me/fullcolor-balloon-text-effect-958.html', + }, + { + 'title': 'Text-Logo-3D-Metal', + 'url': 'https://textpro.me/create-text-logo-3d-metal-online-957.html', + }, + { + 'title': 'avatar-gold', + 'url': 'https://textpro.me/create-avatar-gold-online-956.html', + }, + { + 'title': 'Text-Logo-3D-Metal-Silver', + 'url': 'https://textpro.me/text-logo-3d-metal-silver-946.html', + }, + { + 'title': 'Text-Logo-3D-Metal-Rose-Gold', + 'url': 'https://textpro.me/text-logo-3d-metal-rose-gold-945.html', + }, + { + 'title': 'Text-Logo-3D-Metal-Gold', + 'url': 'https://textpro.me/text-logo-3d-metal-gold-944.html', + }, + { + 'title': 'Text-Logo-3D-Metal-Galaxy', + 'url': 'https://textpro.me/text-logo-3d-metal-galaxy-943.html', + }, + { + 'title': 'Xmas-Cards-3D', + 'url': 'https://textpro.me/xmas-cards-3d-online-942.html', + }, + { + 'title': 'Blood-Text-On-The-Frosted-Glass', + 'url': 'https://textpro.me/blood-text-on-the-frosted-glass-941.html', + }, + { + 'title': 'Halloween-Fire', + 'url': 'https://textpro.me/halloween-fire-text-effect-940.html', + }, + { + 'title': 'Metal-Dark-Gold', + 'url': 'https://textpro.me/metal-dark-gold-text-effect-online-939.html', + }, + { + 'title': 'Lion-Logo-Mascot', + 'url': 'https://textpro.me/create-lion-logo-mascot-online-938.html', + }, + { + 'title': 'Wolf-Logo-Black-&-White', + 'url': 'https://textpro.me/create-wolf-logo-black-white-937.html', + }, + { + 'title': 'Wolf-Logo-Galaxy', + 'url': 'https://textpro.me/create-wolf-logo-galaxy-online-936.html', + }, + { + 'title': 'Ninja-Logo', + 'url': 'https://textpro.me/create-ninja-logo-online-935.html', + }, + { + 'title': 'Logo-Joker', + 'url': 'https://textpro.me/create-logo-joker-online-934.html', + }, + { + 'title': 'Wicker', + 'url': 'https://textpro.me/wicker-text-effect-online-932.html', + }, + { + 'title': 'Natural-Leaves', + 'url': 'https://textpro.me/natural-leaves-text-effect-931.html', + }, + { + 'title': 'Firework-Sparkle', + 'url': 'https://textpro.me/firework-sparkle-text-effect-930.html', + }, + { + 'title': 'Skeleton', + 'url': 'https://textpro.me/skeleton-text-effect-online-929.html', + }, + { + 'title': 'Red-Foil-Balloon', + 'url': 'https://textpro.me/red-foil-balloon-text-effect-928.html', + }, + { + 'title': 'Purple-Foil-Balloon', + 'url': 'https://textpro.me/purple-foil-balloon-text-effect-927.html', + }, + { + 'title': 'Pink-Foil-Balloon', + 'url': 'https://textpro.me/pink-foil-balloon-text-effect-926.html', + }, + { + 'title': 'Green-Foil-Balloon', + 'url': 'https://textpro.me/green-foil-balloon-text-effect-925.html', + }, + { + 'title': 'Cyan-Foil-Balloon', + 'url': 'https://textpro.me/cyan-foil-balloon-text-effect-924.html', + }, + { + 'title': 'Blue-Foil-Balloon', + 'url': 'https://textpro.me/blue-foil-balloon-text-effect-923.html', + }, + { + 'title': 'Gold-Foil-Balloon', + 'url': 'https://textpro.me/gold-foil-balloon-text-effect-922.html', + }, + { + 'title': 'Steel', + 'url': 'https://textpro.me/steel-text-effect-online-921.html', + }, + { + 'title': 'Ultra-Gloss', + 'url': 'https://textpro.me/ultra-gloss-text-effect-online-920.html', + }, + { + 'title': 'Denim', + 'url': 'https://textpro.me/denim-text-effect-online-919.html', + }, + { + 'title': 'Decorate-Green', + 'url': 'https://textpro.me/decorate-green-text-effect-918.html', + }, + { + 'title': 'Decorate-Purple', + 'url': 'https://textpro.me/decorate-purple-text-effect-917.html', + }, + { + 'title': 'Peridot-Stone', + 'url': 'https://textpro.me/peridot-stone-text-effect-916.html', + }, + { + 'title': 'Rock', + 'url': 'https://textpro.me/rock-text-effect-online-915.html', + }, + { + 'title': 'Lava', + 'url': 'https://textpro.me/lava-text-effect-online-914.html', + }, + { + 'title': 'Yellow-Glass', + 'url': 'https://textpro.me/yellow-glass-text-effect-913.html', + }, + { + 'title': 'Purple-Glass', + 'url': 'https://textpro.me/purple-glass-text-effect-912.html', + }, + { + 'title': 'Orange-Glass', + 'url': 'https://textpro.me/orange-glass-text-effect-911.html', + }, + { + 'title': 'Green-Glass', + 'url': 'https://textpro.me/green-glass-text-effect-910.html', + }, + { + 'title': 'Cyan-Glass', + 'url': 'https://textpro.me/cyan-glass-text-effect-909.html', + }, + { + 'title': 'Blue-Glass', + 'url': 'https://textpro.me/blue-glass-text-effect-908.html', + }, + { + 'title': 'Red-Glass', + 'url': 'https://textpro.me/red-glass-text-effect-907.html', + }, + { + 'title': 'Purple-Shiny-Glass', + 'url': 'https://textpro.me/purple-shiny-glass-text-effect-906.html', + }, + { + 'title': 'Captain-America', + 'url': 'https://textpro.me/captain-america-text-effect-905.html', + }, + { + 'title': 'Robot-R2-D2', + 'url': 'https://textpro.me/robot-r2-d2-text-effect-903.html', + }, + { + 'title': 'Rainbow-Equalizer', + 'url': 'https://textpro.me/rainbow-equalizer-text-effect-902.html', + }, + { + 'title': 'Toxic', + 'url': 'https://textpro.me/toxic-text-effect-online-901.html', + }, + { + 'title': 'Pink-Sparkling-Jewelry', + 'url': 'https://textpro.me/pink-sparkling-jewelry-text-effect-899.html', + }, + { + 'title': 'Blue-Sparkling-Jewelry', + 'url': 'https://textpro.me/blue-sparkling-jewelry-text-effect-898.html', + }, + { + 'title': 'Green-Sparkling-Jewelry', + 'url': 'https://textpro.me/green-sparkling-jewelry-text-effect-897.html', + }, + { + 'title': 'Purple-Sparkling-Jewelry', + 'url': 'https://textpro.me/purple-sparkling-jewelry-text-effect-896.html', + }, + { + 'title': 'Gold-Sparkling-Jewelry', + 'url': 'https://textpro.me/gold-sparkling-jewelry-text-effect-895.html', + }, + { + 'title': 'Red-Sparkling-Jewelry', + 'url': 'https://textpro.me/red-sparkling-jewelry-text-effect-894.html', + }, + { + 'title': 'Cyan-Sparkling-Jewelry', + 'url': 'https://textpro.me/cyan-sparkling-jewelry-text-effect-893.html', + }, + { + 'title': 'Purple-Glass', + 'url': 'https://textpro.me/purple-glass-text-effect-online-892.html', + }, + { + 'title': 'Decorative-Glass', + 'url': 'https://textpro.me/decorative-glass-text-effect-891.html', + }, + { + 'title': 'Chocolate-Cake', + 'url': 'https://textpro.me/chocolate-cake-text-effect-890.html', + }, + { + 'title': 'Strawberry', + 'url': 'https://textpro.me/strawberry-text-effect-online-889.html', + }, + { + 'title': 'Koi-Fish', + 'url': 'https://textpro.me/koi-fish-text-effect-online-888.html', + }, + { + 'title': 'Bread', + 'url': 'https://textpro.me/bread-text-effect-online-887.html', + }, + { + 'title': 'Matrix-Style', + 'url': 'https://textpro.me/matrix-style-text-effect-online-884.html', + }, + { + 'title': 'Horror-Blood', + 'url': 'https://textpro.me/horror-blood-text-effect-online-883.html', + }, + { + 'title': 'Neon-Light', + 'url': 'https://textpro.me/neon-light-text-effect-online-882.html', + }, + { + 'title': 'Thunder', + 'url': 'https://textpro.me/create-thunder-text-effect-online-881.html', + }, + { + 'title': '3D-Box', + 'url': 'https://textpro.me/3d-box-text-effect-online-880.html', + }, + { + 'title': 'Neon', + 'url': 'https://textpro.me/neon-text-effect-online-879.html', + }, + { + 'title': 'Road-Warning', + 'url': 'https://textpro.me/road-warning-text-effect-878.html', + }, + { + 'title': '3D-Steel', + 'url': 'https://textpro.me/3d-steel-text-effect-877.html', + }, + { + 'title': 'Bokeh', + 'url': 'https://textpro.me/bokeh-text-effect-876.html', + }, + { + 'title': 'Green-Neon', + 'url': 'https://textpro.me/green-neon-text-effect-874.html', + }, + { + 'title': 'Free-Advanced-Glow', + 'url': 'https://textpro.me/free-advanced-glow-text-effect-873.html', + }, + { + 'title': 'Dropwater', + 'url': 'https://textpro.me/dropwater-text-effect-872.html', + }, + { + 'title': 'Break-Wall', + 'url': 'https://textpro.me/break-wall-text-effect-871.html', + }, + { + 'title': 'Chrismast-Gift', + 'url': 'https://textpro.me/chrismast-gift-text-effect-869.html', + }, + { + 'title': 'Honey', + 'url': 'https://textpro.me/honey-text-effect-868.html', + }, + { + 'title': 'Plastic-Bag-Drug', + 'url': 'https://textpro.me/plastic-bag-drug-text-effect-867.html', + }, + { + 'title': 'Horror-Gift', + 'url': 'https://textpro.me/horror-gift-text-effect-866.html', + }, + { + 'title': 'Marble-Slabs', + 'url': 'https://textpro.me/marble-slabs-text-effect-864.html', + }, + { + 'title': 'Marble', + 'url': 'https://textpro.me/marble-text-effect-863.html', + }, + { + 'title': 'Ice-Cold', + 'url': 'https://textpro.me/ice-cold-text-effect-862.html', + }, + { + 'title': 'Fruit-Juice', + 'url': 'https://textpro.me/fruit-juice-text-effect-861.html', + }, + { + 'title': 'Rusty-Metal', + 'url': 'https://textpro.me/rusty-metal-text-effect-860.html', + }, + { + 'title': 'Abstra-Gold', + 'url': 'https://textpro.me/abstra-gold-text-effect-859.html', + }, + { + 'title': 'Biscuit', + 'url': 'https://textpro.me/biscuit-text-effect-858.html', + }, + { + 'title': 'Bagel', + 'url': 'https://textpro.me/bagel-text-effect-857.html', + }, + { + 'title': 'Wood', + 'url': 'https://textpro.me/wood-text-effect-856.html', + }, + { + 'title': 'SCI---Fi', + 'url': 'https://textpro.me/sci-fi-text-effect-855.html', + }, + { + 'title': 'Metal-Rainbow', + 'url': 'https://textpro.me/metal-rainbow-text-effect-854.html', + }, + { + 'title': 'Purple-Gem', + 'url': 'https://textpro.me/purple-gem-text-effect-853.html', + }, + { + 'title': 'Shiny-Metal', + 'url': 'https://textpro.me/shiny-metal-text-effect-852.html', + }, + { + 'title': 'Yellow-Jewelry', + 'url': 'https://textpro.me/yellow-jewelry-text-effect-851.html', + }, + { + 'title': 'Silver-Jewelry', + 'url': 'https://textpro.me/silver-jewelry-text-effect-850.html', + }, + { + 'title': 'Red-Jewelry', + 'url': 'https://textpro.me/red-jewelry-text-effect-849.html', + }, + { + 'title': 'Purple-Jewelry', + 'url': 'https://textpro.me/purple-jewelry-text-effect-848.html', + }, + { + 'title': 'Orange-Jewelry', + 'url': 'https://textpro.me/orange-jewelry-text-effect-847.html', + }, + { + 'title': 'Green-Jewelry', + 'url': 'https://textpro.me/green-jewelry-text-effect-846.html', + }, + { + 'title': 'Cyan-Jewelry', + 'url': 'https://textpro.me/cyan-jewelry-text-effect-845.html', + }, + { + 'title': 'Blue-Jewelry', + 'url': 'https://textpro.me/blue-jewelry-text-effect-844.html', + }, + { + 'title': 'Hot-Metal', + 'url': 'https://textpro.me/hot-metal-text-effect-843.html', + }, + { + 'title': 'Hexa-Golden', + 'url': 'https://textpro.me/hexa-golden-text-effect-842.html', + }, + { + 'title': 'Blue-Glitter', + 'url': 'https://textpro.me/blue-glitter-text-effect-841.html', + }, + { + 'title': 'Purple-Glitter', + 'url': 'https://textpro.me/purple-glitter-text-effect-840.html', + }, + { + 'title': 'Pink-Glitter', + 'url': 'https://textpro.me/pink-glitter-text-effect-839.html', + }, + { + 'title': 'Green-Glitter', + 'url': 'https://textpro.me/green-glitter-text-effect-838.html', + }, + { + 'title': 'Silver-Glitter', + 'url': 'https://textpro.me/silver-glitter-text-effect-837.html', + }, + { + 'title': 'Gold-Glitter', + 'url': 'https://textpro.me/gold-glitter-text-effect-836.html', + }, + { + 'title': 'Bronze-Glitter', + 'url': 'https://textpro.me/bronze-glitter-text-effect-835.html', + }, + { + 'title': 'Eroded-Metal', + 'url': 'https://textpro.me/eroded-metal-text-effect-834.html', + }, + { + 'title': 'Carbon', + 'url': 'https://textpro.me/carbon-text-effect-833.html', + }, + { + 'title': 'Pink-Candy', + 'url': 'https://textpro.me/pink-candy-text-effect-832.html', + }, + { + 'title': 'Blue-Metal', + 'url': 'https://textpro.me/blue-metal-text-effect-831.html', + }, + { + 'title': 'Blue-Gem', + 'url': 'https://textpro.me/blue-gem-text-effect-830.html', + }, + { + 'title': 'Black-Metal', + 'url': 'https://textpro.me/black-metal-text-effect-829.html', + }, + { + 'title': '3D-Glowing-Metal', + 'url': 'https://textpro.me/3d-glowing-metal-text-effect-828.html', + }, + { + 'title': '3D-Chrome', + 'url': 'https://textpro.me/3d-chrome-text-effect-827.html', + }, +]; + +async function maker(url, text) { + if (/https?:\/\/(ephoto360|photooxy|textpro)\/\.(com|me)/i.test(url)) throw new Error("URL Invalid") + try { + let a = await axios.get(url, { + headers: { + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", + "Origin": (new URL(url)).origin, + "Referer": url, + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188" + } + }) + let $ = cheerio.load(a.data) + let server = $('#build_server').val() + let serverId = $('#build_server_id').val() + let token = $('#token').val() + let submit = $('#submit').val() + let types = []; + $('input[name="radio0[radio]"]').each((i, elem) => { + types.push($(elem).attr("value")); + }) + let post; + if (types.length != 0) { + post = { + 'radio0[radio]': types[Math.floor(Math.random() * types.length)], + 'submit': submit, + 'token': token, + 'build_server': server, + 'build_server_id': Number(serverId) + }; + } + else { + post = { + 'submit': submit, + 'token': token, + 'build_server': server, + 'build_server_id': Number(serverId) + } + } + let form = new FormData() + for (let i in post) { + form.append(i, post[i]) + } + if (typeof text == "string") text = [text] + for (let i of text) form.append("text[]", i) + let b = await axios.post(url, form, { + headers: { + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", + "Origin": (new URL(url)).origin, + "Referer": url, + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188", + "Cookie": a.headers.get("set-cookie").join("; "), + ...form.getHeaders() + } + }) + $ = cheerio.load(b.data) + let out = ($('#form_value').first().text() || $('#form_value_input').first().text() || $('#form_value').first().val() || $('#form_value_input').first().val()) + let c = await axios.post((new URL(url)).origin + "/effect/create-image", JSON.parse(out), { + headers: { + "Accept": "*/*", + "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", + "Origin": (new URL(url)).origin, + "Referer": url, + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188", + "Cookie": a.headers.get("set-cookie").join("; ") + } + }) + return {status: c.data?.success, image: server + (c.data?.fullsize_image || c.data?.image || ""), session: c.data?.session_id} + } catch (e) { + throw e + } +} \ No newline at end of file diff --git a/plugins/malik-openai.js b/plugins/malik-openai.js new file mode 100644 index 0000000..84ff4f9 --- /dev/null +++ b/plugins/malik-openai.js @@ -0,0 +1,121 @@ +/* -------------------------------------------------------*/ +/* [❗] [❗] [❗] */ +/* */ +/* |- [ ⚠ ] - CREDITOS DEL CODIGO - [ ⚠ ] -| */ +/* —◉ DESAROLLADO POR OTOSAKA: */ +/* ◉ Otosaka (https://github.com/6otosaka9) */ +/* ◉ Número: wa.me/51993966345 */ +/* */ +/* —◉ FT: */ +/* ◉ BrunoSobrino (https://github.com/BrunoSobrino) */ +/* */ +/* [❗] [❗] [❗] */ +/* -------------------------------------------------------*/ +import fetch from 'node-fetch'; +import axios from 'axios'; +import translate from '@vitalets/google-translate-api'; +import {Configuration, OpenAIApi} from 'openai'; +const configuration = new Configuration({organization: global.openai_org_id, apiKey: global.openai_key}); +const openaiii = new OpenAIApi(configuration); +const handler = async (m, {conn, text, usedPrefix, command}) => { + if (usedPrefix == 'a' || usedPrefix == 'A') return; + if (!text) throw `*[❗] Please type some thing*`; + try { + conn.sendPresenceUpdate('composing', m.chat); + //let sistema1 = await fetch(`https://raw.githubusercontent.com/Skidy89/chat-gpt-jailbreak/main/Text.txt`).then(v => v.text()); + let sistema1 = `Mr-Malik AI tools created by Nasrullah.`; + async function getOpenAIChatCompletion(texto) { + const openaiAPIKey = global.openai_key; + let chgptdb = global.chatgpt.data.users[m.sender]; + chgptdb.push({ role: 'user', content: texto }); + const url = "https://api.openai.com/v1/chat/completions"; + const headers = { "Content-Type": "application/json", "Authorization": `Bearer ${openaiAPIKey}` }; + const data = { "model": "gpt-3.5-turbo", "messages": [{ "role": "system", "content": sistema1 }, ...chgptdb, ]}; + const response = await fetch(url, {method: "POST", headers: headers, body: JSON.stringify(data)}); + const result = await response.json(); + const finalResponse = result.choices[0].message.content; + return finalResponse; + }; + let respuesta = await getOpenAIChatCompletion(text); + if (respuesta == 'error' || respuesta == '' || !respuesta) return XD; // causar error undefined para usar otra api + m.reply(`${respuesta}\n\n🛆 *Created by Nasrullah*`.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const botIA222 = await openaiii.createCompletion({model: 'text-davinci-003', prompt: text, temperature: 0.3, max_tokens: 4097, stop: ['Ai:', 'Human:'], top_p: 1, frequency_penalty: 0.2, presence_penalty: 0}); + if (botIA222.data.choices[0].text == 'error' || botIA222.data.choices[0].text == '' || !botIA222.data.choices[0].text) return XD; // causar error undefined para usar otra api + m.reply(botIA222.data.choices[0].text.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const syms1 = `Mr-Malik.`; + const fgapi1 = await fetch(`https://api-fgmods.ddns.net/api/info/openai?text=${text}&symsg=${syms1}&apikey=XlwAnX8d`); + const fgjson1 = await fgapi1.json(); + if (fgjson1.result == 'error' || fgjson1.result == '' || !fgjson1.result) return XD; // causar error undefined para lanzar msg de error + m.reply(`${fgjson1.result}\n\n🛆 *Created by Nasrullah*`.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const vihangayt1 = await fetch(`https://vihangayt.me/tools/chatgpt?q=${text}`); + const vihangaytjson1 = await vihangayt1.json(); + if (vihangaytjson1.data == 'error' || vihangaytjson1.data == '' || !vihangaytjson1.data) return XD; // causar error undefined para usar otra api + m.reply(`${vihangaytjson1.data}\n\n🛆 *Created by Nasrullah*`.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const vihangayt2 = await fetch(`https://vihangayt.me/tools/chatgpt2?q=${text}`); + const vihangaytjson2 = await vihangayt2.json(); + if (vihangaytjson2.data == 'error' || vihangaytjson2.data == '' || !vihangaytjson2.data) return XD; // causar error undefined para usar otra api + m.reply(`${vihangaytjson2.data}\n\n🛆 *Created by Nasrullah*`.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const vihangayt3 = await fetch(`https://vihangayt.me/tools/chatgpt3?q=${text}`); + const vihangaytjson3 = await vihangayt3.json(); + if (vihangaytjson3.data == 'error' || vihangaytjson3.data == '' || !vihangaytjson3.data) return XD; // causar error undefined para usar otra api + m.reply(`${vihangaytjson3.data}\n\n🛆 *Created by Nasrullah*`.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const tioress22 = await fetch(`https://api.lolhuman.xyz/api/openai?apikey=${lolkeysapi}&text=${text}&user=${m.sender}`); + const hasill22 = await tioress22.json(); + if (hasill22.result == 'error' || hasill22.result == '' || !hasill22.result) return XD; // causar error undefined para usar otra api + const hasill22_result = await translate(`${hasill22.result}`, {to: 'en', autoCorrect: false}); + m.reply(`${hasill22_result.text}\n\n🛆 *Created by Nasrullah*`.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const searchString2 = ' united kingdom '; + const replacementString2 = ' en '; + const rres = await fetch(`https://api.ibeng.tech/api/others/chatgpt?q=Hola&apikey=eMlBNRzUXv`); + const jjson = await rres.json(); + const hahaha = await translate(`${jjson.data}`, {to: 'en', autoCorrect: false}); + const sextS = hahaha.text; + const replacedText = sextS.replace(searchString2, replacementString2).trim(); + m.reply(replacedText); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const akuariapi2 = await fetch(`https://api.akuari.my.id/ai/gpt?chat=${text}`); + const akuariapijson2 = await akuariapi2.json(); + if (akuariapijson2.respon == 'error' || akuariapijson2.respon == '' || !akuariapijson2.respon) return XD; // causar error undefined para lanzar msg de error + const akuariapiresult2 = await translate(`${akuariapijson2.respon}\n\n🛆 *Created by Nasrullah*`, {to: 'en', autoCorrect: false}); + m.reply(akuariapiresult2.text.trim()); + } catch { + try { + conn.sendPresenceUpdate('composing', m.chat); + const akuariapi1 = await fetch(`https://api.azz.biz.id/api/bard?q=${text}&key=global`); + const akuariapijson1 = await akuariapi1.json(); + if (akuariapijson1.respon == 'error' || akuariapijson1.respon == '' || !akuariapijson1.respon) return XD; // causar error undefined para usar otra api + const akuariapiresult1 = await translate(`${akuariapijson1.respon}`, {to: 'en', autoCorrect: false}); + m.reply(`${akuariapiresult1.text}\n\n🛆 *Created by Nasrullah*`.trim()); + } catch { + throw `*[❗] 𝙴𝚁𝚁𝙾𝚁, 𝚅𝚄𝙴𝙻𝚅𝙰 𝙰 𝙸𝙽𝚃𝙴𝙽𝚃𝙰𝚁𝙻𝙾*`; + }} + }} + }} + }} + }} +}; +handler.command = /^(openai|chatgpt|ia|robot|openai2|chatgpt2|ia2|robot2|Mystic|MysticBot)$/i; +export default handler; \ No newline at end of file