Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.run = {
- usage: ['bansos'],
- use: ['111|111|1111'],
- category: 'owner',
- async: async (m, {
- client,
- args,
- isPrefix,
- command,
- participants,
- Func
- }) => {
- try {
- if (args.length < 3) return client.reply(m.chat, Func.example(isPrefix, command, ' [point]|[limit]|[money]'), m)
- let point = args[0]
- let limit = args[1]
- let money = args[2]
- let users = participants.map(u => u.jid)
- let user_h = participants.map(u => u.id)
- users.forEach(async (user) => {
- let user = global.db.data.users[user]
- user.point += point * 1
- user.limit += limit * 1
- user.money += money * 1
- })
- return client.reply(m.chat, `🎉 Congratulations! all users have received *${point}* points, *${limit}* limits, and *${money}* money.`, m,{
- mentions: user_h
- }
- )
- } catch (e) {
- return client.reply(m.chat, Func.jsonFormat(e), m)
- }
- },
- error: false,
- limit: true,
- group: true,
- cache: true,
- owner: true,
- location: __filename
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement