implements timed clearing of dice
All checks were successful
CI / deploy (push) Successful in 4m20s
CI / deploy (pull_request) Successful in 4m17s

This commit is contained in:
Arindy
2025-02-10 15:05:33 +01:00
parent 1518783090
commit b69bdb72ee
4 changed files with 60 additions and 7 deletions

View File

@@ -73,6 +73,10 @@
themeColor: data.themeColor,
results: rollResult,
} ))
if ({clearAfter} > 0) {
setTimeout(() => diceBox.clear(), {clearAfter} * 1000)
}
}
diceBox.roll(data.roll, { theme: data.theme?.length > 0 ? data.theme : 'default', themeColor: data.themeColor.length > 0 ? data.themeColor : '#4545FF' });
})