aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/lswarns.js
diff options
context:
space:
mode:
authorJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
committerJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
commit7031fa12ba79281edc49df972311c13ad0e8fa53 (patch)
tree60410a33fe45add85a9dc962c975be478f3f8cff /commands/Moderation/lswarns.js
parent106530d5dc53166632a6a0ecc8930eb2b1ed4bfd (diff)
downloadPokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.gz
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.bz2
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.zip
es-lint settings added + linted all files
Diffstat (limited to 'commands/Moderation/lswarns.js')
-rw-r--r--commands/Moderation/lswarns.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/commands/Moderation/lswarns.js b/commands/Moderation/lswarns.js
index 732184d..7b39d12 100644
--- a/commands/Moderation/lswarns.js
+++ b/commands/Moderation/lswarns.js
@@ -9,24 +9,26 @@
exports.run = async (bot, msg) => {
const db = require('quick.db');
- const { RichEmbed } = require('discord.js');
+ const {RichEmbed} = require('discord.js');
const warns = await db.fetch(`warns_${msg.guild.id}_${msg.author.id}`);
- if (!warns) return await msg.reply('You don\'t have any warnings in this server.');
+ if (!warns) {
+ return msg.reply('You don\'t have any warnings in this server.');
+ }
const embed = new RichEmbed()
.setTitle('Warns');
for (let i = 0; i < warns.count; i++) {
- embed.addField('Warning #' + i + 1, warns.reasons[i]);
+ embed.addField(`Warning #${ i }${1}`, warns.reasons[i]);
}
- msg.channel.send({ embed });
+ msg.channel.send({embed});
};
exports.conf = {
aliases: [],
- guildOnly: true,
+ guildOnly: true
};
exports.help = {
name: 'lswarns',
- description: 'Shows all the warnings a user has.',
+ description: 'Shows all the warnings a user has.'
};