Fixed problem with balances.

Fixed the problem regarding MSFTservers balance and found a small problem which should be fixed by this quickfix, someone please review ASAP.
This commit is contained in:
filipnyquist 2017-11-01 20:19:00 +01:00 committed by GitHub
parent eaa99012fd
commit 0c6162c184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,8 +104,8 @@ function doTip(message, tipper, words) {
return; return;
} }
if (words[1].match(/^<@[^>]+>$/)) { if (message.mentions.members.first().id) {
let id = words[1].substr(2,words[1].length-3); let id = message.mentions.members.first().id;
sendLbc(message, tipper, id, amount); sendLbc(message, tipper, id, amount);
} }
else else