timer: support time prefixes (sec and min), like .timer 3 sec, 3 min (this returns 3 minutes and 3 seconds)
This does not require to type seconds: just put the word starts with sec or min at last of params each.
gtimer: Same with timer.
sgtimer: Allow to use not integer numbers: like .sgtimer 1.5 min this command using same function with timer and gtimer, supports .sgtimer 1 min and 10 sec
Tools
Add fromTimeString() function
This outputs number with milliseconds from string, the params should end with the word starts with min or sec: doesnt allow hour or up. Allowing non-integer numbers, but disallowed numbers like 1+e7 and -+ operators.
Whats changed:
Commands
showgif
: Allow to addshiny
option (e.g..showgif gc, shiny pikachu, pikachu
)timer
: support time prefixes (sec
andmin
), like.timer 3 sec, 3 min
(this returns 3 minutes and 3 seconds) This does not require to typeseconds
: just put the word starts withsec
ormin
at last of params each.gtimer
: Same withtimer
.sgtimer
: Allow to use not integer numbers: like.sgtimer 1.5 min
this command using same function withtimer
andgtimer
, supports.sgtimer 1 min and 10 sec
Tools
fromTimeString()
function This outputs number with milliseconds from string, the params should end with the word starts withmin
orsec
: doesnt allowhour
or up. Allowing non-integer numbers, but disallowed numbers like1+e7
and-
+
operators.