diff options
| author | 2018-10-04 17:09:52 +0100 | |
|---|---|---|
| committer | 2018-10-04 17:09:52 +0100 | |
| commit | 57b72a94c5303fa636f0cc6db019e8a2f0798d6f (patch) | |
| tree | 177020a52f95016f80e8ea61f666787b2e9e72ab /modules/rest_api.py | |
| parent | Implement api keys in modules/rest_api.py (diff) | |
| signature | ||
Implement !botset/!botget in modules/set.py
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index fad3f6be..2522b109 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -36,6 +36,9 @@ class Handler(http.server.BaseHTTPRequestHandler): pass _bot.lock.release() +@utils.export("botset", {"setting": "rest-api", + "help": "Enable/disable REST API", + "validate": utils.bool_or_none}) class Module(object): def __init__(self, bot, events, exports): self.bot = bot |
