Skip to content

Commit

Permalink
DRY up
Browse files Browse the repository at this point in the history
  • Loading branch information
rb28z2 committed Dec 26, 2018
1 parent 0aea085 commit 020807f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ export function initIRC() {
let ircMessage = getIRCtoSay(command);
let discordMessage = getDiscordtoSay(command);

if (ircMessage){
for (let i = 0; i < config.notifyChannel.length; i++) {
bot.say(config.notifyChannel[i], ircMessage);
}
}

ircSay(ircMessage);
discordSay(discordMessage);
}

Expand Down

0 comments on commit 020807f

Please sign in to comment.