diff options
| author | 2019-06-10 16:41:32 +0100 | |
|---|---|---|
| committer | 2019-06-10 16:41:32 +0100 | |
| commit | 03917649ee08ffb71c5d32f7c9998c92be3b6da0 (patch) | |
| tree | f6852ba1d5a74651e714621216763206f6cde9bc /modules/ducks.py | |
| parent | INFO log when we drop a message in message_filter.py (diff) | |
| signature | ||
Add help/usage strings for ducks.py
Diffstat (limited to 'modules/ducks.py')
| -rw-r--r-- | modules/ducks.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/ducks.py b/modules/ducks.py index 45f69cd9..158c6f23 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -80,6 +80,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.bef", alias_of="befriend") @utils.hook("received.command.befriend", channel_only=True) def befriend(self, event): + """ + :help: Befriend a duck + """ if event["target"].duck_active: action = self._duck_action(event["target"], event["user"], "saved", "ducks-befriended") @@ -89,6 +92,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.trap", channel_only=True) def trap(self, event): + """ + :help: Trap a duck + """ if event["target"].duck_active: action = self._duck_action(event["target"], event["user"], "trapped", "ducks-shot") @@ -98,11 +104,19 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.friends") def friends(self, event): + """ + :help: Show top 10 duck friends + :usage: [channel] + """ stats = self._duck_stats(event["server"], "ducks-befriended", "friends", event["args_split"][0] if event["args"] else None) event["stdout"].write(stats) @utils.hook("received.command.enemies") def enemies(self, event): + """ + :help: Show top 10 duck enemies + :usage: [channel] + """ stats = self._duck_stats(event["server"], "ducks-shot", "enemies", event["args_split"][0] if event["args"] else None) event["stdout"].write(stats) |
