{"action":"created","issue":{"url":"https://api.github.com/repos/howdyai/botkit/issues/69","repository_url":"https://api.github.com/repos/howdyai/botkit","labels_url":"https://api.github.com/repos/howdyai/botkit/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/howdyai/botkit/issues/69/comments","events_url":"https://api.github.com/repos/howdyai/botkit/issues/69/events","html_url":"https://github.com/howdyai/botkit/issues/69","id":124606226,"number":69,"title":"Support outgoing message queueing (so that the bot won’t break the message sending rate limit)","user":{"login":"RafaelCosman","id":1255944,"avatar_url":"https://avatars.githubusercontent.com/u/1255944?v=3","gravatar_id":"","url":"https://api.github.com/users/RafaelCosman","html_url":"https://github.com/RafaelCosman","followers_url":"https://api.github.com/users/RafaelCosman/followers","following_url":"https://api.github.com/users/RafaelCosman/following{/other_user}","gists_url":"https://api.github.com/users/RafaelCosman/gists{/gist_id}","starred_url":"https://api.github.com/users/RafaelCosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafaelCosman/subscriptions","organizations_url":"https://api.github.com/users/RafaelCosman/orgs","repos_url":"https://api.github.com/users/RafaelCosman/repos","events_url":"https://api.github.com/users/RafaelCosman/events{/privacy}","received_events_url":"https://api.github.com/users/RafaelCosman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/howdyai/botkit/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/howdyai/botkit/labels/Slack-related","name":"Slack-related","color":"e99695"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-01-02T19:18:40Z","updated_at":"2016-09-08T10:20:06Z","closed_at":null,"body":"Proposed by @benbrown."},"comment":{"url":"https://api.github.com/repos/howdyai/botkit/issues/comments/245555637","html_url":"https://github.com/howdyai/botkit/issues/69#issuecomment-245555637","issue_url":"https://api.github.com/repos/howdyai/botkit/issues/69","id":245555637,"user":{"login":"PanMan","id":978501,"avatar_url":"https://avatars.githubusercontent.com/u/978501?v=3","gravatar_id":"","url":"https://api.github.com/users/PanMan","html_url":"https://github.com/PanMan","followers_url":"https://api.github.com/users/PanMan/followers","following_url":"https://api.github.com/users/PanMan/following{/other_user}","gists_url":"https://api.github.com/users/PanMan/gists{/gist_id}","starred_url":"https://api.github.com/users/PanMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanMan/subscriptions","organizations_url":"https://api.github.com/users/PanMan/orgs","repos_url":"https://api.github.com/users/PanMan/repos","events_url":"https://api.github.com/users/PanMan/events{/privacy}","received_events_url":"https://api.github.com/users/PanMan/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T10:20:06Z","updated_at":"2016-09-08T10:20:06Z","body":"For now I have solved this in my code like this:\r\n````\r\nvar timeQueue = async.queue(function(task, callback) {\r\n    task.func();\r\n    setTimeout(callback, task.timeOut);\r\n}, 1);\r\n````\r\nAnd to send something:\r\n````\r\n timeQueue.push({timeOut: 1100, func: function(){\r\n  bot.startPrivateConversation({user: member.id}, function(err, convo){\r\n    if (err){\r\n      console.log('ERR:',err);\r\n    }\r\n    convo.say('Sorry, PanMan needs to test something. You can disgard this, and send PanMan funny gifs as a reply')\r\n  });\r\n}}, function(err) {\r\n          // console.log('finished processing item');\r\n        });\r\n````\r\n\r\nHTH"}}
{"actor":{"display_login":"PanMan"}}