aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar dngfx2018-09-08 16:34:28 +0100
committerGravatar dongfix2018-09-08 16:34:28 +0100
commit763333eea89d01ae10b5fdb3fefe496a83ade396 (patch)
tree87d5ce662fff396d403935f695e02a8da0dc34c7 /modules
parentRename ducks_old.py to stop it getting autoloaded. (diff)
signature
PEP8 Compliance.
Diffstat (limited to 'modules')
-rw-r--r--modules/ducks.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/ducks.py b/modules/ducks.py
index a29213ac..31a7fbe9 100644
--- a/modules/ducks.py
+++ b/modules/ducks.py
@@ -25,7 +25,8 @@ class Module(object):
events.on("received").on("command").on("bef").hook(self.befriend,
priority=1,
- help="Befriend a duck!")
+ help="Befriend a "
+ "duck!")
events.on("received").on("command").on("bang").hook(self.shoot,
priority=1,
help="Shoot a "
@@ -52,7 +53,8 @@ class Module(object):
"validate": Utils.bool_or_none})
exports.add("channelset", {"setting": "ducks-kick",
- "help": "Should the bot kick if there's no duck?",
+ "help": "Should the bot kick if there's no "
+ "duck?",
"validate": Utils.bool_or_none})
events.on("new.channel").hook(self.bootstrap)
@@ -160,7 +162,8 @@ class Module(object):
duck += random.choice(DUCK_HEAD)
duck = str(Utils.color(4) + Utils.bold(duck + random.choice(
- DUCK_MESSAGE_RARE)) + Utils.color(4)) if 1 == random.randint(1, 20) \
+ DUCK_MESSAGE_RARE)) + Utils.color(4)) if 1 == random.randint(1,
+ 20) \
else duck + random.choice(DUCK_MESSAGE)
channel.send_message(duck)