{"action":"created","comment":{"url":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/comments/38981984","id":38981984,"diff_hunk":"@@ -0,0 +1,26 @@\n+﻿module.exports = (robot) ->\n+\n+    #perryIsNoob = true\n+    timeDecay = 60000\n+    hypeIncrement = 15\n+    maxHype = 100\n+    total = 0\n+    lastTime = Date.now()\n+    gettingHyped = \"༼ʘ̚ل͜ʘ̚༽ Hype level rising: \"\n+    overHyped = \"ヽヽ༼༼ຈຈل͜ل͜ຈຈ༽༽ﾉﾉ TOO MUCH HYPE TO HANDLE! ヽヽ༼༼ຈຈل͜ل͜ຈຈ༽༽ﾉﾉ\"\n+\n+    resetHype ->\n+        curTime = Date.now()\n+        total = total - ((curTime - lastTime)%timeDecay)*hypeIncrement\n+        lastTime = curTime\n+        total = 0 if total < 0\n+\n+    robot.hear /hype/i, (res) ->\n+    \n+        resetHype\n+        if hype < maxHype\n+            hype += hypeIncrement\n+            res.send \"#{gettingHyped} : Hype Level #{total}%\"","path":"scripts/hype.coffee","position":23,"original_position":23,"commit_id":"e76464392f3f4aa6167fc8662e4e4a5a7ce5f16d","original_commit_id":"e76464392f3f4aa6167fc8662e4e4a5a7ce5f16d","user":{"login":"mattvperry","id":393869,"avatar_url":"https://avatars.githubusercontent.com/u/393869?v=3","gravatar_id":"","url":"https://api.github.com/users/mattvperry","html_url":"https://github.com/mattvperry","followers_url":"https://api.github.com/users/mattvperry/followers","following_url":"https://api.github.com/users/mattvperry/following{/other_user}","gists_url":"https://api.github.com/users/mattvperry/gists{/gist_id}","starred_url":"https://api.github.com/users/mattvperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattvperry/subscriptions","organizations_url":"https://api.github.com/users/mattvperry/orgs","repos_url":"https://api.github.com/users/mattvperry/repos","events_url":"https://api.github.com/users/mattvperry/events{/privacy}","received_events_url":"https://api.github.com/users/mattvperry/received_events","type":"User","site_admin":false},"body":"This is gunna come out like \"Hype level rising: : Hype Level 15%\"","created_at":"2015-09-08T21:21:55Z","updated_at":"2015-09-08T21:21:55Z","html_url":"https://github.com/mattvperry/DonkeyBot/pull/10#discussion_r38981984","pull_request_url":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/comments/38981984"},"html":{"href":"https://github.com/mattvperry/DonkeyBot/pull/10#discussion_r38981984"},"pull_request":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10","id":44479196,"html_url":"https://github.com/mattvperry/DonkeyBot/pull/10","diff_url":"https://github.com/mattvperry/DonkeyBot/pull/10.diff","patch_url":"https://github.com/mattvperry/DonkeyBot/pull/10.patch","issue_url":"https://api.github.com/repos/mattvperry/DonkeyBot/issues/10","number":10,"state":"open","locked":false,"title":"Hype Script","user":{"login":"Arsenalrules7","id":6493877,"avatar_url":"https://avatars.githubusercontent.com/u/6493877?v=3","gravatar_id":"","url":"https://api.github.com/users/Arsenalrules7","html_url":"https://github.com/Arsenalrules7","followers_url":"https://api.github.com/users/Arsenalrules7/followers","following_url":"https://api.github.com/users/Arsenalrules7/following{/other_user}","gists_url":"https://api.github.com/users/Arsenalrules7/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsenalrules7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsenalrules7/subscriptions","organizations_url":"https://api.github.com/users/Arsenalrules7/orgs","repos_url":"https://api.github.com/users/Arsenalrules7/repos","events_url":"https://api.github.com/users/Arsenalrules7/events{/privacy}","received_events_url":"https://api.github.com/users/Arsenalrules7/received_events","type":"User","site_admin":false},"body":"DB needed some Hype. ","created_at":"2015-09-08T20:31:03Z","updated_at":"2015-09-08T21:21:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10fa075cc4ab42cae13c4f37b9d1648573f17140","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10/commits","review_comments_url":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10/comments","review_comment_url":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattvperry/DonkeyBot/issues/10/comments","statuses_url":"https://api.github.com/repos/mattvperry/DonkeyBot/statuses/e76464392f3f4aa6167fc8662e4e4a5a7ce5f16d","head":{"label":"Arsenalrules7:master","ref":"master","sha":"e76464392f3f4aa6167fc8662e4e4a5a7ce5f16d","user":{"login":"Arsenalrules7","id":6493877,"avatar_url":"https://avatars.githubusercontent.com/u/6493877?v=3","gravatar_id":"","url":"https://api.github.com/users/Arsenalrules7","html_url":"https://github.com/Arsenalrules7","followers_url":"https://api.github.com/users/Arsenalrules7/followers","following_url":"https://api.github.com/users/Arsenalrules7/following{/other_user}","gists_url":"https://api.github.com/users/Arsenalrules7/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsenalrules7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsenalrules7/subscriptions","organizations_url":"https://api.github.com/users/Arsenalrules7/orgs","repos_url":"https://api.github.com/users/Arsenalrules7/repos","events_url":"https://api.github.com/users/Arsenalrules7/events{/privacy}","received_events_url":"https://api.github.com/users/Arsenalrules7/received_events","type":"User","site_admin":false},"repo":{"id":42134315,"name":"DonkeyBot","full_name":"Arsenalrules7/DonkeyBot","owner":{"login":"Arsenalrules7","id":6493877,"avatar_url":"https://avatars.githubusercontent.com/u/6493877?v=3","gravatar_id":"","url":"https://api.github.com/users/Arsenalrules7","html_url":"https://github.com/Arsenalrules7","followers_url":"https://api.github.com/users/Arsenalrules7/followers","following_url":"https://api.github.com/users/Arsenalrules7/following{/other_user}","gists_url":"https://api.github.com/users/Arsenalrules7/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsenalrules7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsenalrules7/subscriptions","organizations_url":"https://api.github.com/users/Arsenalrules7/orgs","repos_url":"https://api.github.com/users/Arsenalrules7/repos","events_url":"https://api.github.com/users/Arsenalrules7/events{/privacy}","received_events_url":"https://api.github.com/users/Arsenalrules7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arsenalrules7/DonkeyBot","description":"A silly hubot implementation for my groupme group","fork":true,"url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot","forks_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/forks","keys_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/teams","hooks_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/hooks","issue_events_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/issues/events{/number}","events_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/events","assignees_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/assignees{/user}","branches_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/branches{/branch}","tags_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/tags","blobs_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/statuses/{sha}","languages_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/languages","stargazers_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/stargazers","contributors_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/contributors","subscribers_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/subscribers","subscription_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/subscription","commits_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/contents/{+path}","compare_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/merges","archive_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/downloads","issues_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/issues{/number}","pulls_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/pulls{/number}","milestones_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/milestones{/number}","notifications_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/labels{/name}","releases_url":"https://api.github.com/repos/Arsenalrules7/DonkeyBot/releases{/id}","created_at":"2015-09-08T19:27:10Z","updated_at":"2015-09-08T19:27:10Z","pushed_at":"2015-09-08T21:19:54Z","git_url":"git://github.com/Arsenalrules7/DonkeyBot.git","ssh_url":"git@github.com:Arsenalrules7/DonkeyBot.git","clone_url":"https://github.com/Arsenalrules7/DonkeyBot.git","svn_url":"https://github.com/Arsenalrules7/DonkeyBot","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"mattvperry:master","ref":"master","sha":"1ae8fb251cb9c6720868fdcf99313f5ae23f4708","user":{"login":"mattvperry","id":393869,"avatar_url":"https://avatars.githubusercontent.com/u/393869?v=3","gravatar_id":"","url":"https://api.github.com/users/mattvperry","html_url":"https://github.com/mattvperry","followers_url":"https://api.github.com/users/mattvperry/followers","following_url":"https://api.github.com/users/mattvperry/following{/other_user}","gists_url":"https://api.github.com/users/mattvperry/gists{/gist_id}","starred_url":"https://api.github.com/users/mattvperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattvperry/subscriptions","organizations_url":"https://api.github.com/users/mattvperry/orgs","repos_url":"https://api.github.com/users/mattvperry/repos","events_url":"https://api.github.com/users/mattvperry/events{/privacy}","received_events_url":"https://api.github.com/users/mattvperry/received_events","type":"User","site_admin":false},"repo":{"id":36765240,"name":"DonkeyBot","full_name":"mattvperry/DonkeyBot","owner":{"login":"mattvperry","id":393869,"avatar_url":"https://avatars.githubusercontent.com/u/393869?v=3","gravatar_id":"","url":"https://api.github.com/users/mattvperry","html_url":"https://github.com/mattvperry","followers_url":"https://api.github.com/users/mattvperry/followers","following_url":"https://api.github.com/users/mattvperry/following{/other_user}","gists_url":"https://api.github.com/users/mattvperry/gists{/gist_id}","starred_url":"https://api.github.com/users/mattvperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattvperry/subscriptions","organizations_url":"https://api.github.com/users/mattvperry/orgs","repos_url":"https://api.github.com/users/mattvperry/repos","events_url":"https://api.github.com/users/mattvperry/events{/privacy}","received_events_url":"https://api.github.com/users/mattvperry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattvperry/DonkeyBot","description":"A silly hubot implementation for my groupme group","fork":false,"url":"https://api.github.com/repos/mattvperry/DonkeyBot","forks_url":"https://api.github.com/repos/mattvperry/DonkeyBot/forks","keys_url":"https://api.github.com/repos/mattvperry/DonkeyBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattvperry/DonkeyBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattvperry/DonkeyBot/teams","hooks_url":"https://api.github.com/repos/mattvperry/DonkeyBot/hooks","issue_events_url":"https://api.github.com/repos/mattvperry/DonkeyBot/issues/events{/number}","events_url":"https://api.github.com/repos/mattvperry/DonkeyBot/events","assignees_url":"https://api.github.com/repos/mattvperry/DonkeyBot/assignees{/user}","branches_url":"https://api.github.com/repos/mattvperry/DonkeyBot/branches{/branch}","tags_url":"https://api.github.com/repos/mattvperry/DonkeyBot/tags","blobs_url":"https://api.github.com/repos/mattvperry/DonkeyBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattvperry/DonkeyBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattvperry/DonkeyBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattvperry/DonkeyBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattvperry/DonkeyBot/statuses/{sha}","languages_url":"https://api.github.com/repos/mattvperry/DonkeyBot/languages","stargazers_url":"https://api.github.com/repos/mattvperry/DonkeyBot/stargazers","contributors_url":"https://api.github.com/repos/mattvperry/DonkeyBot/contributors","subscribers_url":"https://api.github.com/repos/mattvperry/DonkeyBot/subscribers","subscription_url":"https://api.github.com/repos/mattvperry/DonkeyBot/subscription","commits_url":"https://api.github.com/repos/mattvperry/DonkeyBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattvperry/DonkeyBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattvperry/DonkeyBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattvperry/DonkeyBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattvperry/DonkeyBot/contents/{+path}","compare_url":"https://api.github.com/repos/mattvperry/DonkeyBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattvperry/DonkeyBot/merges","archive_url":"https://api.github.com/repos/mattvperry/DonkeyBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattvperry/DonkeyBot/downloads","issues_url":"https://api.github.com/repos/mattvperry/DonkeyBot/issues{/number}","pulls_url":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls{/number}","milestones_url":"https://api.github.com/repos/mattvperry/DonkeyBot/milestones{/number}","notifications_url":"https://api.github.com/repos/mattvperry/DonkeyBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattvperry/DonkeyBot/labels{/name}","releases_url":"https://api.github.com/repos/mattvperry/DonkeyBot/releases{/id}","created_at":"2015-06-02T22:22:09Z","updated_at":"2015-06-02T22:22:31Z","pushed_at":"2015-09-08T21:19:54Z","git_url":"git://github.com/mattvperry/DonkeyBot.git","ssh_url":"git@github.com:mattvperry/DonkeyBot.git","clone_url":"https://github.com/mattvperry/DonkeyBot.git","svn_url":"https://github.com/mattvperry/DonkeyBot","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10"},"html":{"href":"https://github.com/mattvperry/DonkeyBot/pull/10"},"issue":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/issues/10"},"comments":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/mattvperry/DonkeyBot/statuses/e76464392f3f4aa6167fc8662e4e4a5a7ce5f16d"}}}}