From 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 17:29:09 +0100 Subject: Switch to using docstring for usage, permission and require_mode --- modules/isgd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/isgd.py') 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="") + @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: """ link = self.events.on("get.shortlink").call_for_result( url=event["args"]) -- cgit v1.3.1-10-gc9f91