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/tweets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/tweets.py') diff --git a/modules/tweets.py b/modules/tweets.py index 4dc08789..f0aedcc4 100644 --- a/modules/tweets.py +++ b/modules/tweets.py @@ -19,10 +19,11 @@ class Module(ModuleManager.BaseModule): since, unit = Utils.time_unit(seconds_since) return "%s %s ago" % (since, unit) - @Utils.hook("received.command.tweet|tw", usage="[@username/URL/ID]") + @Utils.hook("received.command.tweet|tw") def tweet(self, event): """ - Get/find a tweet + :help: Get/find a tweet + :usage: [@username/URL/ID] """ api_key = self.bot.config["twitter-api-key"] api_secret = self.bot.config["twitter-api-secret"] -- cgit v1.3.1-10-gc9f91