forked from embee/woomy
Bots have a bot badge, avatars are larger
This commit is contained in:
parent
cfc3f40dcb
commit
1c21161500
14 changed files with 25 additions and 15 deletions
2
changes.txt
Normal file
2
changes.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Links to avatars now lead to the original file size
|
||||||
|
Bots now get a bot badge in the userinfo command
|
|
@ -28,7 +28,7 @@ exports.run = (client, message) => {
|
||||||
embed = new Discord.MessageEmbed();
|
embed = new Discord.MessageEmbed();
|
||||||
embed.setTitle(`Woomy`);
|
embed.setTitle(`Woomy`);
|
||||||
embed.setColor(client.embedColour(message));
|
embed.setColor(client.embedColour(message));
|
||||||
embed.setThumbnail(client.user.avatarURL({format: "png", dynamic: true}))
|
embed.setThumbnail(client.user.avatarURL({format: "png", dynamic: true, size: 2048}))
|
||||||
embed.addField(
|
embed.addField(
|
||||||
"General:", `• users: \`${client.users.cache.size}\`\n• channels: \`${client.channels.cache.size}\`\n• servers: \`${client.guilds.cache.size}\`\n• commands: \`${client.commands.size}\`\n• uptime: \`${duration}\``,true
|
"General:", `• users: \`${client.users.cache.size}\`\n• channels: \`${client.channels.cache.size}\`\n• servers: \`${client.guilds.cache.size}\`\n• commands: \`${client.commands.size}\`\n• uptime: \`${duration}\``,true
|
||||||
);
|
);
|
||||||
|
|
|
@ -19,7 +19,7 @@ exports.run = (client, message, args) => {
|
||||||
user = users[0];
|
user = users[0];
|
||||||
user = user.user;
|
user = user.user;
|
||||||
}
|
}
|
||||||
message.channel.send(`**${user.tag}'s** avatar is: ${user.avatarURL({format: "png", dynamic: true})}`);
|
message.channel.send(`**${user.tag}'s** avatar is: ${user.avatarURL({format: "png", dynamic: true, size: 2048})}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.conf = {
|
exports.conf = {
|
||||||
|
|
|
@ -58,7 +58,7 @@ exports.run = async (client, message, args) => {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
let embed = new Discord.MessageEmbed();
|
let embed = new Discord.MessageEmbed();
|
||||||
embed.setColor("#BC0057");
|
embed.setColor("#BC0057");
|
||||||
embed.setAuthor("User banned!", user.user.avatarURL({format: "png", dynamic: true}));
|
embed.setAuthor("User banned!", user.user.avatarURL({format: "png", dynamic: true, size: 2048}));
|
||||||
embed.setDescription(
|
embed.setDescription(
|
||||||
`• User: ${user.user.tag} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Reason: ${reason}`
|
`• User: ${user.user.tag} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Reason: ${reason}`
|
||||||
);
|
);
|
||||||
|
|
|
@ -59,7 +59,7 @@ exports.run = async (client, message, [member, ...role2add], query) => {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
let embed = new Discord.MessageEmbed();
|
let embed = new Discord.MessageEmbed();
|
||||||
embed.setColor("#00c09a");
|
embed.setColor("#00c09a");
|
||||||
embed.setAuthor("Role given:", user.user.avatarURL({format: "png", dynamic: true}));
|
embed.setAuthor("Role given:", user.user.avatarURL({format: "png", dynamic: true, size: 2048}));
|
||||||
embed.setDescription(`• User: ${user} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Role: ${gRole}`)
|
embed.setDescription(`• User: ${user} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Role: ${gRole}`)
|
||||||
try {
|
try {
|
||||||
channel.send({ embed });
|
channel.send({ embed });
|
||||||
|
|
|
@ -31,7 +31,7 @@ exports.run = async (client, message, args) => {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
let embed = new Discord.MessageEmbed();
|
let embed = new Discord.MessageEmbed();
|
||||||
embed.setColor("#BC0057");
|
embed.setColor("#BC0057");
|
||||||
embed.setAuthor("User banned!", user.avatarURL({format: "png", dynamic: true}));
|
embed.setAuthor("User banned!", user.avatarURL({format: "png", dynamic: true, size: 2048}));
|
||||||
embed.setDescription(
|
embed.setDescription(
|
||||||
`• User: ${user.tag} (${user.id})\n• Mod: ${message.author} (${message.author.id})\n• Reason: ${reason}`
|
`• User: ${user.tag} (${user.id})\n• Mod: ${message.author} (${message.author.id})\n• Reason: ${reason}`
|
||||||
);
|
);
|
||||||
|
|
|
@ -58,7 +58,7 @@ if (settings.modlogsChannel !== "off") {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
let embed = new Discord.MessageEmbed();
|
let embed = new Discord.MessageEmbed();
|
||||||
embed.setColor("#fd0061");
|
embed.setColor("#fd0061");
|
||||||
embed.setAuthor("User kicked!", user.user.avatarURL({format: "png", dynamic: true}));
|
embed.setAuthor("User kicked!", user.user.avatarURL({format: "png", dynamic: true, size: 2048}));
|
||||||
embed.setDescription(
|
embed.setDescription(
|
||||||
`• User: ${user.user.tag} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Reason: ${reason}`
|
`• User: ${user.user.tag} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Reason: ${reason}`
|
||||||
);
|
);
|
||||||
|
|
|
@ -23,7 +23,7 @@ exports.run = async (client, message) => {
|
||||||
embed.setDescription(`**[${song.title}](https://www.youtube.com/watch?v=${song.id})**`)
|
embed.setDescription(`**[${song.title}](https://www.youtube.com/watch?v=${song.id})**`)
|
||||||
embed.addField("Channel:", song.author, true)
|
embed.addField("Channel:", song.author, true)
|
||||||
embed.addField("Time:", timestamp, true)
|
embed.addField("Time:", timestamp, true)
|
||||||
embed.setFooter("Requested by " + song.requestedBy.tag, song.requestedBy.avatarURL({format: "png", dynamic: true}))
|
embed.setFooter("Requested by " + song.requestedBy.tag, song.requestedBy.avatarURL({format: "png", dynamic: true, size: 2048}))
|
||||||
|
|
||||||
message.channel.send(embed)
|
message.channel.send(embed)
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,7 +34,7 @@ exports.run = async (client, message, args, level) => {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
let embed = new Discord.MessageEmbed();
|
let embed = new Discord.MessageEmbed();
|
||||||
embed.setColor("#a62019");
|
embed.setColor("#a62019");
|
||||||
embed.setAuthor(`${amount} messages purged!`, message.author.avatarURL({format: "png", dynamic: true}));
|
embed.setAuthor(`${amount} messages purged!`, message.author.avatarURL({format: "png", dynamic: true, size: 2048}));
|
||||||
embed.setDescription(`• Channel: ${message.channel.name} (${message.channel.id})\n• Mod: ${message.author} (${message.author.id})\n• Amount: \`${amount}\``)
|
embed.setDescription(`• Channel: ${message.channel.name} (${message.channel.id})\n• Mod: ${message.author} (${message.author.id})\n• Amount: \`${amount}\``)
|
||||||
try {
|
try {
|
||||||
channel.send({ embed });
|
channel.send({ embed });
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
exports.run = (client, message) => {
|
exports.run = (client, message) => {
|
||||||
message.channel.send(`**${message.guild}'s** icon is:\n${message.guild.iconURL({format: "png", dynamic: true})}`)
|
message.channel.send(`**${message.guild}'s** icon is:\n${message.guild.iconURL({format: "png", dynamic: true, size: 2048})}`)
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.conf = {
|
exports.conf = {
|
||||||
|
|
|
@ -78,7 +78,7 @@ exports.run = (client, message) => {
|
||||||
.setColor(message.guild.member(client.user).displayHexColor)
|
.setColor(message.guild.member(client.user).displayHexColor)
|
||||||
.setTitle(guild.name)
|
.setTitle(guild.name)
|
||||||
.setDescription(`${badges}• **ID:** ${guild.id}\n• **Owner:** ${guild.owner}\n• **Region:** ${guild.region.toProperCase()}\n• **Boosts:** ${boosts}\n• **Members:** ${members}\n• **Channels:** ${channelString}\n• **Roles:** ${roles}\n• **Emojis:** ${emojiString}\n• **Creation date:** ${guild.createdAt}`)
|
.setDescription(`${badges}• **ID:** ${guild.id}\n• **Owner:** ${guild.owner}\n• **Region:** ${guild.region.toProperCase()}\n• **Boosts:** ${boosts}\n• **Members:** ${members}\n• **Channels:** ${channelString}\n• **Roles:** ${roles}\n• **Emojis:** ${emojiString}\n• **Creation date:** ${guild.createdAt}`)
|
||||||
.setThumbnail(message.guild.iconURL({format: "png", dynamic: true}));
|
.setThumbnail(message.guild.iconURL({format: "png", dynamic: true, size: 2048}));
|
||||||
|
|
||||||
message.channel.send(embed);
|
message.channel.send(embed);
|
||||||
};
|
};
|
||||||
|
|
|
@ -71,7 +71,7 @@ exports.run = async (client, message, args) => {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
let embed = new Discord.MessageEmbed();
|
let embed = new Discord.MessageEmbed();
|
||||||
embed.setColor("#F38159");
|
embed.setColor("#F38159");
|
||||||
embed.setAuthor("User softbanned!", user.user.avatarURL({format: "png", dynamic: true}));
|
embed.setAuthor("User softbanned!", user.user.avatarURL({format: "png", dynamic: true, size: 2048}));
|
||||||
embed.setDescription(
|
embed.setDescription(
|
||||||
`• User: ${user.user.tag} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Days cleared: ${days}`
|
`• User: ${user.user.tag} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Days cleared: ${days}`
|
||||||
);
|
);
|
||||||
|
|
|
@ -59,7 +59,7 @@ exports.run = async (client, message, [member, ...role2add], query) => {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
let embed = new Discord.MessageEmbed();
|
let embed = new Discord.MessageEmbed();
|
||||||
embed.setColor("#008369");
|
embed.setColor("#008369");
|
||||||
embed.setAuthor("Role taken:", user.user.avatarURL({format: "png", dynamic: true}));
|
embed.setAuthor("Role taken:", user.user.avatarURL({format: "png", dynamic: true, size: 2048}));
|
||||||
embed.setDescription(`• User: ${user} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Role: ${gRole}`)
|
embed.setDescription(`• User: ${user} (${user.user.id})\n• Mod: ${message.author} (${message.author.id})\n• Role: ${gRole}`)
|
||||||
try {
|
try {
|
||||||
channel.send({ embed });
|
channel.send({ embed });
|
||||||
|
|
|
@ -40,7 +40,15 @@ exports.run = (client, message, args) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
if(user.user.id == message.guild.ownerID) {
|
if(user.user.id == message.guild.ownerID) {
|
||||||
badges = "<:owner:685703193694306331>\n"
|
badges += "<:owner:685703193694306331>"
|
||||||
|
}
|
||||||
|
|
||||||
|
if(user.user.bot) {
|
||||||
|
badges += "<:bot:686489601678114859>"
|
||||||
|
}
|
||||||
|
|
||||||
|
if(badges.length > 0) {
|
||||||
|
badges += "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
createdTimestamp = user.user.createdTimestamp;
|
createdTimestamp = user.user.createdTimestamp;
|
||||||
|
@ -61,13 +69,13 @@ exports.run = (client, message, args) => {
|
||||||
id = user.user.id;
|
id = user.user.id;
|
||||||
tag = user.user.tag;
|
tag = user.user.tag;
|
||||||
colour = user.displayHexColor;
|
colour = user.displayHexColor;
|
||||||
avurl = user.user.avatarURL({format: "png", dynamic: true});
|
avurl = user.user.avatarURL({format: "png", dynamic: true, size: 2048});
|
||||||
createdAt = user.user.createdAt;
|
createdAt = user.user.createdAt;
|
||||||
} else {
|
} else {
|
||||||
id = user.id;
|
id = user.id;
|
||||||
tag = user.tag;
|
tag = user.tag;
|
||||||
colour = ["#ff9d68", "#ff97cb", "#d789ff", "#74FFFF"].random();
|
colour = ["#ff9d68", "#ff97cb", "#d789ff", "#74FFFF"].random();
|
||||||
avurl = user.avatarURL({format: "png", dynamic: true});
|
avurl = user.avatarURL({format: "png", dynamic: true, size: 2048});
|
||||||
createdAt = user.createdAt;
|
createdAt = user.createdAt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue