diff options
| author | 2019-06-28 23:16:05 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:16:05 +0100 | |
| commit | ae9d099a41b703ce875cf8746a94b6995bbaedfb (patch) | |
| tree | c389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/tweets | |
| parent | message arg for HTTPWrongContentTypeException/HTTPParsingException (diff) | |
| signature | ||
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
Diffstat (limited to 'modules/tweets')
| -rw-r--r-- | modules/tweets/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/tweets/__init__.py b/modules/tweets/__init__.py index 07e41760..979b55b0 100644 --- a/modules/tweets/__init__.py +++ b/modules/tweets/__init__.py @@ -42,9 +42,8 @@ class BitBotStreamListener(tweepy.StreamListener): _events.on("send.stdout").call(target=channel, module_name="Tweets", server=server, message=tweet) -@utils.export("channelset", {"setting": "auto-tweet", - "help": "Enable/disable automatically getting tweet info", - "validate": utils.bool_or_none, "example": "on"}) +@utils.export("channelset", utils.BoolSetting("auto-tweet", + "Enable/disable automatically getting tweet info")) class Module(ModuleManager.BaseModule): _stream = None def on_load(self): |
