{"action":"created","issue":{"url":"https://api.github.com/repos/rawsonj/triviabot/issues/47","repository_url":"https://api.github.com/repos/rawsonj/triviabot","labels_url":"https://api.github.com/repos/rawsonj/triviabot/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/rawsonj/triviabot/issues/47/comments","events_url":"https://api.github.com/repos/rawsonj/triviabot/issues/47/events","html_url":"https://github.com/rawsonj/triviabot/issues/47","id":164731116,"number":47,"title":"Limit the number of standings so we don't wait 10 minutes for them to be printed out.","user":{"login":"rawsonj","id":4298296,"avatar_url":"https://avatars.githubusercontent.com/u/4298296?v=3","gravatar_id":"","url":"https://api.github.com/users/rawsonj","html_url":"https://github.com/rawsonj","followers_url":"https://api.github.com/users/rawsonj/followers","following_url":"https://api.github.com/users/rawsonj/following{/other_user}","gists_url":"https://api.github.com/users/rawsonj/gists{/gist_id}","starred_url":"https://api.github.com/users/rawsonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawsonj/subscriptions","organizations_url":"https://api.github.com/users/rawsonj/orgs","repos_url":"https://api.github.com/users/rawsonj/repos","events_url":"https://api.github.com/users/rawsonj/events{/privacy}","received_events_url":"https://api.github.com/users/rawsonj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rawsonj/triviabot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"rawsonj","id":4298296,"avatar_url":"https://avatars.githubusercontent.com/u/4298296?v=3","gravatar_id":"","url":"https://api.github.com/users/rawsonj","html_url":"https://github.com/rawsonj","followers_url":"https://api.github.com/users/rawsonj/followers","following_url":"https://api.github.com/users/rawsonj/following{/other_user}","gists_url":"https://api.github.com/users/rawsonj/gists{/gist_id}","starred_url":"https://api.github.com/users/rawsonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawsonj/subscriptions","organizations_url":"https://api.github.com/users/rawsonj/orgs","repos_url":"https://api.github.com/users/rawsonj/repos","events_url":"https://api.github.com/users/rawsonj/events{/privacy}","received_events_url":"https://api.github.com/users/rawsonj/received_events","type":"User","site_admin":false},"assignees":[{"login":"rawsonj","id":4298296,"avatar_url":"https://avatars.githubusercontent.com/u/4298296?v=3","gravatar_id":"","url":"https://api.github.com/users/rawsonj","html_url":"https://github.com/rawsonj","followers_url":"https://api.github.com/users/rawsonj/followers","following_url":"https://api.github.com/users/rawsonj/following{/other_user}","gists_url":"https://api.github.com/users/rawsonj/gists{/gist_id}","starred_url":"https://api.github.com/users/rawsonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawsonj/subscriptions","organizations_url":"https://api.github.com/users/rawsonj/orgs","repos_url":"https://api.github.com/users/rawsonj/repos","events_url":"https://api.github.com/users/rawsonj/events{/privacy}","received_events_url":"https://api.github.com/users/rawsonj/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-07-10T19:56:04Z","updated_at":"2016-08-26T06:19:43Z","closed_at":null,"body":"Due to #46 being resolved, users can now see the standings the bot is keeping track of.\r\n\r\nThe 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.\r\n\r\nSeveral trivia questions can then be queued up and go by while the standings are still being printed out.\r\n\r\nThis can be fixed in one of two ways:\r\n\r\n1: 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.\r\n\r\nPros:\r\n\r\n* Simple to implement.\r\n\r\nCons:\r\n\r\n* We're still waiting to see questions in the main channel, and it still disrupts the game, just not for as long.\r\n\r\n* We would be removing the ability to see the complete standings, which may be preferred in some cases.\r\n\r\n2: 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.\r\n\r\nPros:\r\n\r\n* Avoids the cons of the first implementation.\r\n\r\nCons:\r\n\r\n* Not as simple to implement as the first implementation."},"comment":{"url":"https://api.github.com/repos/rawsonj/triviabot/issues/comments/242639909","html_url":"https://github.com/rawsonj/triviabot/issues/47#issuecomment-242639909","issue_url":"https://api.github.com/repos/rawsonj/triviabot/issues/47","id":242639909,"user":{"login":"andy5995","id":16764864,"avatar_url":"https://avatars.githubusercontent.com/u/16764864?v=3","gravatar_id":"","url":"https://api.github.com/users/andy5995","html_url":"https://github.com/andy5995","followers_url":"https://api.github.com/users/andy5995/followers","following_url":"https://api.github.com/users/andy5995/following{/other_user}","gists_url":"https://api.github.com/users/andy5995/gists{/gist_id}","starred_url":"https://api.github.com/users/andy5995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy5995/subscriptions","organizations_url":"https://api.github.com/users/andy5995/orgs","repos_url":"https://api.github.com/users/andy5995/repos","events_url":"https://api.github.com/users/andy5995/events{/privacy}","received_events_url":"https://api.github.com/users/andy5995/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T06:19:43Z","updated_at":"2016-08-26T06:19:43Z","body":"What about a compromise? Show the top 10 or 20.\r\n\r\nWhen a user gets a question correct, his rank is shown (or he can use ?rank at anytime).\r\n\r\nIf 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."}}
{"actor":{"display_login":"andy5995"}}