forked from Supositware/Haha-Yes
show number of tag per server
This commit is contained in:
parent
741fcd51a5
commit
cb1b959e15
1 changed files with 5 additions and 2 deletions
|
@ -14,17 +14,20 @@ module.exports = class ServerCommand extends Command {
|
|||
}
|
||||
|
||||
async run(message) {
|
||||
let blacklistJson = new SelfReloadJSON('DiscordBot/json/blacklist.json');
|
||||
let blacklistJson = new SelfReloadJSON('./json/blacklist.json');
|
||||
if(blacklistJson[message.author.id])
|
||||
return blacklist(blacklistJson[message.author.id] , message)
|
||||
|
||||
let customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`);
|
||||
let count = Object.keys(customresponse).length
|
||||
|
||||
const addEmbed = {
|
||||
color: 0x0099ff,
|
||||
title: 'Stats of the server',
|
||||
thumbnail: {
|
||||
url: `${message.guild.iconURL}`,
|
||||
},
|
||||
description: `Member: **${message.guild.memberCount}** \nChannel number: **${message.guild.channels.size}**\nGuild created at **${message.guild.createdAt}**\nOwner: **${message.guild.owner}**`,
|
||||
description: `Member: **${message.guild.memberCount}** \nChannel number: **${message.guild.channels.size}**\nGuild created at **${message.guild.createdAt}**\nOwner: **${message.guild.owner}**\nTag number: **${count}**`,
|
||||
};
|
||||
|
||||
message.say({ embed: addEmbed });
|
||||
|
|
Loading…
Reference in a new issue