Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: abpbot.py

Issue 29337738: Issue 3703 - Add "coin flip" feature to abpbot (Closed)
Patch Set: Created Feb. 25, 2016, 7:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | decisionbot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: abpbot.py
diff --git a/abpbot.py b/abpbot.py
index 2fc6d6897a936608aef6de66935ec90321cdca25..e2aac80f52a47e05684b86f33d7815249e72d49d 100644
--- a/abpbot.py
+++ b/abpbot.py
@@ -17,7 +17,7 @@ import ConfigParser
from ircbot import SingleServerIRCBot
import irclib
from botcommon import OutputManager
-import logbot, beanbot
+import logbot, beanbot, decisionbot
# The message returned when someone messages the bot
HELP_MESSAGE = "I am the Adblock Plus logging bot."
@@ -62,7 +62,9 @@ class Bot(SingleServerIRCBot):
def handler_for_key(self, key):
return lambda c, e: self.execute_handlers(key, c, e)
- for handler in logbot.Logbot(config, self.queue), beanbot.Beanbot(config, self.queue):
+ for handler in (logbot.Logbot(config, self.queue),
+ beanbot.Beanbot(config, self.queue),
+ decisionbot.Decisionbot(config, self.queue)):
for props in handler.__dict__, handler.__class__.__dict__:
for key in props.iterkeys():
if not key.startswith('on_'):
« no previous file with comments | « no previous file | decisionbot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld