SHARE
TWEET

Bots stats ~ By zBééésT ,

a guest Apr 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', zbest => {
  2.        var servers = client.guilds.size;
  3.        var users = client.users.size;
  4.        var channels = client.channels.size;
  5.        var name = client.user.tag;
  6.        let pretty = require('pretty-ms');
  7.        let cpu = require('cpu');
  8.        let stackos = require('stackos').info;
  9.        var prefix = "Ur_Prefix" //Ur_Prefix
  10.        var owners = ["<@!Ur_ID>"]
  11.  
  12. // npm i cpu
  13. // npm i stackos
  14. // npm i pretty-ms
  15.  
  16.     if(dark.content.startsWith(`${prefix}stats`)) {
  17.  
  18.  
  19.       var zbest = new Discord.RichEmbed()
  20.        
  21.        .setColor('#36393e')
  22.        .setTitle('**ℹ Bot Information**')
  23.        .addField('⇏ Servers' , `${servers}` , true)
  24.        .addField('⇏ Users' , `${users}` , true)
  25.        .addField('⇏ Channels' , `${channels}` , true)
  26.        .addField('⇏ Uptime' , `${pretty(client.uptime, { verbose: true })}` , true)
  27.        .addField('⇏ Ram Usage' , `${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}` +  'MB' , true)
  28.        .addField('⇏ Ping' , `${Date.now() - dark.createdTimestamp}` + 'MS' , true)
  29.        .addField('⇏ Node Bot' , `${process.version}` , true)
  30.        .addField('⇏ CPU' , `${Math.round((process.cpuUsage().user + process.cpuUsage().system) / 2048)} MB ( ${cpu.num()} % )` , true)  
  31.        .addField('⇏ Platform' , `${stackos.os} ( ${stackos.arch} Bit )` , true)  
  32.        .addField('⇏ Procsser' , `${(stackos.cpus.model).split("(R)")[1]} ( ${stackos.cpus.cores} Cores )` , true)
  33.        .addField('⇏ Discord Version' , `${require('./package.json').dependencies["discord.js"].replace('^', '') + ' v'}` , true)
  34.        .addField('⇏ Bot Name' , `${name}` , true)
  35.        .addField('⇏ Bot Devs' , `${owners}`)
  36.       zbest.channel.send(zbest)
  37.     }
  38. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top