{"action":"opened","issue":{"url":"https://api.github.com/repos/scriptcie/kathinka-bot/issues/19","repository_url":"https://api.github.com/repos/scriptcie/kathinka-bot","labels_url":"https://api.github.com/repos/scriptcie/kathinka-bot/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/scriptcie/kathinka-bot/issues/19/comments","events_url":"https://api.github.com/repos/scriptcie/kathinka-bot/issues/19/events","html_url":"https://github.com/scriptcie/kathinka-bot/issues/19","id":306293208,"number":19,"title":"Delays are way too long.","user":{"login":"vientplus","id":6570597,"avatar_url":"https://avatars2.githubusercontent.com/u/6570597?v=4","gravatar_id":"","url":"https://api.github.com/users/vientplus","html_url":"https://github.com/vientplus","followers_url":"https://api.github.com/users/vientplus/followers","following_url":"https://api.github.com/users/vientplus/following{/other_user}","gists_url":"https://api.github.com/users/vientplus/gists{/gist_id}","starred_url":"https://api.github.com/users/vientplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vientplus/subscriptions","organizations_url":"https://api.github.com/users/vientplus/orgs","repos_url":"https://api.github.com/users/vientplus/repos","events_url":"https://api.github.com/users/vientplus/events{/privacy}","received_events_url":"https://api.github.com/users/vientplus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Sbte","id":454803,"avatar_url":"https://avatars3.githubusercontent.com/u/454803?v=4","gravatar_id":"","url":"https://api.github.com/users/Sbte","html_url":"https://github.com/Sbte","followers_url":"https://api.github.com/users/Sbte/followers","following_url":"https://api.github.com/users/Sbte/following{/other_user}","gists_url":"https://api.github.com/users/Sbte/gists{/gist_id}","starred_url":"https://api.github.com/users/Sbte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sbte/subscriptions","organizations_url":"https://api.github.com/users/Sbte/orgs","repos_url":"https://api.github.com/users/Sbte/repos","events_url":"https://api.github.com/users/Sbte/events{/privacy}","received_events_url":"https://api.github.com/users/Sbte/received_events","type":"User","site_admin":false},"assignees":[{"login":"Sbte","id":454803,"avatar_url":"https://avatars3.githubusercontent.com/u/454803?v=4","gravatar_id":"","url":"https://api.github.com/users/Sbte","html_url":"https://github.com/Sbte","followers_url":"https://api.github.com/users/Sbte/followers","following_url":"https://api.github.com/users/Sbte/following{/other_user}","gists_url":"https://api.github.com/users/Sbte/gists{/gist_id}","starred_url":"https://api.github.com/users/Sbte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sbte/subscriptions","organizations_url":"https://api.github.com/users/Sbte/orgs","repos_url":"https://api.github.com/users/Sbte/repos","events_url":"https://api.github.com/users/Sbte/events{/privacy}","received_events_url":"https://api.github.com/users/Sbte/received_events","type":"User","site_admin":false},{"login":"vientplus","id":6570597,"avatar_url":"https://avatars2.githubusercontent.com/u/6570597?v=4","gravatar_id":"","url":"https://api.github.com/users/vientplus","html_url":"https://github.com/vientplus","followers_url":"https://api.github.com/users/vientplus/followers","following_url":"https://api.github.com/users/vientplus/following{/other_user}","gists_url":"https://api.github.com/users/vientplus/gists{/gist_id}","starred_url":"https://api.github.com/users/vientplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vientplus/subscriptions","organizations_url":"https://api.github.com/users/vientplus/orgs","repos_url":"https://api.github.com/users/vientplus/repos","events_url":"https://api.github.com/users/vientplus/events{/privacy}","received_events_url":"https://api.github.com/users/vientplus/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-18T22:56:09Z","updated_at":"2018-03-18T22:56:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"On Telegram, Kathinka currently might need over five minutes to output all the action points.\r\n\r\nThis is due to the 'natural' delays, coded here:\r\n\r\n> https://github.com/scriptcie/kathinka-bot/blob/ed3606959fc71e46dd3bb6b4c37cf7ebe156d174/src/BotNet.js#L71\r\n> https://github.com/scriptcie/kathinka-bot/blob/606a6cfd700684b32d9dc8ad6206943015327153/src/Telegram.js#L50\r\n> https://github.com/scriptcie/kathinka-bot/blob/606a6cfd700684b32d9dc8ad6206943015327153/src/Steam.js#L70\r\n\r\nI propose we set an upper limit for the time it would take Kathinka to output a message to one second:\r\n```Math.min(1000 , message.length * (5 + 5 * Math.random()))```\r\n"}}
{"actor":{"display_login":"vientplus"}}