mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Remove null channel check
This commit is contained in:
parent
de593f247c
commit
e366920bcc
4 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -4,7 +4,7 @@ const ircconfig = config.get('irc');
|
|||
exports.custom = ['irc'];
|
||||
|
||||
exports.irc = function(bot) {
|
||||
if(ircconfig.enabled) {
|
||||
if (ircconfig.enabled) {
|
||||
discordIRC([ircconfig]);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue