The Ultimate Formatting is Done

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 03:37:20 +00:00
parent 3b007758aa
commit f810181c11
102 changed files with 222 additions and 224 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ module.exports = class BanCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'BAN_MEMBERS'])) return;
}
console.log("[Command] " + message.content);
console.log(`[Command] ${message.content}`);
if (message.channel.type !== 'dm') {
let userToBan = message.mentions.users.first();
let reason = message.content.split(" ").slice(2).join(" ");
@@ -33,11 +33,11 @@ module.exports = class BanCommand extends commando.Command {
message.guild.member(userToBan).ban();
if (message.guild.channels.exists("name", "mod_logs")) {
const embed = new Discord.RichEmbed()
.setAuthor(message.author.username + '#' + message.author.discriminator, message.author.avatarURL)
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
.setColor(0xFF0000)
.setFooter('XiaoBot Moderation', this.client.user.avatarURL)
.setTimestamp()
.setDescription('**Member:** ' + userToBan.username + '#' + userToBan.discriminator + ' (' + userToBan.id + ')\n**Action:** Ban\n**Reason:** ' + reason);
.setDescription(`**Member:** ${userToBan.username}#${userToBan.discriminator} (${userToBan.id})\n**Action:** Ban\n**Reason:** ${reason}`);
message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error);
}
else {
+3 -3
View File
@@ -16,7 +16,7 @@ module.exports = class KickCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'KICK_MEMBERS'])) return;
}
console.log("[Command] " + message.content);
console.log(`[Command] ${message.content}`);
if (message.channel.type !== 'dm') {
let userToKick = message.mentions.users.first();
let reason = message.content.split(" ").slice(2).join(" ");
@@ -30,11 +30,11 @@ module.exports = class KickCommand extends commando.Command {
message.guild.member(userToKick).kick();
if (message.guild.channels.exists("name", "mod_logs")) {
const embed = new Discord.RichEmbed()
.setAuthor(message.author.username + '#' + message.author.discriminator, message.author.avatarURL)
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
.setColor(0xFFA500)
.setFooter('XiaoBot Moderation', this.client.user.avatarURL)
.setTimestamp()
.setDescription('**Member:** ' + userToKick.username + '#' + userToKick.discriminator + ' (' + userToKick.id + ')\n**Action:** Kick\n**Reason:** ' + reason);
.setDescription(`**Member:** ${userToKick.username}#${userToKick.discriminator} (${userToKick.id})\n**Action:** Kick\n**Reason:** ${reason}`);
message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error);
}
else {
+3 -3
View File
@@ -16,7 +16,7 @@ module.exports = class WarnCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log("[Command] " + message.content);
console.log(`[Command] ${message.content}`);
if (message.channel.type !== 'dm') {
let userToWarn = message.mentions.users.first();
let reason = message.content.split(" ").slice(2).join(" ");
@@ -28,11 +28,11 @@ module.exports = class WarnCommand extends commando.Command {
message.channel.send(":ok_hand:");
if (message.guild.channels.exists("name", "mod_logs")) {
const embed = new Discord.RichEmbed()
.setAuthor(message.author.username + '#' + message.author.discriminator, message.author.avatarURL)
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
.setColor(0xFFFF00)
.setFooter('XiaoBot Moderation', this.client.user.avatarURL)
.setTimestamp()
.setDescription('**Member:** ' + userToWarn.username + '#' + userToWarn.discriminator + ' (' + userToWarn.id + ')\n**Action:** Warn\n**Reason:** ' + reason);
.setDescription(`**Member:** ${userToWarn.username}#${userToWarn.discriminator} (${userToWarn.id})\n**Action:** Warn\n**Reason:** ${reason}`);
message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error);
}
else {