Merge pull request #17 from ProfessorDey/patch-1
Change !tipcommands to !tips
This commit is contained in:
commit
ea8773ffaf
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ let regex = require('regex');
|
||||||
let lbrycrdConfig = config.get('lbrycrd');
|
let lbrycrdConfig = config.get('lbrycrd');
|
||||||
const lbry = new bitcoin.Client(lbrycrdConfig);
|
const lbry = new bitcoin.Client(lbrycrdConfig);
|
||||||
|
|
||||||
exports.commands = ['tip', 'multitip', 'roletip', 'tipcommands'];
|
exports.commands = ['tip', 'multitip', 'roletip', 'tips'];
|
||||||
exports.tip = {
|
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.',
|
||||||
|
@ -126,7 +126,7 @@ exports.roletip = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.tipcommands = {
|
exports.tips = {
|
||||||
usage: '',
|
usage: '',
|
||||||
description: 'Lists all available tipbot commands with brief descriptions for each one.',
|
description: 'Lists all available tipbot commands with brief descriptions for each one.',
|
||||||
process: async function(bot, msg, suffix) {
|
process: async function(bot, msg, suffix) {
|
||||||
|
@ -134,7 +134,7 @@ exports.tipcommands = {
|
||||||
['!tip', 'Tip a given user with an amount of LBC or perform wallet specific operations.'],
|
['!tip', 'Tip a given user with an amount of LBC or perform wallet specific operations.'],
|
||||||
['!multitip', 'Tip multiple users simultaneously for the same amount of LBC each.'],
|
['!multitip', 'Tip multiple users simultaneously for the same amount of LBC each.'],
|
||||||
['!roletip', 'Tip every user in a given role the same amount of LBC.'],
|
['!roletip', 'Tip every user in a given role the same amount of LBC.'],
|
||||||
['!tipcommands', 'Lists all available tipbot commands with brief descriptions for each one.']
|
['!tips', 'Lists all available tipbot commands with brief descriptions for each one.']
|
||||||
],
|
],
|
||||||
helpmsg = {
|
helpmsg = {
|
||||||
embed: {
|
embed: {
|
||||||
|
@ -313,7 +313,7 @@ function sendLBC(message, tipper, recipient, amount, privacyFlag) {
|
||||||
} else {
|
} else {
|
||||||
let tx = txLink(txId);
|
let tx = txLink(txId);
|
||||||
let msgtail = `
|
let msgtail = `
|
||||||
DM me with \`${message.content.split(' ', 1)[0]}\` for command specific instructions or with \`!tipcommands\` for all available commands`;
|
DM me with \`${message.content.split(' ', 1)[0]}\` for command specific instructions or with \`!tips\` for all available commands`;
|
||||||
if (privacyFlag) {
|
if (privacyFlag) {
|
||||||
let authmsg = `You have just privately tipped <@${recipient}> ${amount} LBC.
|
let authmsg = `You have just privately tipped <@${recipient}> ${amount} LBC.
|
||||||
${tx}${msgtail}`;
|
${tx}${msgtail}`;
|
||||||
|
|
Loading…
Reference in a new issue