Update tipbot.js

fix private roletip? 

Similar to https://github.com/lbryio/lbry-tipbot/pull/20/files
This commit is contained in:
Thomas Zarebczan 2018-09-26 22:43:10 -04:00 committed by GitHub
parent a82d7509c6
commit 1545685502
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,7 +246,7 @@ function doRoleTip(bot, message, tipper, words, helpmsg, MultiorRole) {
if (message.mentions.roles.first().members.first().id) {
let userIDs = message.mentions.roles.first().members.map(member => member.user.id.replace('!', ''));
for (let i = 0; i < userIDs.length; i++) {
sendLBC(bot, message, tipper, userIDs[i], amount, prv, MultiorRole);
sendLBC(bot, message, tipper, userIDs[i].toString(), amount, prv, MultiorRole);
}
} else {
return message.reply('Sorry, I could not find any users to tip in that role...').then(message => message.delete(10000));