-
Notifications
You must be signed in to change notification settings - Fork 0
/
_respontoxic.js
75 lines (63 loc) · 2.15 KB
/
_respontoxic.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import fetch from 'node-fetch'
import fs from 'fs'
import moment from 'moment-timezone'
let handler = async (m, { conn, args, command }) => {
let _uptime = process.uptime() * 1000
let uptime = clockString(_uptime)
let who = m.sender
const time = moment.tz('Asia/Jakarta').format('HH')
const ultah = new Date(`${ultahowner} 00:00:01`)
const sekarat = new Date().getTime()
const Kurang = ultah - sekarat
const ohari = Math.floor( Kurang / (1000 * 60 * 60 * 24));
const ojam = Math.floor( Kurang % (1000 * 60 * 60 * 24) / (1000 * 60 * 60))
const onet = Math.floor( Kurang % (1000 * 60 * 60) / (1000 * 60))
const detek = Math.floor( Kurang % (1000 * 60) / 1000)
let name = await conn.getName(m.sender)
let kata = `*乂 B O T - S C R I P T*
◦ *Name* : games-wabot-md
◦ *Visitor* : 50
◦ *Size* : 5.18 MB
◦ *Updated* : 21/03/23 - 08:28:01
◦ *Url* : https://github.com/BochilGaming/games-wabot-md
° *Based By*: https://youtube.com/channel/UC1oSMQCd3XKVxYwSh4RE2Nw
_*Legacy MD V2*_
267 Forks · 50 Stars · 4 Issues
`
conn.relayMessage(m.chat, {
requestPaymentMessage: {
currencyCodeIso4217: "USD",
amount1000: fsizedoc,
requestFrom: m.sender,
noteMessage: {
extendedTextMessage: {
text: kata,
contextInfo: {
mentionedJid: [m.sender],
externalAdReply: {
showAdAttribution: true
}
}
}
}
}
}, {})
}
handler.help = ['sc', 'sewasc']
handler.tags = ['info', 'main']
handler.command = /^(sc|script|sewasc)$/i
handler.owner = false
handler.mods = false
handler.premium = false
handler.group = false
handler.private = false
handler.admin = false
handler.botAdmin = false
handler.fail = null
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(':')
}