Skip to content

Commit

Permalink
Remove debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
synzen committed Jan 7, 2019
1 parent b46f067 commit 9dd232f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion commands/subme.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = async (bot, message, command) => {
if (err.code !== 50013) message.channel.send(err.message)
})
} catch (err) {
log.command.warning(`subme`, message.guild, err, true)
log.command.warning(`subme`, message.guild, err)
if (err.code !== 50013) message.channel.send(err.message).catch(err => log.command.warning('subme 1', message.guild, err))
}
}
2 changes: 0 additions & 2 deletions commands/util/getSubList.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
module.exports = (guild, rssList) => {
let finalList = []
const botRole = guild.members.get(guild.client.user.id).highestRole
console.log(botRole == undefined)
for (var rssName in rssList) {
let subscribersFound = []
const keys = ['globalSubscriptions', 'filteredSubscriptions']
Expand All @@ -17,7 +16,6 @@ module.exports = (guild, rssList) => {
for (const subscriber of subscriptions) {
if (subscriber.type === 'role') {
const role = guild.roles.get(subscriber.id)
console.log(role == undefined)
if (role.comparePositionTo(botRole) < 0) subscribersFound.push(role.id)
}
}
Expand Down

0 comments on commit 9dd232f

Please sign in to comment.