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

Allow group on hatch. #248

Closed
wants to merge 1 commit into from
Closed

Conversation

Baviaan
Copy link
Contributor

@Baviaan Baviaan commented Jun 18, 2019

Suggested 1s leeway on the group command before throwing an invalid time error because a raid report does not store the given hatch time precisely:

# Program flow for !raid 5 here 18:00

stamp = await converter.convert(ctx, gym_split[-1]) # 18:00:00
dt = stamp - time.time()                            # 00:29:55 = 18:00:00 - 17:30:05
endtime = dt/60                                     # 00:29:55 /60
hatch = time.time() + 60*endtime                    # 18:00:00.1 = 17:30:05.1 + 00:29:55 * 60/60
                                                    # !group 18:00 throws an error

@Baviaan Baviaan closed this Jun 19, 2019
@Baviaan Baviaan deleted the new-core branch June 19, 2019 13:58
@Baviaan Baviaan mentioned this pull request Jun 19, 2019
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