!7 module TimerModule > DynBigNumber { long setTill; start { dm_onTopInput(voidfunc(S s) { new Matches m; if "* minutes" { int minutes = parseEnglishNumberOrInt($1); setField(setTill, now()+fromMinutes(minutes)); print("Timer set to " + minutes + " from now"); } }); doEvery(1.0, r updateMe); } void update { long now = now(); if (setTill > now) else setValue(""); } }