From 42da10009aed88a837c3f833d3d0db6dd4fa7598 Mon Sep 17 00:00:00 2001 From: elrebelde21 <107805973+elrebelde21@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:27:35 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9D=99=87=F0=9D=99=A4=F0=9D=99=A1?= =?UTF-8?q?=F0=9D=99=9E=F0=9D=98=BD=F0=9D=99=A4=F0=9D=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/fun-game.js | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/plugins/fun-game.js b/plugins/fun-game.js index f76e7a37a..112d5a5bf 100644 --- a/plugins/fun-game.js +++ b/plugins/fun-game.js @@ -13,6 +13,8 @@ if (!db.data.chats[m.chat].game) return m.reply(`${lenguajeGB['smsAvisoAG']()} try { if (command == 'ppt' || command == 'pvp' || command == 'suit' || command == 'suitpvp') { +const time = global.db.data.users[m.sender].wait + 10000; +if (new Date - global.db.data.users[m.sender].wait < 10000) return m.reply(`*๐Ÿ•“ ๐™ƒ๐™š๐™ฎ, ๐™€๐™จ๐™ฅ๐™š๐™ง๐™– ${Math.floor((time - new Date()) / 1000)} ๐™–๐™ฃ๐™ฉ๐™š๐™จ ๐™™๐™š ๐™ช๐™จ๐™–๐™ง ๐™ค๐™ฉ๐™ง๐™ค๐™จ ๐™˜๐™ค๐™ข๐™–๐™ฃ๐™™๐™ค*\n\n*แดบแต’ สฐแตƒแตแตƒโฟ หขแต–แตƒแต*`) let textquien = `${lenguajeGB['smsAvisoMG']()}๐๐ข๐ž๐๐ซ๐š ๐Ÿ—ฟ, ๐๐š๐ฉ๐ž๐ฅ ๐Ÿ“„ ๐จ ๐“๐ข๐ฃ๐ž๐ซ๐š โœ‚๏ธ\n\n๐Ÿ‘พ ๐™…๐™ช๐™œ๐™–๐™ง ๐™ช๐™ฃ ๐™‹๐™‹๐™ ๐™˜๐™ค๐™ฃ ๐™š๐™ก ๐™—๐™ค๐™ฉ ๐™ช๐™จ๐™–๐™ง ๐™ก๐™ค๐™จ ๐™จ๐™ž๐™œ๐™ช๐™ž๐™š๐™ฃ๐™ฉ๐™š๐™จ ๐™˜๐™ค๐™ข๐™–๐™ฃ๐™™๐™ค :\nโ€ข ${usedPrefix + command} piedra\nโ€ข ${usedPrefix + command} papel\nโ€ข ${usedPrefix + command} tijera\n\n๐Ÿ•น ๐™…๐™ช๐™œ๐™–๐™ง ๐™ช๐™ฃ ๐™‹๐™‹๐™ ๐™˜๐™ค๐™ฃ ๐™ช๐™ฃ ๐™ช๐™จ๐™ช๐™–๐™ง๐™ž๐™ค, ๐™€๐™ฉ๐™ž๐™ฆ๐™ช๐™š๐™ฉ๐™–๐™ง๐™ก๐™ค ๐™š๐™Ÿ๐™š๐™ข๐™ฅ๐™ก๐™ค :\n${usedPrefix + command} @0` if (!m.mentionedJid[0] && !args[0]) return m.reply(textquien, m.chat, {mentions: conn.parseMention(textquien)}, {quoted: fkontak }) let who @@ -29,44 +31,46 @@ astro = 'tijera'; astro = 'papel'; } if (text == astro) { -let money = global.db.data.users[m.sender].money += 2; -conn.reply(m.chat, `\`ใ€Œ ๐™€๐™ˆ๐™‹๐˜ผ๐™๐™€ ๐Ÿคใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) +let money = global.db.data.users[m.sender].exp += 500; +conn.reply(m.chat, `\`ใ€Œ ๐™€๐™ˆ๐™‹๐˜ผ๐™๐™€ ๐Ÿคใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money} XP`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) } else if (text == 'papel') { if (astro == 'piedra') { let money = global.db.data.users[m.sender].money += 100 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money} Coins`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); } else { -let money = global.db.data.users[m.sender].money -= 25 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) +let money = global.db.data.users[m.sender].exp -= 300 +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\nโŒ Premios : -${money} XP`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) }} else if (text == 'tijera') { if (astro == 'papel') { let money = global.db.data.users[m.sender].money += 900 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money} Coins`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); } else { let money = global.db.data.users[m.sender].money -= 300 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\nโŒ Premios : -${money} Coins`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) }} else if (text == 'tijera') { if (astro == 'papel') { -let money = global.db.data.users[m.sender].money += 1000 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); +let money = global.db.data.users[m.sender].exp += 1000 +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money} XP`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); } else { -let money = global.db.data.users[m.sender].money -= 300 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) +let money = global.db.data.users[m.sender].exp -= 300 +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\nโŒ Premios : -${money} XP`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) }} else if (text == 'papel') { if (astro == 'piedra') { let money = global.db.data.users[m.sender].money += 1000 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money} coins`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); } else { -let money = global.db.data.users[m.sender].money -= 300 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) +let money = global.db.data.users[m.sender].exp -= 300 +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\nโŒ Premios : -${money} XP`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}) }} else if (text == 'piedra') { if (astro == 'tijera') { let money = global.db.data.users[m.sender].money += 1000 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money} coins`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}}); //m.reply(`*โ•ญโ”โ”โ”โ”[ ๐™ƒ๐˜ผ ๐™‚๐˜ผ๐™‰๐˜ผ๐˜ฟ๐™Š! ๐ŸŽ‰ ]โ”โ”โ”โฌฃ*\nโ”ƒ${name} ๐™๐™จ๐™ฉ๐™š๐™™: ${text}\nโ”ƒ๐Ÿฑ ๐™‚๐™–๐™ฉ๐™–๐˜ฝ๐™ค๐™ฉ: ${astro}\nโ”ƒ๐Ÿ’ฐ ๐™‹๐™ง๐™š๐™ข๐™ž๐™ค: ${[money0].getRandom()} ๐™‚๐™–๐™ฉ๐™–๐˜พ๐™ค๐™ž๐™ฃ๐™จ\nโ”ƒ๐Ÿ’ต ๐™Ž๐™ช ๐˜ฟ๐™ž๐™ฃ๐™š๐™ง๐™ค: ${money} ๐™‚๐™–๐™ฉ๐™–๐˜พ๐™ค๐™ž๐™ฃ๐™จ\nโ•ฐโ”โ”โ”โ”โ”โ”[ ${vs} ]โ”โ”โ”โ”โ”โฌฃ`); } else { let money = global.db.data.users[m.sender].money -= 300 -conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\n๐ŸŽ Premios : ${money}`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}})}} +conn.reply(m.chat, `\`ใ€Œ ๐™ƒ๐˜ผ ๐™‹๐™€๐™๐˜ฟ๐™„๐˜ฟ๐™Š! ๐Ÿคก ใ€\`\n\n๐Ÿ‘‰ Tu: ${text}\n๐Ÿ‘‰ El Bot : ${astro}\nโŒ Premios : -${money} coins`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: name, body: wm, previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}})} +global.db.data.users[m.sender].wait = new Date * 1; +} if (Object.values(conn.suit).find(room => room.id.startsWith('suit') && [room.p, room.p2].includes(m.sender))) return m.reply(`${lenguajeGB['smsAvisoAG']()}๐™๐™š๐™ง๐™ข๐™ž๐™ฃ๐™– ๐™ฉ๐™ช ๐™ฅ๐™–๐™ง๐™ฉ๐™ž๐™™๐™– ๐™–๐™ฃ๐™ฉ๐™š๐™จ ๐™™๐™š ๐™ž๐™ฃ๐™ž๐™˜๐™ž๐™– ๐™ค๐™ฉ๐™ง๐™–`) if (Object.values(conn.suit).find(room => room.id.startsWith('suit') && [room.p, room.p2].includes(m.mentionedJid[0]))) return m.reply(`${lenguajeGB['smsAvisoIIG']()}๐™‡๐™– ๐™ฅ๐™š๐™ง๐™จ๐™ค๐™ฃ๐™– ๐™– ๐™ก๐™– ๐™ฆ๐™ช๐™š ๐™ฆ๐™ช๐™ž๐™š๐™ง๐™š๐™จ ๐™™๐™š๐™จ๐™–๐™›๐™ž๐™–๐™ง ๐™– ๐™ช๐™ฃ ๐™š๐™จ๐™ฉ๐™– ๐™Ÿ๐™ช๐™œ๐™–๐™ฃ๐™™๐™ค ๐™ค๐™ฉ๐™ง๐™– ๐™ฅ๐™–๐™ง๐™ฉ๐™ž๐™™๐™–, ๐™€๐™จ๐™ฅ๐™š๐™ง๐™š ๐™– ๐™ฆ๐™ช๐™š ๐™ฉ๐™š๐™ง๐™ข๐™ž๐™ฃ๐™š ๐™™๐™š ๐™Ÿ๐™ช๐™œ๐™–๐™ง`)