| 123456789101112131415161718192021222324252627282930313233 |
- global.math = global.math ? global.math : {}
- let handler = async (m, { conn }) => {
- let id = m.chat
- let 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]" }
- if (!m.quoted) return
- if (m.quoted.sender != conn.user.jid) return
- if (!/^๐พ๐ช๐๐ก ๐๐จ ๐ง๐๐จ๐ช๐ก๐ฉ๐๐๐ค ๐๐/i.test(m.quoted.text)) return
- if (!(m.chat in global.math)) return conn.reply(m.chat, `โ ๏ธ ๐๐ผ ๐๐ ๐๐๐๐๐๐๐ฟ๐๐ ๐๐๐๐ผ ๐๐๐๐๐๐๐๐ผ`, m)
- //conn.sendButton(m.chat, `${lenguajeGB['smsAvisoMG']()}๐๐ผ ๐๐ ๐๐๐๐๐๐๐ฟ๐๐ ๐๐๐๐ผ ๐๐๐๐๐๐๐๐ผ\n๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐ผ๐ ๐ผ๐๐๐๐ผ๐ฟ๐ ๐ฝ๐๐๐ ๐ผ๐๐๐๐๐๐๐ฟ`, wm, null, [['๐๐ค๐ก๐ซ๐๐ง ๐ ๐
๐ช๐๐๐ง ๐งฎ', `/math`], ['๐๐ค๐ก๐ซ๐๐ง ๐๐ก ๐๐๐ฃ๐ชฬ | ๐ฝ๐๐๐ ๐ฉ๐ค ๐๐๐ฃ๐ช โ๏ธ', '/menu']], m)
- if (m.quoted.id == global.math[id][0].id) {
- let math = global.math[id][1]
- let coins = global.db.data.users[m.sender].money += 500
- if (m.text == math.result) {
-
- await conn.reply(m.chat, `๐ ๐๐๐๐๐๐๐๐๐ผ ๐พ๐๐๐๐๐พ๐๐ผ\n๐๐๐ ๐๐๐ ๐\nโโโโโโโโโโโโโโโโโ\n๐๐ผ๐๐ผ๐๐๐\n๐ *_${math.bonus}_* ๐๐\nโโโโโโโโโโโโโโโโโ\n๐ฝ๐๐๐\n๐ *_$500_* ๐๐๐ง๐ญ๐ฎ๐พ๐ค๐๐ฃ๐จ\nโโโโโโโโโโโโโโโโโ\n๐๐ ๐ฟ๐๐๐๐๐\n๐ต *_${coins}_* ๐๐๐ง๐ญ๐ฎ๐พ๐ค๐๐ฃ๐จ`, fkontak, m)
- //conn.sendButton(m.chat, `๐ ๐๐๐๐๐๐๐๐๐ผ ๐พ๐๐๐๐๐พ๐๐ผ\n๐๐๐ ๐๐๐ ๐\nโโโโโโโโโโโโโโโโโ\n๐๐ผ๐๐ผ๐๐๐ | ๐๐๐\n๐ *_${math.bonus}_* ๐๐\nโโโโโโโโโโโโโโโโโ\n๐ฝ๐๐๐ | ๐ฝ๐๐๐๐\n๐ *_$500_* ๐๐๐ฉ๐๐พ๐ค๐๐ฃ๐จ\nโโโโโโโโโโโโโโโโโ\n๐๐ ๐ฟ๐๐๐๐๐ | ๐๐๐๐ ๐๐๐๐๐\n๐ต *_$${gatacoins}_* ๐๐๐ฉ๐๐พ๐ค๐๐ฃ๐จ`, wm, null, [['๐๐ค๐ก๐ซ๐๐ง ๐ ๐
๐ช๐๐๐ง ๐งฎ', `/math ${math.mode}`], ['๐๐๐ฃ๐ช ๐
๐ช๐๐๐ค๐จ | ๐๐๐ข๐๐จ ๐๐๐ฃ๐ช ๐ก', `.juegosmenu`]], m)
- global.db.data.users[m.sender].exp += math.bonus
- clearTimeout(global.math[id][3])
- delete global.math[id]
- } else {
- if (--global.math[id][2] == 0) {
- await conn.reply(m.chat, `โ ๏ธ ๐๐ ๐ผ๐พ๐ผ๐ฝ๐ผ๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐ฟ๐ผ๐ฟ๐๐\n๐๐ผ ๐๐๐๐๐๐๐๐๐ผ ๐๐ *${math.result}*`, m)
- //conn.sendButton(m.chat, `${lenguajeGB['smsAvisoAG']()}๐๐ ๐ผ๐พ๐ผ๐ฝ๐ผ๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐ฟ๐ผ๐ฟ๐๐\n๐๐ผ ๐๐๐๐๐๐๐๐๐ผ ๐๐ *${math.result}*\n\n๐๐๐๐ ๐๐๐๐๐ ๐ผ๐๐ ๐๐๐๐\n๐๐๐ ๐ผ๐๐๐๐๐ ๐๐ *${math.result}*`, wm, null, [['๐๐ค๐ก๐ซ๐๐ง ๐ ๐
๐ช๐๐๐ง ๐งฎ', `/math ${math.mode}`], ['๐๐ค๐ฅ๐จ | ๐๐๐ฃ๐ ๐๐ฃ๐ ๐', `.top`]], m)
- clearTimeout(global.math[id][3])
- delete global.math[id]
- } else conn.reply(m.chat, `โ ๏ธ ๐๐๐๐๐๐๐๐๐ผ ๐๐๐พ๐๐๐๐๐พ๐๐ผ!!\n๐๐ ๐๐๐๐ฟ๐ผ๐ *${global.math[id][2]}* ๐๐๐๐๐๐๐๐๐ฟ๐ผ๐ฟ๐๐ ๐ฑ`, m)
- }}}
- handler.customPrefix = /^-?[0-9]+(\.[0-9]+)?$/
- handler.command = new RegExp
- handler.exp = 0
- handler.register = true
- export default handler
|