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
|
@ -16,14 +16,12 @@ function init(discordBot_) {
|
||||||
if (discordBot) {
|
if (discordBot) {
|
||||||
throw new Error('init was already called once');
|
throw new Error('init was already called once');
|
||||||
}
|
}
|
||||||
if (config.get(channels) !== null) {
|
|
||||||
discordBot = discordBot_;
|
discordBot = discordBot_;
|
||||||
console.log('Activating claimbot');
|
console.log('Activating claimbot');
|
||||||
discordBot.channels.get(channels[0]).send('activating claimbot');
|
discordBot.channels.get(channels[0]).send('activating claimbot');
|
||||||
setInterval(announceClaims, 60 * 1000);
|
setInterval(announceClaims, 60 * 1000);
|
||||||
announceClaims();
|
announceClaims();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function announceClaims() {
|
function announceClaims() {
|
||||||
let currentBlock = lastProcessedBlock;
|
let currentBlock = lastProcessedBlock;
|
||||||
|
|
Loading…
Add table
Reference in a new issue