New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bot-ping

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bot-ping - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

.upm/store.json

@@ -1,1 +0,1 @@

{"version":2,"languages":{"nodejs-npm":{"specfileHash":"d678455854e02bc89f9b37bb47484f0b","lockfileHash":"5b7915b14d312b259e57a4dbf1e61c17"}}}
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"800f28b460de42b54112a52b4d8d0d85","lockfileHash":"a21cc64956659ecb788d1bdb63eed08d"}}}

@@ -31,95 +31,2 @@ module.exports = {

let findrole1 = guild.roles.cache.get(role1)
let findrole2 = guild.roles.cache.get(role2)
let findrole3 = guild.roles.cache.get(role3)
let findrole4 = guild.roles.cache.get(role4)
let findrole5 = guild.roles.cache.get(role5)
let findrole6 = guild.roles.cache.get(role6)
let findrole7 = guild.roles.cache.get(role7)
let findrole8 = guild.roles.cache.get(role8)
let findrole9 = guild.roles.cache.get(role9)
let findrole10 = guild.roles.cache.get(role10)
if (findrole1) role1mc = findrole1.members.size;
if (!findrole1) role1mc = 0;
if (findrole2) role2mc = findrole2.members.size;
if (!findrole2) role2mc = 0;
if (findrole3) role3mc = findrole3.members.size;
if (!findrole3) role3mc = 0;
if (findrole4) role4mc = findrole4.members.size;
if (!findrole4) role4mc = 0;
if (findrole5) role5mc = findrole5.members.size;
if (!findrole5) role5mc = 0;
if (findrole6) role6mc = findrole6.members.size;
if (!findrole6) role6mc = 0;
if (findrole7) role7mc = findrole7.members.size;
if (!findrole7) role7mc = 0;
if (findrole8) role8mc = findrole8.members.size;
if (!findrole8) role8mc = 0;
if (findrole9) role9mc = findrole9.members.size;
if (!findrole9) role9mc = 0;
if (findrole10) role10mc = findrole10.members.size;
if (!findrole10) role10mc = 0;
const totalmc = role1mc + role2mc + role3mc + role4mc + role5mc + role6mc + role7mc + role8mc + role9mc + role10mc
if (findrole1) role1on = findrole1.members.filter(member => member.presence.status !== "offline").size
if (!findrole1) role1on = 0;
if (findrole2) role2on = findrole2.members.filter(member => member.presence.status !== "offline").size
if (!findrole2) role2on = 0;
if (findrole3) role3on = findrole3.members.filter(member => member.presence.status !== "offline").size
if (!findrole3) role3on = 0;
if (findrole4) role4on = findrole4.members.filter(member => member.presence.status !== "offline").size
if (!findrole4) role4on = 0;
if (findrole5) role5on = findrole5.members.filter(member => member.presence.status !== "offline").size
if (!findrole5) role5on = 0;
if (findrole6) role6on = findrole6.members.filter(member => member.presence.status !== "offline").size
if (!findrole6) role6on = 0;
if (findrole7) role7on = findrole7.members.filter(member => member.presence.status !== "offline").size
if (!findrole7) role7on = 0;
if (findrole8) role8on = findrole8.members.filter(member => member.presence.status !== "offline").size
if (!findrole8) role8on = 0;
if (findrole9) role9on = findrole9.members.filter(member => member.presence.status !== "offline").size
if (!findrole9) role9on = 0;
if (findrole10) role10on = findrole10.members.filter(member => member.presence.status !== "offline").size
if (!findrole10) role10on = 0;
let totalmcon = role1on + role2on + role3on + role4on + role5on + role6on + role7on + role8on + role9on + role10on
let boostgrammar = `Boosts`
if (guild.premiumSubscriptionCount < 2) boostgrammar = `Boost`
let boosterlist = findboosterrole.members.map(m => `<@${m.user.id}>`).join(' | ');
if (!boosterlist) boosterlist = `No one have boosted the server yet`
const Embed = new Discord.MessageEmbed()

@@ -150,74 +57,3 @@ .setTitle(`${bot.name}`, `Status`)

if (findrole1) role1mc = findrole1.members.size;
if (!findrole1) role1mc = 0;
if (findrole2) role2mc = findrole2.members.size;
if (!findrole2) role2mc = 0;
if (findrole3) role3mc = findrole3.members.size;
if (!findrole3) role3mc = 0;
if (findrole4) role4mc = findrole4.members.size;
if (!findrole4) role4mc = 0;
if (findrole5) role5mc = findrole5.members.size;
if (!findrole5) role5mc = 0;
if (findrole6) role6mc = findrole6.members.size;
if (!findrole6) role6mc = 0;
if (findrole7) role7mc = findrole7.members.size;
if (!findrole7) role7mc = 0;
if (findrole8) role8mc = findrole8.members.size;
if (!findrole8) role8mc = 0;
if (findrole9) role9mc = findrole9.members.size;
if (!findrole9) role9mc = 0;
if (findrole10) role10mc = findrole10.members.size;
if (!findrole10) role10mc = 0;
const totalmc = role1mc + role2mc + role3mc + role4mc + role5mc + role6mc + role7mc + role8mc + role9mc + role10mc
if (findrole1) role1on = findrole1.members.filter(member => member.presence.status !== "offline").size
if (!findrole1) role1on = 0;
if (findrole2) role2on = findrole2.members.filter(member => member.presence.status !== "offline").size
if (!findrole2) role2on = 0;
if (findrole3) role3on = findrole3.members.filter(member => member.presence.status !== "offline").size
if (!findrole3) role3on = 0;
if (findrole4) role4on = findrole4.members.filter(member => member.presence.status !== "offline").size
if (!findrole4) role4on = 0;
if (findrole5) role5on = findrole5.members.filter(member => member.presence.status !== "offline").size
if (!findrole5) role5on = 0;
if (findrole6) role6on = findrole6.members.filter(member => member.presence.status !== "offline").size
if (!findrole6) role6on = 0;
if (findrole7) role7on = findrole7.members.filter(member => member.presence.status !== "offline").size
if (!findrole7) role7on = 0;
if (findrole8) role8on = findrole8.members.filter(member => member.presence.status !== "offline").size
if (!findrole8) role8on = 0;
if (findrole9) role9on = findrole9.members.filter(member => member.presence.status !== "offline").size
if (!findrole9) role9on = 0;
if (findrole10) role10on = findrole10.members.filter(member => member.presence.status !== "offline").size
if (!findrole10) role10on = 0;
let totalmcon = role1on + role2on + role3on + role4on + role5on + role6on + role7on + role8on + role9on + role10on
let boostgrammar = `Boosts`
if (guild.premiumSubscriptionCount < 2) boostgrammar = `Boost`
let boosterlist = findboosterrole.members.map(m => `<@${m.user.id}>`).join(' | ');
if (!boosterlist) boosterlist = `No one have boosted the server yet`
const Embed1 = new Discord.MessageEmbed()

@@ -224,0 +60,0 @@ .setTitle(`${bot.name} status`)

{
"name": "bot-ping",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc