Closed GianPoolS closed 2 years ago
import { generateWAMessageFromContent } from '@adiwajshing/baileys' import os from 'os' import util from 'util' import sizeFormatter from 'human-readable' import MessageType from '@adiwajshing/baileys' import fs from 'fs' import fetch from 'node-fetch' import { performance } from 'perf_hooks' let handler = async (m, { conn, usedPrefix }) => { let _uptime = process.uptime() 1000 let uptime = clockString(_uptime) let totalreg = Object.keys(global.db.data.users).length const chats = Object.entries(conn.chats).filter(([id, data]) => id && data.isChats) const groupsIn = chats.filter(([id]) => id.endsWith('@g.us')) const groups = chats.filter(([id]) => id.endsWith('@g.us')) const used = process.memoryUsage() const { restrict, antiCall, antiprivado } = global.db.data.settings[conn.user.jid] || {} const { autoread, gconly, pconly, self } = global.opts || {} let old = performance.now() let neww = performance.now() let speed = neww - old let info = ` β βγ πππ π πππ πππ γ β β β β₯ [π€΄π»] π²ππ΄π°π³πΎπ: π±ππππ πππππππ β β₯ [#οΈβ£] π½ππΌπ΄ππΎ: +52 1 999 209 5479 β β₯ [π³] πΏππ΄π΅πΈπΉπΎ: ${usedPrefix} β β₯ [π] π²π·π°ππ πΏππΈπ π°π³πΎπ: ${chats.length - groups.length} β β₯ [π¦] π²π·π°ππ π³π΄ πΆπππΏπΎπ: ${groups.length} β β₯ [π‘] π²π·π°ππ ππΎππ°π»π΄π: ${chats.length} β β₯ [π] π°π²ππΈπ πΈπ³π°π³: ${uptime} β β₯ [π©] ππππ°ππΈπΎπ: ${totalreg} πππππππ β β₯ [βοΈ] π°πππΎππ΄π°π³: ${autoread ? 'ππππππππ' : 'πππππππππππ'} β β₯ [β] ππ΄ππππΈπ²π: ${restrict ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π¬] π°π½ππΈπΏππΈπ π°π³πΎ: ${antiprivado ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π΅] π°π½ππΈπ»π»π°πΌπ°π³π°: ${antiCall ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π¬] πΏπ²πΎπ½π»π: ${pconly ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π’] πΆπ²πΎπ½π»π: ${gconly ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π] πΌπΎπ³πΎ: ${self ? 'πππππππ' : 'πππππππ'} β β₯ [π¨βπ¦―] π π΄π»πΎπ²πΈπ³π°π³: β ${speed} ms* β β βγ ππ‘π ππ²π¬ππ’π - ππ¨π γ β `.trim() conn.fakeReply(m.chat, info, '0@s.whatsapp.net', 'π₯ The Shadow Brokers - Bot π₯', 'status@broadcast')} handler.command = ['infobot']
export default handler
function clockString(ms) { let h = Math.floor(ms / 3600000) let m = Math.floor(ms / 60000) % 60 let s = Math.floor(ms / 1000) % 60 console.log({ms,h,m,s}) return [h, m, s].map(v => v.toString().padStart(2, 0) ).join(':')}
import { generateWAMessageFromContent } from '@adiwajshing/baileys' import os from 'os' import util from 'util' import sizeFormatter from 'human-readable' import MessageType from '@adiwajshing/baileys' import fs from 'fs' import fetch from 'node-fetch' import { performance } from 'perf_hooks' let handler = async (m, { conn, usedPrefix }) => { let _uptime = process.uptime() 1000 let uptime = clockString(_uptime) let totalreg = Object.keys(global.db.data.users).length const chats = Object.entries(conn.chats).filter(([id, data]) => id && data.isChats) const groupsIn = chats.filter(([id]) => id.endsWith('@g.us')) const groups = chats.filter(([id]) => id.endsWith('@g.us')) const used = process.memoryUsage() const { restrict, antiCall, antiprivado } = global.db.data.settings[conn.user.jid] || {} const { autoread, gconly, pconly, self } = global.opts || {} let old = performance.now() let neww = performance.now() let speed = neww - old let info = ` β βγ πππ π πππ πππ γ β β β β₯ [π€΄π»] π²ππ΄π°π³πΎπ: π±ππππ πππππππ β β₯ [#οΈβ£] π½ππΌπ΄ππΎ: +52 1 999 209 5479 β β₯ [π³] πΏππ΄π΅πΈπΉπΎ: ${usedPrefix} β β₯ [π] π²π·π°ππ πΏππΈπ π°π³πΎπ: ${chats.length - groups.length} β β₯ [π¦] π²π·π°ππ π³π΄ πΆπππΏπΎπ: ${groups.length} β β₯ [π‘] π²π·π°ππ ππΎππ°π»π΄π: ${chats.length} β β₯ [π] π°π²ππΈπ πΈπ³π°π³: ${uptime} β β₯ [π©] ππππ°ππΈπΎπ: ${totalreg} πππππππ β β₯ [βοΈ] π°πππΎππ΄π°π³: ${autoread ? 'ππππππππ' : 'πππππππππππ'} β β₯ [β] ππ΄ππππΈπ²π: ${restrict ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π¬] π°π½ππΈπΏππΈπ π°π³πΎ: ${antiprivado ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π΅] π°π½ππΈπ»π»π°πΌπ°π³π°: ${antiCall ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π¬] πΏπ²πΎπ½π»π: ${pconly ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π’] πΆπ²πΎπ½π»π: ${gconly ? 'ππππππππ' : 'πππππππππππ'} β β₯ [π] πΌπΎπ³πΎ: ${self ? 'πππππππ' : 'πππππππ'} β β₯ [π¨βπ¦―] π π΄π»πΎπ²πΈπ³π°π³: β ${speed} ms* β β βγ ππ‘π ππ²π¬ππ’π - ππ¨π γ β `.trim() conn.fakeReply(m.chat, info, '0@s.whatsapp.net', 'π₯ The Shadow Brokers - Bot π₯', 'status@broadcast')} handler.command = ['infobot']
export default handler
function clockString(ms) { let h = Math.floor(ms / 3600000) let m = Math.floor(ms / 60000) % 60 let s = Math.floor(ms / 1000) % 60 console.log({ms,h,m,s}) return [h, m, s].map(v => v.toString().padStart(2, 0) ).join(':')}