Sunmoon tags and time tag for steam games #63
Merged
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.
Added Tags:
@Time
@SunMoon
@SunMoon
Configuration Values Added:
What is this?
Sunset and Sunrise hours are used to help determine when you consider it to be day and when you determine it's night based on server time.
How can I use it?
Steam Users
When utilizing a game that speaks with Steam Web API and holds onto the game's time inside of its Gametype, I will parse it out and use it for the server's time. This will influence whether these tags work for you or not. The only servers I am aware of are DayZ, but many games use Gametype to hold information about the server and do.
Battlemetric
When utilizing a game that is tracked by BattleMetrics, was already available to you, so I have added the SunMoon tag to your available tags.
What will it look like?
What does my config look like now, and how can I configure when it's daytime or nighttime?
There is no difference due to these variables not being required by older version configs. To configure what hour is after sunrise you will set SunriseHour to that value instead of
null
. To configure what hour is the last hour of daylight before night time set SunsetHour to a value instead of null. If both values are null, or only one is set the bot will default to 0600 - 2000 daytime cycle (July).