-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathDarkQueen-alive.js
64 lines (58 loc) · 2.27 KB
/
DarkQueen-alive.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
const { cmd, botpic, Config, tlang,getBuffer, prefix } = require('../lib')
const hrs = new Date().getHours({ timeZone: 'Asia/Karachi' })
const get_localized_date = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
//---------------------------------------------------------------------------
cmd({
pattern: "alive",
desc: "Show Live Time Of Pakistan",
category: "darkqueen",
filename: __filename,
use: '<group link.>',
},
async(Void, citel, text,{ isCreator }) => {
var time = new Date().toLocaleString('HI', { timeZone: 'Asia/Karachi' }).split(' ')[1]
var date = new Date().toLocaleDateString(get_localized_date)
var wish = ''
if (hrs < 12) wish = 'ɢᴏᴏᴅ ᴍᴏʀɴɪɴɢ ⛅'
if (hrs >= 12 && hrs <= 16) wish = 'ɢᴏᴏᴅ ᴀғᴛᴇʀɴᴏᴏɴ 🌞'
if (hrs >= 16 && hrs <= 20) wish = 'ɢᴏᴏᴅ ᴇᴠᴇɴɪɴɢ 🌥'
if (hrs >= 20 && hrs <= 24) wish = 'ɢᴏᴏᴅ ɴɪɢʜᴛ 🌙'
var am_pm = ''
if (hrs < 12) am_pm = 'ᴀᴍ'
if (hrs >= 12 && hrs <= 24) am_pm = 'ᴘᴍ'
const suhail= [777,0,100,500,1000,999,2021]
const q = {
key: {
fromMe: false,
participant: "[email protected]",
remoteJid: "status@broadcast"
},
message: {
"orderMessage": {
"itemCount" : suhail[Math.floor(8*Math.random())],
"status": 1,
"surface" : 1,
"message": `❏ ${Config.botname} ➬ Whatsapp Bot BY Mr.Notiya`,
"orderTitle": "alive",
"sellerJid": '[email protected]'
}
}
}
let timenow =`
┏╼═╾╼═╾╼═╾╼═╾╼═╾╼═╾❋
┃↱ᴅᴀʀᴋ Qᴜᴇᴡɴ ᴍᴅ↲
┃👋ʜᴇʟʟᴏᴡ ${citel.pushName},
┣❑*${wish}*
┣❑ ɪᴀᴍ ᴅᴀʀᴋ Qᴜᴇᴇɴ
┣╼═╾╼═╾╼═╾╼═╾╼═╾●
┣❍ʙᴏᴛ ꜱᴘᴇᴇᴅ: ❲${latensie.toFixed(4)}❳
┣❍ᴜᴘᴛɪᴍᴇ: ❲${runtime(process.uptime())}❳
┣❍ᴏᴡɴᴇʀ: ❲ᴄʜᴀᴍᴏᴅʜ❳
┣❍ᴛɪᴍᴇ: ❲${time} ${am_pm}❳
┃
┃🎩 *_ᴅᴀʀᴋ Qᴜᴇᴇɴ ᴍᴅ_*🎩
┃🎭 *_ᴄʀᴇᴀᴛᴇᴅ ʙʏ ᴍʀ ɴᴏᴛɪʏᴀ_*🎭
┗╼═╾╼═╾╼═╾╼═╾╼═╾╼═╾❋
`
return await Void.sendMessage(citel.chat, { text:timenow }, { quoted : q } )
})