forked from Shizu-Hub/Shizu-Bot-MD
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathcreditos-xd.js
60 lines (56 loc) ยท 2.3 KB
/
creditos-xd.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { xpRange } from '../lib/levelling.js'
const { levelling } = '../lib/levelling.js'
let handler = async (m, { conn, usedPrefix, command, args, isOwner, isAdmin, isROwner }) => {
let locale = 'es'
let d = new Date(new Date + 3600000)
let time = d.toLocaleTimeString(locale, {
hour: 'numeric',
minute: 'numeric',
second: 'numeric'
})
let _uptime = process.uptime() * 1000
let uptime = clockString(_uptime)
let totalreg = Object.keys(global.db.data.users).length
let rtotalreg = Object.values(global.db.data.users).filter(user => user.registered == true).length
let pp = './Menu2.jpg'
wm = global.wm
let { exp, limit, level, role } = global.db.data.users[m.sender]
let { min, xp, max } = xpRange(level, global.multiplier)
let week = d.toLocaleDateString(locale, { weekday: 'long' })
let date = d.toLocaleDateString(locale, {
day: 'numeric',
month: 'long',
year: 'numeric'
})
const sections = [
{
title: `๐๐๐ฆ๐ง๐ ๐๐ ๐ ๐๐ก๐จ๐ฆ`,
rows: [
{title: "๊จ๏ธ๐ฆ๐๐๐ญ๐จ-๐๐จ๐๊จ๏ธ", description: '๐๐ข๐ก๐ง๐๐๐ง๐ข ๐๐๐ ๐๐ฅ๐๐๐๐ข๐ฅ', rowId: `${usedPrefix}donar`},
{title: "โช๐๐๐ฅ๐ขโช ", description: '๐๐ผ๐ป๐๐ฎ๐ฐ๐๐ผ', rowId: `${usedPrefix}hiro`},
{title: "โช๐๐๐ ๐๐๐กโช", description: '๐๐ผ๐ป๐๐ฎ๐ฐ๐๐ผ', rowId: `${usedPrefix}damian`},
{title: "<๐
๐>", description: '๐๐ผ๐ป๐๐ฎ๐ฐ๐๐ผ', rowId: `${usedPrefix}xd`},
]}, ]
let name = await conn.getName(m.sender)
const listMessage = {
text: `*ใ๐ ๐๐ข๐๐ _${name}_ ๐ๅฝก*
Contacto: +52 1 33 1702 0532
Gmail: ////
PayPal: [email protected]`, footer: `${wm}`, pp,
title: null,
buttonText: "๐๐๐ฆ๐ง๐ ๐๐ ๐๐ข๐๐๐๐ข๐ฅ๐๐๐ข๐ฅ๐๐ฆ",
sections }
conn.sendMessage(m.chat, listMessage)
}
handler.help = ['en', 'dis'].map(v => v + 'able <option>')
handler.tags = ['group', 'owner']
handler.command = /^(xd|\?)$/i
handler.exp = 50
handler.register = true
export default handler
function clockString(ms) {
let h = isNaN(ms) ? '--' : Math.floor(ms / 3600000)
let m = isNaN(ms) ? '--' : Math.floor(ms / 60000) % 60
let s = isNaN(ms) ? '--' : Math.floor(ms / 1000) % 60
return [h, m, s].map(v => v.toString().padStart(2, 0)).join(':')
}