{"action":"closed","issue":{"url":"https://api.github.com/repos/Gyoo/Discord-Streambot/issues/12","repository_url":"https://api.github.com/repos/Gyoo/Discord-Streambot","labels_url":"https://api.github.com/repos/Gyoo/Discord-Streambot/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Gyoo/Discord-Streambot/issues/12/comments","events_url":"https://api.github.com/repos/Gyoo/Discord-Streambot/issues/12/events","html_url":"https://github.com/Gyoo/Discord-Streambot/issues/12","id":131064279,"number":12,"title":"Anti-rate limiting features","user":{"login":"Gyoo","id":3592205,"avatar_url":"https://avatars.githubusercontent.com/u/3592205?v=3","gravatar_id":"","url":"https://api.github.com/users/Gyoo","html_url":"https://github.com/Gyoo","followers_url":"https://api.github.com/users/Gyoo/followers","following_url":"https://api.github.com/users/Gyoo/following{/other_user}","gists_url":"https://api.github.com/users/Gyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Gyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gyoo/subscriptions","organizations_url":"https://api.github.com/users/Gyoo/orgs","repos_url":"https://api.github.com/users/Gyoo/repos","events_url":"https://api.github.com/users/Gyoo/events{/privacy}","received_events_url":"https://api.github.com/users/Gyoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-03T15:49:32Z","updated_at":"2016-02-06T13:44:18Z","closed_at":"2016-02-06T13:44:18Z","body":"Currently not an issue since the message flow is pretty small, but it may become problematic as the bot grows in popularity.\r\n\r\nRight now, every single message is sent as soon as created. That means, if the bot sends too many messages at once, it becomes rate limited for a few seconds, and the messages being rate limited are ignored.\r\n\r\nThe solution would be to store every single message in a queue, that a separate thread will treat gradually to send the messages. This will ensure the bot never gets rate limited.\r\n\r\nPossible issue : concurrent access to the queue."}}