const free = 5000 const prem = 20000 let handler = async (m, {conn, isPrems }) => { let time = global.db.data.users[m.sender].lastclaim + 86400000 if (new Date - global.db.data.users[m.sender].lastclaim < 86400000) throw `āš ļø š™”š™– š™§š™šš™˜š™”š™–š™¢š™–š™Øš™©š™š š™©š™Ŗ š™§š™šš™œš™–š™”š™¤ šŸŽ\nš™‘š™Ŗš™šš™”š™«š™š š™šš™£ *${msToTime(time - new Date())}* š™‹š™–š™§š™– š™«š™¤š™”š™«š™šš™§ š™– š™§š™šš™˜š™”š™–š™¢š™–š™§*` const limit = Math.floor(Math.random() * 30) const money = Math.floor(Math.random() * 800) global.db.data.users[m.sender].limit += limit; global.db.data.users[m.sender].money += money global.db.data.users[m.sender].exp += isPrems ? prem : free m.reply(`šŸŽ *š™Šš™—š™©š™žš™šš™£š™š š™Ŗš™£ š™§š™šš™œš™–š™”š™¤!!* šŸ”ø *š‡š€š’ š‘š„š‚šˆššˆšƒšŽ:* *šŸ’Ž Diamante:* ${limit} *šŸŖ™ KantuCoins:* ${money} *šŸ†™ Xp:* ${isPrems ? prem : free}`) global.db.data.users[m.sender].lastclaim = new Date * 1 } handler.help = ['daily'] handler.tags = ['econ'] handler.command = ['daily', 'claim'] handler.register = true export default handler function msToTime(duration) { var milliseconds = parseInt((duration % 1000) / 100), seconds = Math.floor((duration / 1000) % 60), minutes = Math.floor((duration / (1000 * 60)) % 60), hours = Math.floor((duration / (1000 * 60 * 60)) % 24) hours = (hours < 10) ? "0" + hours : hours minutes = (minutes < 10) ? "0" + minutes : minutes seconds = (seconds < 10) ? "0" + seconds : seconds return hours + " Horas " + minutes + " Minutos" }