afk-afk.js 529 B

1234567891011121314151617
  1. const handler = async (m, {text}) => {
  2. const user = global.db.data.users[m.sender];
  3. user.afk = + new Date;
  4. user.afkReason = text;
  5. m.reply(`『 AFK 』
  6. > ᴇsᴛᴇ ᴜsᴜᴀʀɪᴏ : ${conn.getName(m.sender)} ᴇsᴛᴀ ɪɴᴀᴄᴛɪᴠᴏ.
  7. \`💤 NO LOS ETIQUETE 💤\`
  8. *☣️ ᴍᴏᴛɪᴠᴏs :* ${text ? ': ' + text : 'paja'}`);
  9. };
  10. handler.help = ['afk [alasan]'];
  11. handler.tags = ['econ'];
  12. handler.command = /^afk$/i;
  13. handler.money = 75
  14. handler.register = true
  15. export default handler;