Comparing version 1.1.3 to 1.1.4
@@ -1,1 +0,1 @@ | ||
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"5eb5813eceb34d974beabeed83179fe1","lockfileHash":"2899ec5aa6bb94212a46e655e3a35c71","guessedImports":["discord.js"],"guessedImportsHash":"31714cfad3834c9f8baf612a9f4e33c0"}}} | ||
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"5eb5813eceb34d974beabeed83179fe1","lockfileHash":"2899ec5aa6bb94212a46e655e3a35c71","guessedImports":["discord.js"],"guessedImportsHash":"a3ae9d29a3d5c293689556e20ee5184d"}}} |
54
index.js
const Discord = require("discord.js"); | ||
const { EmbedBuilder, time } = require("discord.js"); | ||
const DiscordJS = require('discord.js'); | ||
module.exports = { | ||
@@ -10,12 +15,4 @@ | ||
/** | ||
* | ||
* @param {EmbedBuilder} embeds | ||
* @returns | ||
*/ | ||
ServerStats: async (Discord, bot, GuildId, Statschannel) => { | ||
ServerStats: async (Discord, bot, GuildId, Statschannel, embeds) => { | ||
if (!GuildId) throw new TypeError("No GuildId was specified!!") | ||
@@ -43,19 +40,18 @@ if (!Statschannel) throw new TypeError("No Statschannel was specified!!") | ||
const embed = new EmbedBuilder() | ||
.setTitle(`Bot Status`) | ||
let embed = new DiscordJS.MessageEmbed().setTitle(`Bot Status`) | ||
.addField(`🌐 Server Count`, `${bot.guilds.cache.size}`) | ||
.addField(`📥 Member Count`, ` ${bot.guilds.cache | ||
embed.addField(`🌐 Server Count`, `${bot.guilds.cache.size}`) | ||
embed.addField(`📥 Member Count`, ` ${bot.guilds.cache | ||
.reduce((a, b) => a + b.memberCount, 0) | ||
.toLocaleString()} members`) | ||
.addField('📁 Voice-Channels', `\`${bot.channels.cache.filter(ch => ch.type === "voice").size}\``) | ||
embed.addField('📁 Voice-Channels', `\`${bot.channels.cache.filter(ch => ch.type === "voice").size}\``) | ||
// .addField('⚙️ Commands', `\`${bot.commands.size}\` commands\``) | ||
.addField('📡 Uptime', `${days} Days ${hours} Hours ${minutes} Minutes ${seconds} Seconds`) | ||
.addField('<:nyt_creator_crown:976806291647385690> Ping', `**${bot.ws.ping}** `) | ||
.setThumbnail(guild.iconURL({ dynamic: true, format: `png` })) | ||
.setColor("GREEN") | ||
.setFooter(`Coded by Arbotix-Development || Refreshing every 10 sec`, guild.iconURL()) | ||
embed.addField('📡 Uptime', `${days} Days ${hours} Hours ${minutes} Minutes ${seconds} Seconds`) | ||
embed.addField('<:nyt_creator_crown:976806291647385690> Ping', `**${bot.ws.ping}** `) | ||
embed.setThumbnail(guild.iconURL({ dynamic: true, format: `png` })) | ||
embed.setColor("GREEN") | ||
embed.setFooter(`Coded by Arbotix-Development || Refreshing every 10 sec`, guild.iconURL()) | ||
// const final = await statschannel.send(Embed) | ||
@@ -75,21 +71,21 @@ const final = await statschannel.send({ embeds: [embed]}) | ||
const embed1 = new EmbedBuilder() | ||
let embed1 = new DiscordJS.MessageEmbed() | ||
.setTitle(`Bot Status`) | ||
.addField(`🌐 Server Count`, `${bot.guilds.cache.size}`) | ||
embed1.addField(`🌐 Server Count`, `${bot.guilds.cache.size}`) | ||
.addField(`📥 Member Count`, ` ${bot.guilds.cache | ||
embed1.addField(`📥 Member Count`, ` ${bot.guilds.cache | ||
.reduce((a, b) => a + b.memberCount, 0) | ||
.toLocaleString()} members`) | ||
.addField('📁 Voice-Channels', `\`${bot.channels.cache.filter(ch => ch.type === "voice").size}\``) | ||
embed1.addField('📁 Voice-Channels', `\`${bot.channels.cache.filter(ch => ch.type === "voice").size}\``) | ||
.addField('⚙️ Commands', `\`${bot.commands.size}\` commands\``) | ||
embed1.addField('⚙️ Commands', `\`${bot.commands.size}\` commands\``) | ||
.addField('📡 Uptime', `${days} Days ${hours} Hours ${minutes} Minutes ${seconds} Seconds`) | ||
embed1.addField('📡 Uptime', `${days} Days ${hours} Hours ${minutes} Minutes ${seconds} Seconds`) | ||
.addField('<:nyt_creator_crown:976806291647385690> Ping', `**${bot.ws.ping}** `) | ||
.setThumbnail(guild.iconURL({ dynamic: true, format: `png` })) | ||
.setColor("GREEN") | ||
.setFooter(`Coded by Arbotix-Development || Refreshing every 10 sec`, guild.iconURL()) | ||
embed1.addField('<:nyt_creator_crown:976806291647385690> Ping', `**${bot.ws.ping}** `) | ||
embed1.setThumbnail(guild.iconURL({ dynamic: true, format: `png` })) | ||
embed1.setColor("GREEN") | ||
embed1.setFooter(`Coded by Arbotix-Development || Refreshing every 10 sec`, guild.iconURL()) | ||
@@ -96,0 +92,0 @@ // final.edit(Embed1) |
{ | ||
"name": "bot-ping", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13669
60