Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands: Improve timer and showgif #80

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Dirain1700
Copy link
Contributor

@Dirain1700 Dirain1700 commented Apr 8, 2023

Whats changed:

Commands

  • showgif: Allow to add shiny option (e.g. .showgif gc, shiny pikachu, pikachu)
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant