diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/isgd.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/isgd.py')
| -rw-r--r-- | modules/isgd.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/isgd.py b/modules/isgd.py index f55f17a7..ba7c5618 100644 --- a/modules/isgd.py +++ b/modules/isgd.py @@ -18,10 +18,11 @@ class Module(ModuleManager.BaseModule): if data and data["shorturl"]: return data["shorturl"] - @Utils.hook("received.command.shorten", min_args=1, usage="<url>") + @Utils.hook("received.command.shorten", min_args=1) def shorten(self, event): """ - Shorten a given URL using the is.gd service + :help: Shorten a given URL using the is.gd service + :usage: <url> """ link = self.events.on("get.shortlink").call_for_result( url=event["args"]) |
