From 29be8afb70716353c24efe1071074c57c78649dd Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 13 Dec 2018 20:06:34 +0000 Subject: Configure owner in properties --- scripts/toy.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/toy.groovy b/scripts/toy.groovy index b47586a..d8651ff 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -31,7 +31,7 @@ final START = "start", END = "end", FRIEND = "friend"; final FRIENDS = [ "Tori", "Sophie", "Krystal" ]; // toy.position final KNEELING = "kneeling", ALLFOURS = "allfours", STANDING = "standing"; -final OWNER = "ancilla"; +def OWNER = null; final SITTER = "sarah-james"; final SOFT = "soft"; @@ -1384,6 +1384,8 @@ def setupShowCalendar = { }; // GO! +setDefault("toy.owner", "ancilla"); +OWNER = loadString("toy.owner"); def getDayNum = { Math.floorDiv(getTime() + localTimeOffset() - 14400, 86400) }; def getAvail = { dayNum -> loadInteger("toy.availability.$dayNum") ?: 0 }; def addAvail = { amount -> -- cgit v1.2.3