diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/tweets.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/tweets.py')
| -rw-r--r-- | modules/tweets.py | 5 |
1 files changed, 3 insertions, 2 deletions
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"] |
