-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
792a0b8
commit b283d43
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -496,43 +496,43 @@ ${tradutor.texto1[16]} | |
|
||
let pp | ||
// Nuevas ImΓ‘genes del menu para otros idiomas | ||
if (language == 'es') { | ||
pp = global.image1 | ||
} else if (language == 'pt-br') { | ||
pp = global.image2 | ||
} else if (language == 'fr') { | ||
pp = global.image3 | ||
}else if (language == 'en') { | ||
pp = global.image4 | ||
} else if (language == 'ru') { | ||
pp = global.image5 | ||
if (idioma == 'es') { | ||
pp = global.imagen1 | ||
} else if (idioma == 'pt-br') { | ||
pp = global.imagen2 | ||
} else if (idioma == 'fr') { | ||
pp = global.imagen3 | ||
}else if (idioma == 'en') { | ||
pp = global.imagen4 | ||
} else if (idioma == 'ru') { | ||
pp = global.imagen5 | ||
} else { | ||
pp = global.image1 // Imagen por defecto (EspaΓ±ol/Spanish) | ||
pp = global.imagen1 // Imagen por defecto (EspaΓ±ol/Spanish) | ||
} | ||
|
||
|
||
|
||
if (m.isGroup) { | ||
// await conn.sendFile(m.chat, vn, './src/assets/audio/01J673Y3TGCFF1D548242AX68Q.mp3', null, m, true, { type: 'audioMessage', ptt: true}) | ||
conn.sendMessage(m.chat, { image: pp, caption: str.trim(), mentions: [...str.matchAll(/@([0-9]{5,16}|0)/g) ].map((v) => v[1] + '@s.whatsapp.net') }, { quoted: m }); | ||
conn.sendMessage(m.chat, { image: pp, caption: str.trim(), mentions: [...str.matchAll(/@([0-9]{5,16}|0)/g)].map((v) => v[1] + '@s.whatsapp.net') }, { quoted: m }); | ||
} else { | ||
//await conn.sendFile(m.chat, vn, './src/assets/audio/01J673Y3TGCFF1D548242AX68Q.mp3', null, m, true, { type: 'audioMessage', ptt: true}) | ||
const fkontak = { key: { participants:"[email protected]", "remoteJid": "status@broadcast", "fromMe": false, "id": "Halo" }, "message": { " contactMessage": { "vcard": `BEGIN:VCARD\nVERSION:3.0\nN:Sy;Bot;;;\nFN:y\nitem1.TEL;waid=${m.sender.split('@')[0]}:${m.sender .split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD` }}, "participant": "[email protected]" } | ||
conn.sendMessage(m.chat, { image: pp, caption: str.trim(), mentions: [...str.matchAll(/@([0-9]{5,16}|0)/g) ].map((v) => v[1] + '@s.whatsapp.net') }, { quoted: fkontak }); | ||
conn.sendMessage(m.chat, { image: pp, caption: str.trim(), mentions: [...str.matchAll(/@([0-9]{5,16}|0)/g)].map((v) => v[1] + '@s.whatsapp.net') }, { quoted: fkontak }); | ||
} | ||
} catch { | ||
const datas = global | ||
const language = datas.db.data.users[m.sender].language || global.defaultLanguage | ||
const _translate = JSON.parse(fs.readFileSync(`./src/languages/${language}.json`)) | ||
const translator = _translate.plugins.menu_menu | ||
|
||
conn.reply(m.chat, translator.text1[29], m); | ||
const idioma = datas.db.data.users[m.sender].language || global.defaultLenguaje | ||
const _translate = JSON.parse(fs.readFileSync(`./src/languages/${idioma}.json`)) | ||
const tradutor = _translate.plugins.menu_menu | ||
conn.reply(m.chat, translator.texto1[29], m); | ||
} | ||
}; | ||
handler.command = /^(menu|menu|memu|memu|help|info|commands|allmenu|2help|menu1.2|help|commands|commandos|cmd)$/i; | ||
handler.command = /^(menu|help|comandos|commands|cmd|cmds)$/i; | ||
handler.exp = 50; | ||
handler.fail = null; | ||
export defaulthandler; | ||
export default handler; | ||
function clockString(ms) { | ||
const h = isNaN(ms) ? '--' : Math.floor(ms / 3600000); | ||
const m = isNaN(ms) ? '--' : Math.floor(ms / 60000) % 60; | ||
|