Merge pull request #33 from lbryio/fix-priv-roletip

Update tipbot.js
This commit is contained in:
Niko 2018-12-04 18:26:53 -05:00 committed by GitHub
commit 4dcaea3370
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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