Remove null channel check

This commit is contained in:
Ralph 2019-11-17 13:54:03 -05:00
parent de593f247c
commit e366920bcc
4 changed files with 6 additions and 8 deletions

View file

@ -47,7 +47,7 @@ bot.on('ready', function() {
bot.user.setActivity(config.prefix + 'help', { type: 'LISTENING' }).catch(console.error);
//initialize the claimbot (content bot)
if(genconfig.get('claimbot').enabled) {
if (genconfig.get('claimbot').enabled) {
claimbot.init(bot);
}
//initialize the commandsBot

View file

@ -16,13 +16,11 @@ function init(discordBot_) {
if (discordBot) {
throw new Error('init was already called once');
}
if (config.get(channels) !== null) {
discordBot = discordBot_;
console.log('Activating claimbot');
discordBot.channels.get(channels[0]).send('activating claimbot');
setInterval(announceClaims, 60 * 1000);
announceClaims();
}
}
function announceClaims() {

View file

@ -4,7 +4,7 @@ const ircconfig = config.get('irc');
exports.custom = ['irc'];
exports.irc = function(bot) {
if(ircconfig.enabled) {
if (ircconfig.enabled) {
discordIRC([ircconfig]);
}
};

View file

@ -414,7 +414,7 @@
"icon_url": "https://spee.ch/2/pinkylbryheart.png"
}
}
},
},
"!rewardsapproval": {
"usage": "",
"description": "Rewards Approval Help Message",
@ -896,8 +896,8 @@
}
}
},
"!status": {
"!status": {
"usage": "",
"description": "LBRY Services Status",
"operation": "send",
@ -913,7 +913,7 @@
}
}
},
"!piratebay": {
"usage": "",
"description": "Why LBRY has piratebay.com",