From 7031fa12ba79281edc49df972311c13ad0e8fa53 Mon Sep 17 00:00:00 2001 From: Justin Date: Sat, 2 Nov 2019 11:02:19 -0400 Subject: es-lint settings added + linted all files --- commands/Utility/nick.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'commands/Utility/nick.js') diff --git a/commands/Utility/nick.js b/commands/Utility/nick.js index bec9578..f02af0f 100644 --- a/commands/Utility/nick.js +++ b/commands/Utility/nick.js @@ -8,14 +8,18 @@ * *************************************/ exports.run = async (bot, msg, args) => { - const { RichEmbed } = require('discord.js'); + const {RichEmbed} = require('discord.js'); msg.member.setNickname(args.join(' '), 'Requested by bot'); - msg.channel.send('Changed nickname to: ' + args.join(' ')); + msg.channel.send(`Changed nickname to: ${args.join(' ')}`); const logChannel = await bot.plugins.settings.getStr('logs', msg.member.guild.id); - if (!logChannel) return; + if (!logChannel) { + return; + } const channelObj = bot.channels.find('id', logChannel); - if (!channelObj) return; + if (!channelObj) { + return; + } channelObj.send( new RichEmbed() .setColor(0x00ae86) @@ -25,16 +29,15 @@ exports.run = async (bot, msg, args) => { .setTimestamp() .setFooter('PokeBot v1.0') ); - }; exports.conf = { aliases: ['nickname'], - guildOnly: true, + guildOnly: true }; exports.help = { name: 'nick', description: 'Change your nickname.', - usage: '<...new nick>', + usage: '<...new nick>' }; -- cgit v1.2.3