From f9beaf45752c2de215de74247d3a9a3eeb72014e Mon Sep 17 00:00:00 2001 From: GabrielCuri <133716066+davidprospero123@users.noreply.github.com> Date: Mon, 15 Apr 2024 18:00:47 -0500 Subject: [PATCH] REM-BOT --- plugins/econ-convertGold.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 plugins/econ-convertGold.js diff --git a/plugins/econ-convertGold.js b/plugins/econ-convertGold.js deleted file mode 100644 index d5a03c6..0000000 --- a/plugins/econ-convertGold.js +++ /dev/null @@ -1,30 +0,0 @@ -const xpPerCredit = 100; -const goldPerXP = 100 / xpPerCredit; - -let handler = async (m, { conn, command, args }) => { - let user = global.db.data.users[m.sender]; - let count = command.replace(/^buyxp/i, ''); - count = count ? /all/i.test(count) ? Math.floor(user.credit / goldPerXP) : parseInt(count) : args[0] ? parseInt(args[0]) : 1; - count = Math.max(1, count); - - - if (user.credit >= goldPerXP * count) { - user.credit -= goldPerXP * count; - user.exp += count; - conn.reply(m.chat, ` -┌─「 *COMPRA DE XP* 」 -‣ *XP adquirida*: +${count} -‣ *Oro gastado*: -${goldPerXP * count} 💰 -└──────────────`, m); - } else { - conn.reply(m.chat, `❎ Lo siento, no tienes suficiente *oro* para comprar *${count}* XP\n\nPuedes obtener más *oro* participando en juegos y actividades del menú`, m); - } -} - -handler.help = ['buyxp', 'buyxpa']; -handler.tags = ['rpg', 'economy']; -handler.command = ['buyxp', 'buyxpa']; - -handler.disabled = false; - -export default handler;