Added countdown options for next throw #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I really liked this script but I found it a bit annoying how I couldn't change the timer until next throw, and was forced to go into the file itself and edit it. So I took the time and added some stuff and there is now two new options that people can use. I've tested it with several different combinations of settings and it all seems to work.
-"Longest amount of time until next throw(seconds)"
Range is 1 to 3600 seconds. Meaning that the longest time until next throw is an hour. Setting the two values will obviously not randomize the throws anymore and will instead just countdown the time set and throw the little cute cat or whatever the source is.
NOTE: I have never edited a OBS script, nor Lua before so if any of the code I added is not usable for some reason that I'm not aware of, please tell me because I would love to learn more about it. I didn't even know Lua existed before today. Same goes for github, I'm honestly so lost in this process so please do tell me If I've misunderstood anything