From 4bfb4c3200506da63eb0451d42a300ee400a176c Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 30 Aug 2019 14:40:54 +0100 Subject: Add IntRangeSetting, reorder OptionsSetting arg order --- modules/ducks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/ducks.py') diff --git a/modules/ducks.py b/modules/ducks.py index d3708d08..8fb62ebf 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -11,8 +11,8 @@ DEFAULT_MIN_MESSAGES = 100 @utils.export("channelset", utils.BoolSetting("ducks-enabled", "Whether or not to spawn ducks")) -@utils.export("channelset", utils.IntSetting("ducks-min-messages", - "Minimum messages between ducks spawning", example="50")) +@utils.export("channelset", utils.IntRangeSetting(50, 200, "ducks-min-messages", + "Minimum messages between ducks spawning")) @utils.export("channelset", utils.BoolSetting("ducks-kick", "Whether or not to kick someone talking to non-existent ducks")) class Module(ModuleManager.BaseModule): -- cgit v1.3.1-10-gc9f91