Skip to content

Commit

Permalink
REM-BOT
Browse files Browse the repository at this point in the history
  • Loading branch information
davidprospero123 authored Apr 16, 2024
1 parent f88a583 commit e536b2d
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions plugins/econ-darxp.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,25 @@ let handler = async (m, { conn, usedPrefix, args }) => {
let username = m.sender ? conn.getName(m.sender) : null;

if (!user)
throw `🟨 El usuario no estÑ registrado en la base de datos`;
throw `🟨 π™΄πš• πšžπšœπšžπšŠπš›πš’πš˜ πš—πš˜ 𝚎𝚜𝚝Ñ πš›πšŽπšπš’πšœπšπš›πšŠπšπš˜ πšŽπš— πš•πšŠ πš‹πšŠπšœπšŽ 𝚍𝚎 𝚍𝚊𝚝𝚘𝚜`;

let xpToAdd = args[1] ? parseInt(args[1]) : 1;

if (isNaN(xpToAdd) || xpToAdd < 1)
throw 'Por favor, introduce una cantidad vΓ‘lida de XP para aΓ±adir. Por ejemplo: .darxp @usuario 50';
throw 'π™Ώπš˜πš› πšπšŠπšŸπš˜πš›, πš’πš—πšπš›πš˜πšπšžπšŒπšŽ πšžπš—πšŠ πšŒπšŠπš—πšπš’πšπšŠπš πšŸΓ‘πš•πš’πšπšŠ 𝚍𝚎 πš‡π™Ώ πš™πšŠπš›πšŠ πšŠΓ±πšŠπšπš’πš›. π™Ώπš˜πš› πšŽπš“πšŽπš–πš™πš•πš˜: .πšπšŠπš›πš‘πš™ @πšžπšœπšžπšŠπš›πš’πš˜ 𝟻𝟢';

user.exp += xpToAdd;


const emojis = ['πŸ‘', 'πŸ‘', 'πŸŽ‰', 'πŸ’Ό', 'πŸ’°'];

let message = `
━━━━━━━━━━━━━━━━━
🌟 *DANDO XP* 🌟
━━━━━━━━━━━━━━━━━
πŸ‘€ *Usuario*: ${username}
πŸ’¬ *XP aΓ±adida*: ${xpToAdd}
━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━
🌟 *𝙳𝙰𝙽𝙳𝙾 πš‡π™Ώ* 🌟
━━━━━━━━━━━━━━━━━━━━
πŸ‘€ *πš„πšœπšžπšŠπš›πš’πš˜*: ${username}
πŸ’¬ *πš‡π™Ώ πšŠΓ±πšŠπšπš’πšπšŠ*: ${xpToAdd}
━━━━━━━━━━━━━━━━━━━━
`.trim();

try {
Expand All @@ -31,6 +34,11 @@ let handler = async (m, { conn, usedPrefix, args }) => {
} catch (e) {
await conn.reply(m.chat, message, m);
}


for (const emoji of emojis) {
await m.react(emoji);
}
}

handler.help = ['darxp', 'addxp'];
Expand Down

0 comments on commit e536b2d

Please sign in to comment.