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

k!hint timer apparently resets every 24 hours #2

Open
sanityormadness opened this issue Jun 10, 2024 · 1 comment
Open

k!hint timer apparently resets every 24 hours #2

sanityormadness opened this issue Jun 10, 2024 · 1 comment

Comments

@sanityormadness
Copy link

sanityormadness commented Jun 10, 2024

https://discord.com/channels/235843952153067541/400844273534107648/1249675774764777472

After a guess yesterday, I left it be for a while. Came back today, no-one had guessed anything, and asked for a k!hint. It said "It has only been 1 minutes. Hint is only available after 5 minutes." despite being just over 24 hours since the thing was posted.

image

[On a side note, "1 minutes"?]

@likuilin
Copy link
Owner

likuilin commented Jun 16, 2024

This is actually an intentional bug, added in for fun! See here:

egs_guess_bot/bot.py

Lines 248 to 252 in 3cd65b2

if correct:
gameSuppressAnswers = True
#intentional bug for fractal (and others!) to find
ttime = (datetime.datetime.now() - gameInitTime).seconds
print(ttime < hs_scores[str(message.author.id)][1], ttime, hs_scores[str(message.author.id)][1])

But, lol, I guess it should be fixed. I'll get to it eventually, or, feel free to send in a PR and I'll merge it (if you do, I'm very sorry the code is a massive mess).

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

No branches or pull requests

2 participants