{"action":"created","comment":{"url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments/192926757","pull_request_review_id":125795710,"id":192926757,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjkyNjc1Nw==","diff_hunk":"@@ -0,0 +1,156 @@\n+custom_require.call(%w(common common-travel))\n+  \n+class Performance\n+  \n+  include DRC\n+  include DRCT\n+  \n+  def initialize\n+    no_pause_all\n+    startTime = Time.new.to_i\n+\n+    @settings = get_settings\n+    @song_list = get_data('perform').perform_options\n+    UserVars.song = @song_list.first.first unless UserVars.song\n+    fput('release ecry') if DRStats.bard?\n+\n+    instrument = @settings.instrument\n+\n+    hand_armor = @settings.hand_armor\n+    if instrument != nil\n+      bput(\"get my #{instrument}\",\"You get\")\n+      bput(\"remove my #{hand_armor}\",\"You pull off\",\"Remove what\")\n+      bput(\"stow my #{hand_armor}\",\"You put\",\"Stow what\")\n+    end\n+    \n+    if play_song\n+      loop do \n+        runTime = Time.new.to_i - startTime\n+        break if runTime > 600\n+        break if DRSkill.getxp('Performance') > 30\n+        line = get\n+        pause 0.05 unless line\n+        case line\n+        when /You begin (.*)/, /You continue (.*)/, /You find yourself relaxing (.*)/, /You concentrate on your sense of rhythm (.*)/, /You continue (.*)/\n+          if DRSkill.getxp('Performance') > 30\n+            fput('stop play')\n+            exit\n+          end\n+        when /You finish (.*)/\n+          if DRSkill.getxp('Performance') <= 30\n+            play_song\n+          else\n+            exit\n+          end\n+        when /Perhaps you should find somewhere drier/\n+          exit\n+        end\n+      end\n+    end\n+     \n+    if instrument != nil","path":"performance.lic","position":51,"original_position":51,"commit_id":"7bb7d0d4de1caeed4ad806e06b6654450358efcc","original_commit_id":"7bb7d0d4de1caeed4ad806e06b6654450358efcc","user":{"login":"rpherbig","id":1181607,"node_id":"MDQ6VXNlcjExODE2MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1181607?v=4","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"body":"💡 You can simplify this to `if instrument`","created_at":"2018-06-05T01:54:18Z","updated_at":"2018-06-05T01:59:30Z","html_url":"https://github.com/rpherbig/dr-scripts/pull/2716#discussion_r192926757","pull_request_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments/192926757"},"html":{"href":"https://github.com/rpherbig/dr-scripts/pull/2716#discussion_r192926757"},"pull_request":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716"}}},"pull_request":{"url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716","id":192285972,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMjg1OTcy","html_url":"https://github.com/rpherbig/dr-scripts/pull/2716","diff_url":"https://github.com/rpherbig/dr-scripts/pull/2716.diff","patch_url":"https://github.com/rpherbig/dr-scripts/pull/2716.patch","issue_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2716","number":2716,"state":"open","locked":false,"title":"Adding broken out performance script","user":{"login":"dr-leustyin","id":39831286,"node_id":"MDQ6VXNlcjM5ODMxMjg2","avatar_url":"https://avatars2.githubusercontent.com/u/39831286?v=4","gravatar_id":"","url":"https://api.github.com/users/dr-leustyin","html_url":"https://github.com/dr-leustyin","followers_url":"https://api.github.com/users/dr-leustyin/followers","following_url":"https://api.github.com/users/dr-leustyin/following{/other_user}","gists_url":"https://api.github.com/users/dr-leustyin/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-leustyin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-leustyin/subscriptions","organizations_url":"https://api.github.com/users/dr-leustyin/orgs","repos_url":"https://api.github.com/users/dr-leustyin/repos","events_url":"https://api.github.com/users/dr-leustyin/events{/privacy}","received_events_url":"https://api.github.com/users/dr-leustyin/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-04T02:46:29Z","updated_at":"2018-06-05T01:59:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"983d42517cdfc82894a2887cb3402f2b30e684f6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716/commits","review_comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716/comments","review_comment_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2716/comments","statuses_url":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/7bb7d0d4de1caeed4ad806e06b6654450358efcc","head":{"label":"dr-leustyin:performance","ref":"performance","sha":"7bb7d0d4de1caeed4ad806e06b6654450358efcc","user":{"login":"dr-leustyin","id":39831286,"node_id":"MDQ6VXNlcjM5ODMxMjg2","avatar_url":"https://avatars2.githubusercontent.com/u/39831286?v=4","gravatar_id":"","url":"https://api.github.com/users/dr-leustyin","html_url":"https://github.com/dr-leustyin","followers_url":"https://api.github.com/users/dr-leustyin/followers","following_url":"https://api.github.com/users/dr-leustyin/following{/other_user}","gists_url":"https://api.github.com/users/dr-leustyin/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-leustyin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-leustyin/subscriptions","organizations_url":"https://api.github.com/users/dr-leustyin/orgs","repos_url":"https://api.github.com/users/dr-leustyin/repos","events_url":"https://api.github.com/users/dr-leustyin/events{/privacy}","received_events_url":"https://api.github.com/users/dr-leustyin/received_events","type":"User","site_admin":false},"repo":{"id":135717100,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU3MTcxMDA=","name":"dr-scripts","full_name":"dr-leustyin/dr-scripts","owner":{"login":"dr-leustyin","id":39831286,"node_id":"MDQ6VXNlcjM5ODMxMjg2","avatar_url":"https://avatars2.githubusercontent.com/u/39831286?v=4","gravatar_id":"","url":"https://api.github.com/users/dr-leustyin","html_url":"https://github.com/dr-leustyin","followers_url":"https://api.github.com/users/dr-leustyin/followers","following_url":"https://api.github.com/users/dr-leustyin/following{/other_user}","gists_url":"https://api.github.com/users/dr-leustyin/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-leustyin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-leustyin/subscriptions","organizations_url":"https://api.github.com/users/dr-leustyin/orgs","repos_url":"https://api.github.com/users/dr-leustyin/repos","events_url":"https://api.github.com/users/dr-leustyin/events{/privacy}","received_events_url":"https://api.github.com/users/dr-leustyin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dr-leustyin/dr-scripts","description":"A series of Lich (https://lichproject.org/) scripts for use in DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!","fork":true,"url":"https://api.github.com/repos/dr-leustyin/dr-scripts","forks_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/forks","keys_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/teams","hooks_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/hooks","issue_events_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/events","assignees_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/tags","blobs_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/languages","stargazers_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/stargazers","contributors_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/contributors","subscribers_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/subscribers","subscription_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/subscription","commits_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/merges","archive_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/downloads","issues_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/labels{/name}","releases_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/dr-leustyin/dr-scripts/deployments","created_at":"2018-06-01T12:50:02Z","updated_at":"2018-06-01T12:50:04Z","pushed_at":"2018-06-04T02:45:41Z","git_url":"git://github.com/dr-leustyin/dr-scripts.git","ssh_url":"git@github.com:dr-leustyin/dr-scripts.git","clone_url":"https://github.com/dr-leustyin/dr-scripts.git","svn_url":"https://github.com/dr-leustyin/dr-scripts","homepage":"","size":9059,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rpherbig:master","ref":"master","sha":"13f036997db7ca2480086a07c1c4572f7ee8df1d","user":{"login":"rpherbig","id":1181607,"node_id":"MDQ6VXNlcjExODE2MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1181607?v=4","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"repo":{"id":44390324,"node_id":"MDEwOlJlcG9zaXRvcnk0NDM5MDMyNA==","name":"dr-scripts","full_name":"rpherbig/dr-scripts","owner":{"login":"rpherbig","id":1181607,"node_id":"MDQ6VXNlcjExODE2MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1181607?v=4","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpherbig/dr-scripts","description":"A series of Lich (https://lichproject.org/) scripts for use in DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!","fork":false,"url":"https://api.github.com/repos/rpherbig/dr-scripts","forks_url":"https://api.github.com/repos/rpherbig/dr-scripts/forks","keys_url":"https://api.github.com/repos/rpherbig/dr-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpherbig/dr-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpherbig/dr-scripts/teams","hooks_url":"https://api.github.com/repos/rpherbig/dr-scripts/hooks","issue_events_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/rpherbig/dr-scripts/events","assignees_url":"https://api.github.com/repos/rpherbig/dr-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/rpherbig/dr-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/rpherbig/dr-scripts/tags","blobs_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/rpherbig/dr-scripts/languages","stargazers_url":"https://api.github.com/repos/rpherbig/dr-scripts/stargazers","contributors_url":"https://api.github.com/repos/rpherbig/dr-scripts/contributors","subscribers_url":"https://api.github.com/repos/rpherbig/dr-scripts/subscribers","subscription_url":"https://api.github.com/repos/rpherbig/dr-scripts/subscription","commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpherbig/dr-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/rpherbig/dr-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpherbig/dr-scripts/merges","archive_url":"https://api.github.com/repos/rpherbig/dr-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpherbig/dr-scripts/downloads","issues_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/rpherbig/dr-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/rpherbig/dr-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpherbig/dr-scripts/labels{/name}","releases_url":"https://api.github.com/repos/rpherbig/dr-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/rpherbig/dr-scripts/deployments","created_at":"2015-10-16T14:28:28Z","updated_at":"2018-06-05T01:26:10Z","pushed_at":"2018-06-05T01:26:06Z","git_url":"git://github.com/rpherbig/dr-scripts.git","ssh_url":"git@github.com:rpherbig/dr-scripts.git","clone_url":"https://github.com/rpherbig/dr-scripts.git","svn_url":"https://github.com/rpherbig/dr-scripts","homepage":"","size":9095,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"archived":false,"open_issues_count":319,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":80,"open_issues":319,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716"},"html":{"href":"https://github.com/rpherbig/dr-scripts/pull/2716"},"issue":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2716"},"comments":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2716/comments"},"review_comments":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716/comments"},"review_comment":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2716/commits"},"statuses":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/7bb7d0d4de1caeed4ad806e06b6654450358efcc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rpherbig"}}