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