diff options
Diffstat (limited to 'modules/google.py')
| -rw-r--r-- | modules/google.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/google.py b/modules/google.py index f365ee90..123c7a58 100644 --- a/modules/google.py +++ b/modules/google.py @@ -9,9 +9,8 @@ from src import ModuleManager, utils URL_GOOGLESEARCH = "https://www.googleapis.com/customsearch/v1" URL_GOOGLESUGGEST = "http://google.com/complete/search" -@utils.export("channelset", {"setting": "google-safesearch", - "help": "Turn safe search off/on", - "validate": utils.bool_or_none, "example": "on"}) +@utils.export("channelset", utils.BoolSetting("google-safesearch", + "Turn safe search off/on")) class Module(ModuleManager.BaseModule): @utils.hook("received.command.g", alias_of="google") @utils.hook("received.command.google") |
