Advertisement
AnshorFalahi

Untitled

May 22nd, 2024
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exports.run = {
  2.     usage: ['bansos'],
  3.     use: ['111|111|1111'],
  4.     category: 'owner',
  5.     async: async (m, {
  6.         client,
  7.         args,
  8.         isPrefix,
  9.         command,
  10.         participants,
  11.         Func
  12.     }) => {
  13.         try {
  14.             if (args.length < 3) return client.reply(m.chat, Func.example(isPrefix, command, '  [point]|[limit]|[money]'), m)
  15.             let point = args[0]
  16.             let limit = args[1]
  17.             let money = args[2]
  18.             let users = participants.map(u => u.jid)
  19.             let user_h = participants.map(u => u.id)
  20.  
  21.             users.forEach(async (user) => {
  22.                 let user = global.db.data.users[user]
  23.                 user.point += point * 1
  24.                 user.limit += limit * 1
  25.                 user.money += money * 1
  26.             })
  27.             return client.reply(m.chat, `🎉 Congratulations! all users have received *${point}* points, *${limit}* limits, and *${money}* money.`, m,{
  28.                 mentions: user_h
  29.             }
  30.             )
  31.         } catch (e) {
  32.             return client.reply(m.chat, Func.jsonFormat(e), m)
  33.         }
  34.     },
  35.     error: false,
  36.     limit: true,
  37.     group: true,
  38.     cache: true,
  39.     owner: true,
  40.     location: __filename
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement