Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Add reddit-messages to SampleBot.yml
Browse files Browse the repository at this point in the history
Add additional debugging.
  • Loading branch information
cnaude committed Aug 12, 2014
1 parent 8a8014c commit 53ba1d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/com/cnaude/purpleirc/PurpleBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -1281,8 +1281,12 @@ public void redditStreamBroadcast(String message) {
}
for (String channelName : botChannels) {
if (isMessageEnabled(channelName, TemplateName.REDDIT_MESSAGES)) {
plugin.logDebug("Checking if " + TemplateName.REDDIT_MESSAGES + " is enabled... YES");
asyncIRCMessage(channelName, plugin.tokenizer.gameChatToIRCTokenizer(plugin.getMsgTemplate(botNick, TemplateName.REDDIT_MESSAGES), message));
} else {
plugin.logDebug("Checking if " + TemplateName.REDDIT_MESSAGES + " is enabled... NOPE");
}

}
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/SampleBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ channels:
# Catch /broadcast messages
#- broadcast-console-message
#- broadcast-message
# Hero channel destination for IRC messages
# RedditStream
#- reddit-messages
# Hero channel destination for IRC messages
hero-channel: admin
# Towny channel destination for IRC messages
towny-channel: irc
Expand Down

0 comments on commit 53ba1d0

Please sign in to comment.