{"action":"opened","issue":{"url":"https://api.github.com/repos/akura-co/podskazka-bot/issues/1","labels_url":"https://api.github.com/repos/akura-co/podskazka-bot/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/akura-co/podskazka-bot/issues/1/comments","events_url":"https://api.github.com/repos/akura-co/podskazka-bot/issues/1/events","html_url":"https://github.com/akura-co/podskazka-bot/issues/1","id":117856162,"number":1,"title":"Implement","user":{"login":"afanasy","id":677646,"avatar_url":"https://avatars.githubusercontent.com/u/677646?v=3","gravatar_id":"","url":"https://api.github.com/users/afanasy","html_url":"https://github.com/afanasy","followers_url":"https://api.github.com/users/afanasy/followers","following_url":"https://api.github.com/users/afanasy/following{/other_user}","gists_url":"https://api.github.com/users/afanasy/gists{/gist_id}","starred_url":"https://api.github.com/users/afanasy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afanasy/subscriptions","organizations_url":"https://api.github.com/users/afanasy/orgs","repos_url":"https://api.github.com/users/afanasy/repos","events_url":"https://api.github.com/users/afanasy/events{/privacy}","received_events_url":"https://api.github.com/users/afanasy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"raabbajam","id":8508709,"avatar_url":"https://avatars.githubusercontent.com/u/8508709?v=3","gravatar_id":"","url":"https://api.github.com/users/raabbajam","html_url":"https://github.com/raabbajam","followers_url":"https://api.github.com/users/raabbajam/followers","following_url":"https://api.github.com/users/raabbajam/following{/other_user}","gists_url":"https://api.github.com/users/raabbajam/gists{/gist_id}","starred_url":"https://api.github.com/users/raabbajam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raabbajam/subscriptions","organizations_url":"https://api.github.com/users/raabbajam/orgs","repos_url":"https://api.github.com/users/raabbajam/repos","events_url":"https://api.github.com/users/raabbajam/events{/privacy}","received_events_url":"https://api.github.com/users/raabbajam/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-11-19T16:51:26Z","updated_at":"2015-11-19T16:51:26Z","closed_at":null,"body":"Podskazka bot is similar to Quote bot - it's Telegram bot that simply replies to the user with a sentence from the list.\r\n1. On init - load package.json.proverb, split proverbs in 2 groups, one with ' - ' in the middle, another one with ', '. Then separate both groups in 2 groups (4 total) - left part, before ' - ' or ', ', and right part.\r\n2. On message - reply with random proverb constructed by randomly choosing left part and concatenating it with right part. ' - ' left parts can only be concatenated with ' - ' right sides, and the same for ', '"}}