You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to #46 being resolved, users can now see the standings the bot is keeping track of.
The issue here is that maybe we've recorded a few hundred users playing the game, and if the rate-limiting is set to a large-ish number (say 1 second) we may wait for several minutes as the standings are queued instantly in the bot but sent to the server at the configured rate.
Several trivia questions can then be queued up and go by while the standings are still being printed out.
This can be fixed in one of two ways:
1: Limit the standings to the top ten, or maybe just the ten people around where the user is, or some variation on this. This would put an upper bound on the time required to print out the standings.
Pros:
Simple to implement.
Cons:
We're still waiting to see questions in the main channel, and it still disrupts the game, just not for as long.
We would be removing the ability to see the complete standings, which may be preferred in some cases.
2: Implement a priority queue or multiple queues. This may be preferable because if a user wants to see the complete standings they don't care about getting them as fast as possible, but the game should keep running as normal and be just as responsive as it normally would be.
Pros:
Avoids the cons of the first implementation.
Cons:
Not as simple to implement as the first implementation.
The text was updated successfully, but these errors were encountered:
When a user gets a question correct, his rank is shown (or he can use ?rank at anytime).
If it's still very important that people can see the whole list, have an option that will display a URL to where the rankings are posted. Admins can turn the option on or off, depending on if they want to post rankings to a forum, web site, wiki, etc.
Due to #46 being resolved, users can now see the standings the bot is keeping track of.
The issue here is that maybe we've recorded a few hundred users playing the game, and if the rate-limiting is set to a large-ish number (say 1 second) we may wait for several minutes as the standings are queued instantly in the bot but sent to the server at the configured rate.
Several trivia questions can then be queued up and go by while the standings are still being printed out.
This can be fixed in one of two ways:
1: Limit the standings to the top ten, or maybe just the ten people around where the user is, or some variation on this. This would put an upper bound on the time required to print out the standings.
Pros:
Cons:
2: Implement a priority queue or multiple queues. This may be preferable because if a user wants to see the complete standings they don't care about getting them as fast as possible, but the game should keep running as normal and be just as responsive as it normally would be.
Pros:
Cons:
The text was updated successfully, but these errors were encountered: