From 136f17c4ad4c3d5943852b2b3bf69b46ad2291d0 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Sun, 4 Nov 2018 21:23:12 +0700 Subject: [PATCH] strict balance on general and remove comma --- bot/modules/tipbot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/modules/tipbot.js b/bot/modules/tipbot.js index 3054a24..ea9aa36 100644 --- a/bot/modules/tipbot.js +++ b/bot/modules/tipbot.js @@ -33,7 +33,7 @@ exports.tip = { usage: '', 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: '', 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: '', 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(' ')