{"action":"created","comment":{"url":"https://api.github.com/repos/yagop/telegram-bot/pulls/comments/28646594","id":28646594,"diff_hunk":"@@ -0,0 +1,67 @@\n+do\n+local URL = \"http://danbooru.donmai.us\"\n+local URL_NEW = \"/posts.json\"\n+local URL_POP = \"/explore/posts/popular.json\"\n+\n+local scale_day = \"?scale=day\"\n+local scale_week = \"?scale=week\"\n+local scale_month = \"?scale=month\"\n+\n+function get_post(url)\n+  local b, c, h = http.request(url)\n+  local posts = json:decode(b)\n+\n+  -- bad random - bad magic...\n+  math.randomseed( os.time() )","path":"plugins/dan.lua","position":15,"original_position":15,"commit_id":"abe480058b5448b9b979602b66382b0659a8b1d7","original_commit_id":"abe480058b5448b9b979602b66382b0659a8b1d7","user":{"login":"yagop","id":5002453,"avatar_url":"https://avatars.githubusercontent.com/u/5002453?v=3","gravatar_id":"","url":"https://api.github.com/users/yagop","html_url":"https://github.com/yagop","followers_url":"https://api.github.com/users/yagop/followers","following_url":"https://api.github.com/users/yagop/following{/other_user}","gists_url":"https://api.github.com/users/yagop/gists{/gist_id}","starred_url":"https://api.github.com/users/yagop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yagop/subscriptions","organizations_url":"https://api.github.com/users/yagop/orgs","repos_url":"https://api.github.com/users/yagop/repos","events_url":"https://api.github.com/users/yagop/events{/privacy}","received_events_url":"https://api.github.com/users/yagop/received_events","type":"User","site_admin":false},"body":"The `randomseed` is started on https://github.com/yagop/telegram-bot/blob/master/bot/bot.lua#L235\r\nI can merge and remove yours.","created_at":"2015-04-18T19:16:44Z","updated_at":"2015-04-18T19:16:44Z","html_url":"https://github.com/yagop/telegram-bot/pull/112#discussion_r28646594","pull_request_url":"https://api.github.com/repos/yagop/telegram-bot/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/yagop/telegram-bot/pulls/comments/28646594"},"html":{"href":"https://github.com/yagop/telegram-bot/pull/112#discussion_r28646594"},"pull_request":{"href":"https://api.github.com/repos/yagop/telegram-bot/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/yagop/telegram-bot/pulls/112","id":33594607,"html_url":"https://github.com/yagop/telegram-bot/pull/112","diff_url":"https://github.com/yagop/telegram-bot/pull/112.diff","patch_url":"https://github.com/yagop/telegram-bot/pull/112.patch","issue_url":"https://api.github.com/repos/yagop/telegram-bot/issues/112","number":112,"state":"open","locked":false,"title":"Danbooru plg","user":{"login":"AckiyBolt","id":2872328,"avatar_url":"https://avatars.githubusercontent.com/u/2872328?v=3","gravatar_id":"","url":"https://api.github.com/users/AckiyBolt","html_url":"https://github.com/AckiyBolt","followers_url":"https://api.github.com/users/AckiyBolt/followers","following_url":"https://api.github.com/users/AckiyBolt/following{/other_user}","gists_url":"https://api.github.com/users/AckiyBolt/gists{/gist_id}","starred_url":"https://api.github.com/users/AckiyBolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AckiyBolt/subscriptions","organizations_url":"https://api.github.com/users/AckiyBolt/orgs","repos_url":"https://api.github.com/users/AckiyBolt/repos","events_url":"https://api.github.com/users/AckiyBolt/events{/privacy}","received_events_url":"https://api.github.com/users/AckiyBolt/received_events","type":"User","site_admin":false},"body":"Gets a random fresh or popular image from Danbooru\r\nBecause there are mostly hentai content - 18+ ","created_at":"2015-04-18T02:03:06Z","updated_at":"2015-04-18T19:16:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25f4ceb3a594a2a6f5df33df3347b92ae388790d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yagop/telegram-bot/pulls/112/commits","review_comments_url":"https://api.github.com/repos/yagop/telegram-bot/pulls/112/comments","review_comment_url":"https://api.github.com/repos/yagop/telegram-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yagop/telegram-bot/issues/112/comments","statuses_url":"https://api.github.com/repos/yagop/telegram-bot/statuses/abe480058b5448b9b979602b66382b0659a8b1d7","head":{"label":"AckiyBolt:up","ref":"up","sha":"abe480058b5448b9b979602b66382b0659a8b1d7","user":{"login":"AckiyBolt","id":2872328,"avatar_url":"https://avatars.githubusercontent.com/u/2872328?v=3","gravatar_id":"","url":"https://api.github.com/users/AckiyBolt","html_url":"https://github.com/AckiyBolt","followers_url":"https://api.github.com/users/AckiyBolt/followers","following_url":"https://api.github.com/users/AckiyBolt/following{/other_user}","gists_url":"https://api.github.com/users/AckiyBolt/gists{/gist_id}","starred_url":"https://api.github.com/users/AckiyBolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AckiyBolt/subscriptions","organizations_url":"https://api.github.com/users/AckiyBolt/orgs","repos_url":"https://api.github.com/users/AckiyBolt/repos","events_url":"https://api.github.com/users/AckiyBolt/events{/privacy}","received_events_url":"https://api.github.com/users/AckiyBolt/received_events","type":"User","site_admin":false},"repo":{"id":32895096,"name":"telegram-bot","full_name":"AckiyBolt/telegram-bot","owner":{"login":"AckiyBolt","id":2872328,"avatar_url":"https://avatars.githubusercontent.com/u/2872328?v=3","gravatar_id":"","url":"https://api.github.com/users/AckiyBolt","html_url":"https://github.com/AckiyBolt","followers_url":"https://api.github.com/users/AckiyBolt/followers","following_url":"https://api.github.com/users/AckiyBolt/following{/other_user}","gists_url":"https://api.github.com/users/AckiyBolt/gists{/gist_id}","starred_url":"https://api.github.com/users/AckiyBolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AckiyBolt/subscriptions","organizations_url":"https://api.github.com/users/AckiyBolt/orgs","repos_url":"https://api.github.com/users/AckiyBolt/repos","events_url":"https://api.github.com/users/AckiyBolt/events{/privacy}","received_events_url":"https://api.github.com/users/AckiyBolt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AckiyBolt/telegram-bot","description":"A Telegram Bot based on plugins","fork":true,"url":"https://api.github.com/repos/AckiyBolt/telegram-bot","forks_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/forks","keys_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/teams","hooks_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/hooks","issue_events_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/issues/events{/number}","events_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/events","assignees_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/assignees{/user}","branches_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/branches{/branch}","tags_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/tags","blobs_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/languages","stargazers_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/stargazers","contributors_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/contributors","subscribers_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/subscribers","subscription_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/subscription","commits_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/contents/{+path}","compare_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/merges","archive_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/downloads","issues_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/issues{/number}","pulls_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/labels{/name}","releases_url":"https://api.github.com/repos/AckiyBolt/telegram-bot/releases{/id}","created_at":"2015-03-25T22:39:32Z","updated_at":"2015-04-18T02:45:50Z","pushed_at":"2015-04-18T02:46:37Z","git_url":"git://github.com/AckiyBolt/telegram-bot.git","ssh_url":"git@github.com:AckiyBolt/telegram-bot.git","clone_url":"https://github.com/AckiyBolt/telegram-bot.git","svn_url":"https://github.com/AckiyBolt/telegram-bot","homepage":"","size":511,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yagop:master","ref":"master","sha":"f3825eac845513e7862800585e6f0a396859e5b3","user":{"login":"yagop","id":5002453,"avatar_url":"https://avatars.githubusercontent.com/u/5002453?v=3","gravatar_id":"","url":"https://api.github.com/users/yagop","html_url":"https://github.com/yagop","followers_url":"https://api.github.com/users/yagop/followers","following_url":"https://api.github.com/users/yagop/following{/other_user}","gists_url":"https://api.github.com/users/yagop/gists{/gist_id}","starred_url":"https://api.github.com/users/yagop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yagop/subscriptions","organizations_url":"https://api.github.com/users/yagop/orgs","repos_url":"https://api.github.com/users/yagop/repos","events_url":"https://api.github.com/users/yagop/events{/privacy}","received_events_url":"https://api.github.com/users/yagop/received_events","type":"User","site_admin":false},"repo":{"id":21347647,"name":"telegram-bot","full_name":"yagop/telegram-bot","owner":{"login":"yagop","id":5002453,"avatar_url":"https://avatars.githubusercontent.com/u/5002453?v=3","gravatar_id":"","url":"https://api.github.com/users/yagop","html_url":"https://github.com/yagop","followers_url":"https://api.github.com/users/yagop/followers","following_url":"https://api.github.com/users/yagop/following{/other_user}","gists_url":"https://api.github.com/users/yagop/gists{/gist_id}","starred_url":"https://api.github.com/users/yagop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yagop/subscriptions","organizations_url":"https://api.github.com/users/yagop/orgs","repos_url":"https://api.github.com/users/yagop/repos","events_url":"https://api.github.com/users/yagop/events{/privacy}","received_events_url":"https://api.github.com/users/yagop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yagop/telegram-bot","description":"A Telegram Bot based on plugins","fork":false,"url":"https://api.github.com/repos/yagop/telegram-bot","forks_url":"https://api.github.com/repos/yagop/telegram-bot/forks","keys_url":"https://api.github.com/repos/yagop/telegram-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yagop/telegram-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yagop/telegram-bot/teams","hooks_url":"https://api.github.com/repos/yagop/telegram-bot/hooks","issue_events_url":"https://api.github.com/repos/yagop/telegram-bot/issues/events{/number}","events_url":"https://api.github.com/repos/yagop/telegram-bot/events","assignees_url":"https://api.github.com/repos/yagop/telegram-bot/assignees{/user}","branches_url":"https://api.github.com/repos/yagop/telegram-bot/branches{/branch}","tags_url":"https://api.github.com/repos/yagop/telegram-bot/tags","blobs_url":"https://api.github.com/repos/yagop/telegram-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yagop/telegram-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yagop/telegram-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/yagop/telegram-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yagop/telegram-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/yagop/telegram-bot/languages","stargazers_url":"https://api.github.com/repos/yagop/telegram-bot/stargazers","contributors_url":"https://api.github.com/repos/yagop/telegram-bot/contributors","subscribers_url":"https://api.github.com/repos/yagop/telegram-bot/subscribers","subscription_url":"https://api.github.com/repos/yagop/telegram-bot/subscription","commits_url":"https://api.github.com/repos/yagop/telegram-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/yagop/telegram-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/yagop/telegram-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/yagop/telegram-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/yagop/telegram-bot/contents/{+path}","compare_url":"https://api.github.com/repos/yagop/telegram-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yagop/telegram-bot/merges","archive_url":"https://api.github.com/repos/yagop/telegram-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yagop/telegram-bot/downloads","issues_url":"https://api.github.com/repos/yagop/telegram-bot/issues{/number}","pulls_url":"https://api.github.com/repos/yagop/telegram-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/yagop/telegram-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/yagop/telegram-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yagop/telegram-bot/labels{/name}","releases_url":"https://api.github.com/repos/yagop/telegram-bot/releases{/id}","created_at":"2014-06-30T10:34:41Z","updated_at":"2015-04-18T19:00:29Z","pushed_at":"2015-04-18T19:00:33Z","git_url":"git://github.com/yagop/telegram-bot.git","ssh_url":"git@github.com:yagop/telegram-bot.git","clone_url":"https://github.com/yagop/telegram-bot.git","svn_url":"https://github.com/yagop/telegram-bot","homepage":"","size":1988,"stargazers_count":168,"watchers_count":168,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":110,"mirror_url":null,"open_issues_count":21,"forks":110,"open_issues":21,"watchers":168,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yagop/telegram-bot/pulls/112"},"html":{"href":"https://github.com/yagop/telegram-bot/pull/112"},"issue":{"href":"https://api.github.com/repos/yagop/telegram-bot/issues/112"},"comments":{"href":"https://api.github.com/repos/yagop/telegram-bot/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/yagop/telegram-bot/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/yagop/telegram-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yagop/telegram-bot/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/yagop/telegram-bot/statuses/abe480058b5448b9b979602b66382b0659a8b1d7"}}}}