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,9 +14,12 @@ module.exports = class ServerCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message) {
|
||||||
let blacklistJson = new SelfReloadJSON('DiscordBot/json/blacklist.json');
|
let blacklistJson = new SelfReloadJSON('./json/blacklist.json');
|
||||||
if(blacklistJson[message.author.id])
|
if(blacklistJson[message.author.id])
|
||||||
return blacklist(blacklistJson[message.author.id] , message)
|
return blacklist(blacklistJson[message.author.id] , message)
|
||||||
|
|
||||||
|
let customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`);
|
||||||
|
let count = Object.keys(customresponse).length
|
||||||
|
|
||||||
const addEmbed = {
|
const addEmbed = {
|
||||||
color: 0x0099ff,
|
color: 0x0099ff,
|
||||||
|
@ -24,7 +27,7 @@ module.exports = class ServerCommand extends Command {
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: `${message.guild.iconURL}`,
|
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 });
|
message.say({ embed: addEmbed });
|
||||||
|
|
Loading…
Reference in a new issue