diff options
| author | 2019-05-23 10:28:14 +0100 | |
|---|---|---|
| committer | 2019-05-23 10:28:14 +0100 | |
| commit | cf29c371120929c53490d6017d5f43cf04f3cbc9 (patch) | |
| tree | fcdce0685aca7a7edb319b35589ecc4ce80edbd6 /modules/title.py | |
| parent | `event.eat()` for command.regex hooks in github module (diff) | |
| signature | ||
Add usage examples for all settings
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/title.py b/modules/title.py index 73eba563..075ae6c5 100644 --- a/modules/title.py +++ b/modules/title.py @@ -3,14 +3,14 @@ from src import EventManager, ModuleManager, utils @utils.export("channelset", {"setting": "auto-title", "help": "Disable/Enable automatically getting info titles from URLs", - "validate": utils.bool_or_none}) + "validate": utils.bool_or_none, "example": "on"}) @utils.export("channelset", {"setting": "title-shorten", "help": "Enable/disable shortening URLs when getting their title", - "validate": utils.bool_or_none}) + "validate": utils.bool_or_none, "example": "on"}) @utils.export("channelset", {"setting": "auto-title-first", "help": ("Enable/disable showing who first posted a URL that was " "auto-titled"), - "validate": utils.bool_or_none}) + "validate": utils.bool_or_none, "exaple": "on"}) class Module(ModuleManager.BaseModule): def _url_hash(self, url): return "sha256:%s" % hashlib.sha256(url.lower().encode("utf8") |
