run linter

This commit is contained in:
Niko Storni 2018-11-15 11:57:40 -05:00
parent ed3050b1ac
commit 54fe1351bb

View file

@ -24,7 +24,7 @@ const helpmsg = {
'__**FURTHER INFORMATION**__\n\n' + '__**FURTHER INFORMATION**__\n\n' +
'**Help**: `!tip help` *Get this message.\n' + '**Help**: `!tip help` *Get this message.\n' +
'Read our [Tipbot FAQ](https://lbry.io/faq/tipbot-discord) for a more details', 'Read our [Tipbot FAQ](https://lbry.io/faq/tipbot-discord) for a more details',
color: 1109218, color: 1109218
} }
}; };
@ -33,7 +33,7 @@ exports.tip = {
usage: '<subcommand>', usage: '<subcommand>',
description: 'Tip a given user with an amount of LBC or perform wallet specific operations.', description: 'Tip a given user with an amount of LBC or perform wallet specific operations.',
process: async function(bot, msg, suffix) { process: async function(bot, msg, suffix) {
let tipper = msg.author.id.replace('!',''), let tipper = msg.author.id.replace('!', ''),
words = msg.content words = msg.content
.trim() .trim()
.split(' ') .split(' ')
@ -66,7 +66,7 @@ exports.multitip = {
usage: '<subcommand>', usage: '<subcommand>',
description: 'Tip multiple users simultaneously for the same amount of LBC each.', description: 'Tip multiple users simultaneously for the same amount of LBC each.',
process: async function(bot, msg, suffix) { process: async function(bot, msg, suffix) {
let tipper = msg.author.id.replace('!',''), let tipper = msg.author.id.replace('!', ''),
words = msg.content words = msg.content
.trim() .trim()
.split(' ') .split(' ')
@ -91,7 +91,7 @@ exports.roletip = {
usage: '<subcommand>', usage: '<subcommand>',
description: 'Tip all users in a specified role an amount of LBC.', description: 'Tip all users in a specified role an amount of LBC.',
process: async function(bot, msg, suffix) { process: async function(bot, msg, suffix) {
let tipper = msg.author.id.replace('!',''), let tipper = msg.author.id.replace('!', ''),
words = msg.content words = msg.content
.trim() .trim()
.split(' ') .split(' ')
@ -161,7 +161,7 @@ function doWithdraw(message, tipper, words, helpmsg) {
amount = getValidatedAmount(words[3]); amount = getValidatedAmount(words[3]);
if (amount === null) { if (amount === null) {
message.reply("Invalid amount of credits specified... Cannot withdraw credits.").then(message => message.delete(5000)); message.reply('Invalid amount of credits specified... Cannot withdraw credits.').then(message => message.delete(5000));
return; return;
} }
@ -189,7 +189,7 @@ function doTip(bot, message, tipper, words, helpmsg, MultiorRole) {
let amount = getValidatedAmount(words[amountOffset]); let amount = getValidatedAmount(words[amountOffset]);
if (amount === null) { if (amount === null) {
return message.reply("Invalid amount of credits specified...").then(message => message.delete(5000)); return message.reply('Invalid amount of credits specified...').then(message => message.delete(5000));
} }
if (message.mentions.users.first() && message.mentions.users.first().id) { if (message.mentions.users.first() && message.mentions.users.first().id) {
@ -213,7 +213,7 @@ function doMultiTip(bot, message, tipper, words, helpmsg, MultiorRole) {
} }
let [userIDs, amount] = findUserIDsAndAmount(message, words, prv); let [userIDs, amount] = findUserIDsAndAmount(message, words, prv);
if (amount == null) { if (amount == null) {
message.reply("Invalid amount of credits specified...").then(message => message.delete(5000)); message.reply('Invalid amount of credits specified...').then(message => message.delete(5000));
return; return;
} }
if (!userIDs) { if (!userIDs) {
@ -297,7 +297,6 @@ ${tx}${msgtail}`;
usr.send(recipientmsg); usr.send(recipientmsg);
} }
} else { } else {
let generalmsg = `just tipped <@${recipient}> ${amount} LBC. let generalmsg = `just tipped <@${recipient}> ${amount} LBC.
${tx}${msgtail}`; ${tx}${msgtail}`;
message.reply(generalmsg); message.reply(generalmsg);