BrunoSobrino / TheMystic-Bot-MD

π™·πšŽπš’!! π™·πš˜πš•πšŠ πŸ‘‹, 𝚎𝚜 πšžπš— 𝚐𝚞𝚜𝚝𝚘 πšπšŽπš—πšŽπš›πšπšŽ πšŠπššπšžπš’Μ πšŽπš— 𝚎𝚜𝚝𝚎 πš›πšŽπš™πš˜πšœπš’πšπš˜πš›πš’πš˜ ΒΏπ™ΌπšŽ πš›πšŽπšπšŠπš•πšŠπšœ πšžπš—πšŠ ⭐?, 𝚎𝚜𝚝𝚎 𝚎𝚜 πšƒπš‘πšŽ π™Όπš’πšœπšπš’πšŒ - π™±πš˜πš, πšžπš— π™±πš˜πš πš™πšŠπš›πšŠ πš†πš‘πšŠπšπšœπ™°πš™πš™ πšπšžπš—πšŒπš’πš˜πš—πšŠπš• πšŒπš˜πš— πš•πšŠ πšŸπšŽπš›πšœπš’πš˜πš— πš–πšžπš•πšπš’-πšπšŽπšŸπš’πšŒπšŽ (πš‹πšŽπšπšŠ), πšŽπšœπš™πšŽπš›πš˜ 𝚝𝚎 𝚐𝚞𝚜𝚝𝚎 :𝙳
https://github.com/BrunoSobrino/TheMystic-Bot-MD
547 stars 1.57k forks source link

info-infobot.js #28

Closed GianPoolS closed 2 years ago

GianPoolS commented 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(':')}