aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility/nick.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/Utility/nick.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/Utility/nick.js')
-rw-r--r--commands/Utility/nick.js17
1 files changed, 10 insertions, 7 deletions
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>'
};