strict balance on general and remove comma

This commit is contained in:
YULIUS KURNIAWAN KRISTIANTO 2018-11-04 21:23:12 +07:00 committed by GitHub
parent 54c7caaa63
commit 136f17c4ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(' ')
@ -48,7 +48,7 @@ exports.tip = {
privateOrSandboxOnly(msg, channelwarning, doHelp, [helpmsg]); privateOrSandboxOnly(msg, channelwarning, doHelp, [helpmsg]);
break; break;
case 'balance': case 'balance':
doBalance(msg, tipper); privateOrSandboxOnly(msg, channelwarning, doBalance, [tipper]);
break; break;
case 'deposit': case 'deposit':
privateOrSandboxOnly(msg, channelwarning, doDeposit, [tipper]); privateOrSandboxOnly(msg, channelwarning, doDeposit, [tipper]);
@ -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(' ')