From a25785ab2f454c385f6b56cbd316edac30adcf74 Mon Sep 17 00:00:00 2001 From: ShadedJon Date: Mon, 14 Dec 2015 13:08:13 -0800 Subject: [PATCH] Channel balances So, this is a tipbot. No one is going to store large sums of money on a tipbot. About 90% of my users want to see their balances in a public channel to brag about it. I think I edited this right, but zero idea. --- lib/tipbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tipbot.js b/lib/tipbot.js index 4f6798f..270556e 100644 --- a/lib/tipbot.js +++ b/lib/tipbot.js @@ -379,7 +379,7 @@ TipBot.prototype.onMessage = function(channel, member, message) { */ if (message.match(/balance/i)) { if (channel.is_channel) { - channel.send("I don't think you really want me to tell your balance public channel, " + user.handle + " :/"); + channel.send(tellBalance(self.slack.getDMByUserId(user.id);); } user.tellBalance(self.slack.getDMByUserId(user.id));