wolfyflutter

delete rt

Dec 17th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import {sendText, Category, msToReadableTime} from '../helper.js'
  2. import os from 'node:os'
  3.  
  4. async function handler({sock, m, text, jid, prefix, command }) {
  5.  
  6. const ou = Math.floor(os.uptime()) * 1000
  7. const pu = Math.floor(process.uptime()) * 1000
  8.  
  9. const pou = `os uptime: ${msToReadableTime(ou)}`
  10. const ppu = `bot uptime: ${msToReadableTime(pu)}\n`
  11.  
  12. const print = ppu + pou
  13. return await sendText(jid, print, m)
  14.  
  15. }
  16.  
  17. //handler.bypassPrefix = true
  18.  
  19. handler.pluginName = 'runtime'
  20. handler.command = ['runtime']
  21. handler.alias = ['rt']
  22. handler.category = [Category.OTHER]
  23. handler.help = 'liat runtime program dan host'
  24.  
  25. export default handler
  26.  
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment