mirror of
https://github.com/LBRYFoundation/lbry-tipbot.git
synced 2025-08-23 16:57:24 +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' +
|
'__**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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue