diff --git a/config.js b/config.js index bded04d39..40595a754 100644 --- a/config.js +++ b/config.js @@ -28,15 +28,23 @@ global.BASE_API_DELIRIUS = "https://deliriusapi-official.vercel.app"; global.packname = ''; global.author = 'MysticMOD'; +global.wm = 'MysticMOD'; +global.titulowm = 'MysticMOD'; +global.titulowm2 = `MysticMOD` +global.igfg = 'MysticMOD'; global.wait = '*_[ ⏳ ] Cargando..._*'; /*global.imagen1 = fs.createReadStream('./src/assets/images/menu/languages/es/menu.png'); -global.imagen = fs.createReadStream('./src/assets/images/menu/languages/pt/menu.png'); -global.imagen = fs.createReadStream('./src/assets/images/menu/languages/fr/menu.png'); -global.imagen = fs.createReadStream('./src/assets/images/menu/languages/en/menu.png'); -global.imagen = fs.createReadStream('./src/assets/images/menu/languages/ru/menu.png');*/ +global.imagen2 = fs.createReadStream('./src/assets/images/menu/languages/pt/menu.png'); +global.imagen3 = fs.createReadStream('./src/assets/images/menu/languages/fr/menu.png'); +global.imagen4 = fs.createReadStream('./src/assets/images/menu/languages/en/menu.png'); +global.imagen5 = fs.createReadStream('./src/assets/images/menu/languages/ru/menu.png');*/ -global.imagen = fs.readFileSync('./src/assets/images/menu/languages/es/menu.png'); +global.imagen1 = fs.readFileSync('./src/assets/images/menu/languages/es/menu.png'); +global.imagen2 = fs.readFileSync('./src/assets/images/menu/languages/pt/menu.png'); +global.imagen3 = fs.readFileSync('./src/assets/images/menu/languages/fr/menu.png') +global.imagen4 = fs.readFileSync('./src/assets/images/menu/languages/en/menu.png') +global.imagen5 = fs.readFileSync('./src/assets/images/menu/languages/ru/menu.png') global.mods = []; @@ -49,12 +57,15 @@ global.mes = d.toLocaleDateString('es', {month: 'long'}); global.año = d.toLocaleDateString('es', {year: 'numeric'}); global.tiempo = d.toLocaleString('en-US', {hour: 'numeric', minute: 'numeric', second: 'numeric', hour12: true}); //* **************************** -global.author2 = `${dia} ${fecha}\nMysticMOD`; +global.wm2 = `${dia} ${fecha}\nMysticMOD`; global.gt = 'MysticMOD'; global.mysticbot = 'MysticMOD'; global.channel = ''; global.md = 'https://github.com/weskerty/TheMysticMOD'; global.mysticbot = 'https://github.com/weskerty/TheMysticMOD'; +global.waitt = '*_[ ⏳ ] Cargando..._*'; +global.waittt = '*_[ ⏳ ] Cargando..._*'; +global.waitttt = '*_[ ⏳ ] Cargando..._*'; global.nomorown = '595972184435'; global.pdoc = ['application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/msword', 'application/pdf', 'text/rtf']; global.cmenut = '❖––––––『'; diff --git a/plugins/buscador-githubsearch.js b/plugins/buscador-githubsearch.js index 5dcef266f..9cf35cf12 100644 --- a/plugins/buscador-githubsearch.js +++ b/plugins/buscador-githubsearch.js @@ -29,7 +29,7 @@ ${tradutor.texto1[3]} ${repo.clone_url} ${repo.description ? `📝 ${tradutor.texto1[4]}\n${repo.description}` : ''} `.trim()}).join('\n\n◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦\n\n'); conn.sendMessage(m.chat, {text: str.trim()}, {quoted: m}) -//conn.sendMessage(m.chat, {text: str.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, mentionedJid: [m.sender], "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.author, "containsAutoReply": true, "mediaType": 1, "thumbnail": imagen, "mediaUrl": `https://weskerty.github.io/MysticTools/`, "sourceUrl": `https://weskerty.github.io/MysticTools/`}}}, {quoted: m}); +//conn.sendMessage(m.chat, {text: str.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, mentionedJid: [m.sender], "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.titulowm2, "containsAutoReply": true, "mediaType": 1, "thumbnail": imagen, "mediaUrl": `https://weskerty.github.io/MysticTools/`, "sourceUrl": `https://weskerty.github.io/MysticTools/`}}}, {quoted: m}); }; handler.help = ['githubs']; handler.tags = ['buscadores']; diff --git a/plugins/downloader-spotifyPlay.js b/plugins/downloader-spotifyPlay.js index 8cb3f0343..e56c36785 100644 --- a/plugins/downloader-spotifyPlay.js +++ b/plugins/downloader-spotifyPlay.js @@ -28,7 +28,7 @@ const handler = async (m, { conn, text }) => { spotifyi += ` ${tradutor.texto3[3]} ${album.metadata.releaseDate}\n` spotifyi += ` ${tradutor.texto3[4]} ${album.trackList.length}\n\n` spotifyi += `${tradutor.texto3[5]}` - await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.author, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": isSpotifyUrl[0], "sourceUrl": isSpotifyUrl[0]}}}, {quoted: m}); + await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.titulowm2, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": isSpotifyUrl[0], "sourceUrl": isSpotifyUrl[0]}}}, {quoted: m}); for (let i = 0; i < album.trackList.length; i++) { await conn.sendMessage(m.chat, {audio: album.trackList[i].audioBuffer, fileName: `${album.trackList[i].metadata.name}.mp3`, mimetype: 'audio/mpeg'}, {quoted: m}); } @@ -44,7 +44,7 @@ const handler = async (m, { conn, text }) => { spotifyi += ` ${tradutor.texto4[4]} ${track.album.name}\n` spotifyi += ` ${tradutor.texto4[5]} ${track.album.releasedDate}\n\n` spotifyi += `${tradutor.texto4[6]}` - await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.author, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": track.url, "sourceUrl": track.url}}}, {quoted: m}); + await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.titulowm2, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": track.url, "sourceUrl": track.url}}}, {quoted: m}); await conn.sendMessage(m.chat, {audio: dlspoty, fileName: `${track.title}.mp3`, mimetype: 'audio/mpeg'}, {quoted: m}); } else if (isSpotifyUrl[2] === 'playlist') { @@ -60,7 +60,7 @@ const handler = async (m, { conn, text }) => { spotifyi += ` ${tradutor.texto5[1]} ${playlistInfoByID.name}\n` spotifyi += ` ${tradutor.texto5[2]} ${tracks.length}\n\n` spotifyi += `${tradutor.texto5[3]}` - await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.author, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": playlistInfoByID.external_urls.spotify, "sourceUrl": playlistInfoByID.external_urls.spotify}}}, {quoted: m}); + await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.titulowm2, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": playlistInfoByID.external_urls.spotify, "sourceUrl": playlistInfoByID.external_urls.spotify}}}, {quoted: m}); let target = m.chat; if (m.isGroup && tracks.length > 20) { target = m.sender; @@ -81,7 +81,7 @@ for (let i = 0; i < tracks.length; i++) { spotifyi += ` ${tradutor.texto6[4]} ${searchTrack.album.name}\n` spotifyi += ` ${tradutor.texto6[5]} ${searchTrack.album.releasedDate}\n\n` spotifyi += `${tradutor.texto6[6]}` - await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.author, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": searchTrack.url, "sourceUrl": searchTrack.url}}}, {quoted: m}); + await conn.sendMessage(m.chat, {text: spotifyi.trim(), contextInfo: {forwardingScore: 9999999, isForwarded: true, "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.titulowm2, "containsAutoReply": true, "mediaType": 1, "thumbnail": img, "thumbnailUrl": img, "mediaUrl": searchTrack.url, "sourceUrl": searchTrack.url}}}, {quoted: m}); await conn.sendMessage(m.chat, {audio: dlspoty, fileName: `${searchTrack.title}.mp3`, mimetype: 'audio/mpeg'}, {quoted: m}); } } catch (error) { diff --git a/plugins/info-repositorio.js b/plugins/info-repositorio.js index 8efd748ab..ac23c8565 100644 --- a/plugins/info-repositorio.js +++ b/plugins/info-repositorio.js @@ -18,7 +18,7 @@ const handler = async (m, { conn, args, usedPrefix }) => { txt += `${tradutor.texto1[6]} ${json?.html_url || tradutor.texto1[7]}\n\n`; txt += `${json?.forks_count || '-'} ${tradutor.texto1[8]} ${json?.stargazers_count || '-'} ${tradutor.texto1[9]} ${json?.open_issues_count || '-'} ${tradutor.texto1[10]}`; txt += `${tradutor.texto1[11]}\n_${usedPrefix}gitclone ${json?.html_url || 'https://github.com/weskerty/TheMysticMOD'}_`; - await conn.sendMessage(m.chat, { text: txt.trim(), mentions: [...txt.matchAll(/@([0-9]{5,16}|0)/g)].map((v) => v[1] + '@s.whatsapp.net'), contextInfo: { forwardingScore: 9999999, isForwarded: true, mentionedJid: [...txt.matchAll(/@([0-9]{5,16}|0)/g)].map((v) => v[1] + '@s.whatsapp.net'), "externalAdReply": { "showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.author, "containsAutoReply": true, "mediaType": 1, "thumbnail": imagen4, "mediaUrl": `https://weskerty.github.io/MysticTools/`, "sourceUrl": `https://weskerty.github.io/MysticTools/` } } }, { quoted: m }); + await conn.sendMessage(m.chat, { text: txt.trim(), mentions: [...txt.matchAll(/@([0-9]{5,16}|0)/g)].map((v) => v[1] + '@s.whatsapp.net'), contextInfo: { forwardingScore: 9999999, isForwarded: true, mentionedJid: [...txt.matchAll(/@([0-9]{5,16}|0)/g)].map((v) => v[1] + '@s.whatsapp.net'), "externalAdReply": { "showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.titulowm2, "containsAutoReply": true, "mediaType": 1, "thumbnail": imagen4, "mediaUrl": `https://weskerty.github.io/MysticTools/`, "sourceUrl": `https://weskerty.github.io/MysticTools/` } } }, { quoted: m }); }; handler.command = ['script', 'repositorio', 'repo'] export default handler; diff --git a/plugins/owner-join.js b/plugins/owner-join.js index babd43d56..2cc99bb2d 100644 --- a/plugins/owner-join.js +++ b/plugins/owner-join.js @@ -22,7 +22,7 @@ const handler = async (m, {conn, text, isMods, isOwner, isPrems}) => { conn.sendMessage(m.chat, {text: tradutor.texto3}, {quoted: m}); const data = global.owner.filter(([id]) => id)[0]; const dataArray = Array.isArray(data) ? data : [data]; - for (const entry of dataArray) await conn.sendMessage(entry + '@s.whatsapp.net', {text: tradutor.texto4 + '@' + m.sender.split('@')[0] + '\n*—◉ Link del grupo:* ' + link, mentions: [m.sender], contextInfo: {forwardingScore: 9999999, isForwarded: true, mentionedJid: [m.sender], "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.author, "containsAutoReply": true, "mediaType": 1, "thumbnail": imagen6, "mediaUrl": `${link}`, "sourceUrl": `${link}`}}}, {quoted: m}); + for (const entry of dataArray) await conn.sendMessage(entry + '@s.whatsapp.net', {text: tradutor.texto4 + '@' + m.sender.split('@')[0] + '\n*—◉ Link del grupo:* ' + link, mentions: [m.sender], contextInfo: {forwardingScore: 9999999, isForwarded: true, mentionedJid: [m.sender], "externalAdReply": {"showAdAttribution": true, "containsAutoReply": true, "renderLargerThumbnail": true, "title": global.titulowm2, "containsAutoReply": true, "mediaType": 1, "thumbnail": imagen6, "mediaUrl": `${link}`, "sourceUrl": `${link}`}}}, {quoted: m}); enviando = false } } catch {