mirror of
https://github.com/LBRYFoundation/lbry-tipbot.git
synced 2025-08-23 08:47:23 +00:00
run linter
This commit is contained in:
parent
ed3050b1ac
commit
54fe1351bb
1 changed files with 7 additions and 8 deletions
|
@ -24,7 +24,7 @@ const helpmsg = {
|
|||
'__**FURTHER INFORMATION**__\n\n' +
|
||||
'**Help**: `!tip help` *Get this message.\n' +
|
||||
'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>',
|
||||
description: 'Tip a given user with an amount of LBC or perform wallet specific operations.',
|
||||
process: async function(bot, msg, suffix) {
|
||||
let tipper = msg.author.id.replace('!',''),
|
||||
let tipper = msg.author.id.replace('!', ''),
|
||||
words = msg.content
|
||||
.trim()
|
||||
.split(' ')
|
||||
|
@ -66,7 +66,7 @@ exports.multitip = {
|
|||
usage: '<subcommand>',
|
||||
description: 'Tip multiple users simultaneously for the same amount of LBC each.',
|
||||
process: async function(bot, msg, suffix) {
|
||||
let tipper = msg.author.id.replace('!',''),
|
||||
let tipper = msg.author.id.replace('!', ''),
|
||||
words = msg.content
|
||||
.trim()
|
||||
.split(' ')
|
||||
|
@ -91,7 +91,7 @@ exports.roletip = {
|
|||
usage: '<subcommand>',
|
||||
description: 'Tip all users in a specified role an amount of LBC.',
|
||||
process: async function(bot, msg, suffix) {
|
||||
let tipper = msg.author.id.replace('!',''),
|
||||
let tipper = msg.author.id.replace('!', ''),
|
||||
words = msg.content
|
||||
.trim()
|
||||
.split(' ')
|
||||
|
@ -161,7 +161,7 @@ function doWithdraw(message, tipper, words, helpmsg) {
|
|||
amount = getValidatedAmount(words[3]);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -189,7 +189,7 @@ function doTip(bot, message, tipper, words, helpmsg, MultiorRole) {
|
|||
let amount = getValidatedAmount(words[amountOffset]);
|
||||
|
||||
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) {
|
||||
|
@ -213,7 +213,7 @@ function doMultiTip(bot, message, tipper, words, helpmsg, MultiorRole) {
|
|||
}
|
||||
let [userIDs, amount] = findUserIDsAndAmount(message, words, prv);
|
||||
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;
|
||||
}
|
||||
if (!userIDs) {
|
||||
|
@ -297,7 +297,6 @@ ${tx}${msgtail}`;
|
|||
usr.send(recipientmsg);
|
||||
}
|
||||
} else {
|
||||
|
||||
let generalmsg = `just tipped <@${recipient}> ${amount} LBC.
|
||||
${tx}${msgtail}`;
|
||||
message.reply(generalmsg);
|
||||
|
|
Loading…
Add table
Reference in a new issue