{"action":"created","comment":{"url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/comments/209927820","pull_request_review_id":146033722,"id":209927820,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTkyNzgyMA==","diff_hunk":"@@ -43,18 +44,39 @@\n \tprivate boolean guessesAvailable = false;\n \tprivate boolean gameFinished = false;\n \tprivate boolean stopGame = false;\n+\tprivate boolean network = false;\n \n \tprivate boolean filterApplied = false;\n \tprivate boolean emotionShown = false;\n \tprivate String winner = \"\";\n \n \tpublic GamingTwentyQuestionsState(String stateIdentifier, StateParameters params) {\n \t\tsuper(stateIdentifier, params);\n+\t\tstartAW();\n+\t}\n+\n+\tprivate void startAW(){\n+\t\tstartAW(false);\n+\t}\n+\tprivate void startAW(boolean force){\n+\t\tif(force || aw==null){\n+\t\t\ttry{\n+\t\t\t\taw = new AkiwrapperBuilder().setFilterProfanity(true).build();\n+\t\t\t\tnetwork=true;\n+\t\t\t}catch (Exception e){\n+\t\t\t\taw = null;\n+\t\t\t\tLOGGER.warn(\"Exception Init AkiWrapper. Please check your network connection.\");\n+\t\t\t\tif(LOGGER.getLevel().isLessSpecificThan(Level.DEBUG))e.printStackTrace();\n+\t\t\t}\n+\t\t}\n \t}\n \n \t@Override\n \tpublic Output act() {\n-\n+\t\tstartAW();\n+\t\tif(!network){\n+\t\t\treturn Output.say(\"A network connection is required to play this game, should I try and look for a connection again?\");","path":"dialog/src/main/java/roboy/dialog/states/gameStates/GamingTwentyQuestionsState.java","position":59,"original_position":59,"commit_id":"236900104951ec4ae7bd00ecf18eb4307143ac37","original_commit_id":"236900104951ec4ae7bd00ecf18eb4307143ac37","user":{"login":"Aevyz","id":17731961,"node_id":"MDQ6VXNlcjE3NzMxOTYx","avatar_url":"https://avatars0.githubusercontent.com/u/17731961?v=4","gravatar_id":"","url":"https://api.github.com/users/Aevyz","html_url":"https://github.com/Aevyz","followers_url":"https://api.github.com/users/Aevyz/followers","following_url":"https://api.github.com/users/Aevyz/following{/other_user}","gists_url":"https://api.github.com/users/Aevyz/gists{/gist_id}","starred_url":"https://api.github.com/users/Aevyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aevyz/subscriptions","organizations_url":"https://api.github.com/users/Aevyz/orgs","repos_url":"https://api.github.com/users/Aevyz/repos","events_url":"https://api.github.com/users/Aevyz/events{/privacy}","received_events_url":"https://api.github.com/users/Aevyz/received_events","type":"User","site_admin":false},"body":"Change this string","created_at":"2018-08-14T12:16:15Z","updated_at":"2018-08-14T12:17:19Z","html_url":"https://github.com/Roboy/roboy_dialog/pull/75#discussion_r209927820","pull_request_url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/comments/209927820"},"html":{"href":"https://github.com/Roboy/roboy_dialog/pull/75#discussion_r209927820"},"pull_request":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75","id":208233870,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MjMzODcw","html_url":"https://github.com/Roboy/roboy_dialog/pull/75","diff_url":"https://github.com/Roboy/roboy_dialog/pull/75.diff","patch_url":"https://github.com/Roboy/roboy_dialog/pull/75.patch","issue_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues/75","number":75,"state":"open","locked":false,"title":"[20Q Game] Fix Offline Startup Crash","user":{"login":"Aevyz","id":17731961,"node_id":"MDQ6VXNlcjE3NzMxOTYx","avatar_url":"https://avatars0.githubusercontent.com/u/17731961?v=4","gravatar_id":"","url":"https://api.github.com/users/Aevyz","html_url":"https://github.com/Aevyz","followers_url":"https://api.github.com/users/Aevyz/followers","following_url":"https://api.github.com/users/Aevyz/following{/other_user}","gists_url":"https://api.github.com/users/Aevyz/gists{/gist_id}","starred_url":"https://api.github.com/users/Aevyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aevyz/subscriptions","organizations_url":"https://api.github.com/users/Aevyz/orgs","repos_url":"https://api.github.com/users/Aevyz/repos","events_url":"https://api.github.com/users/Aevyz/events{/privacy}","received_events_url":"https://api.github.com/users/Aevyz/received_events","type":"User","site_admin":false},"body":"Here is the code that I used to temp fix this. @ninalovegood please read over this code and correct it to your standards, since many of the solutions here are very \"hacky\" and probably not suitable for the `devel` branch.","created_at":"2018-08-14T10:19:23Z","updated_at":"2018-08-14T12:17:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d0e6ba7607b6816849e91a7cc2ce86fded6c3f3","assignee":{"login":"Aevyz","id":17731961,"node_id":"MDQ6VXNlcjE3NzMxOTYx","avatar_url":"https://avatars0.githubusercontent.com/u/17731961?v=4","gravatar_id":"","url":"https://api.github.com/users/Aevyz","html_url":"https://github.com/Aevyz","followers_url":"https://api.github.com/users/Aevyz/followers","following_url":"https://api.github.com/users/Aevyz/following{/other_user}","gists_url":"https://api.github.com/users/Aevyz/gists{/gist_id}","starred_url":"https://api.github.com/users/Aevyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aevyz/subscriptions","organizations_url":"https://api.github.com/users/Aevyz/orgs","repos_url":"https://api.github.com/users/Aevyz/repos","events_url":"https://api.github.com/users/Aevyz/events{/privacy}","received_events_url":"https://api.github.com/users/Aevyz/received_events","type":"User","site_admin":false},"assignees":[{"login":"Aevyz","id":17731961,"node_id":"MDQ6VXNlcjE3NzMxOTYx","avatar_url":"https://avatars0.githubusercontent.com/u/17731961?v=4","gravatar_id":"","url":"https://api.github.com/users/Aevyz","html_url":"https://github.com/Aevyz","followers_url":"https://api.github.com/users/Aevyz/followers","following_url":"https://api.github.com/users/Aevyz/following{/other_user}","gists_url":"https://api.github.com/users/Aevyz/gists{/gist_id}","starred_url":"https://api.github.com/users/Aevyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aevyz/subscriptions","organizations_url":"https://api.github.com/users/Aevyz/orgs","repos_url":"https://api.github.com/users/Aevyz/repos","events_url":"https://api.github.com/users/Aevyz/events{/privacy}","received_events_url":"https://api.github.com/users/Aevyz/received_events","type":"User","site_admin":false},{"login":"ninalovegood","id":35728617,"node_id":"MDQ6VXNlcjM1NzI4NjE3","avatar_url":"https://avatars3.githubusercontent.com/u/35728617?v=4","gravatar_id":"","url":"https://api.github.com/users/ninalovegood","html_url":"https://github.com/ninalovegood","followers_url":"https://api.github.com/users/ninalovegood/followers","following_url":"https://api.github.com/users/ninalovegood/following{/other_user}","gists_url":"https://api.github.com/users/ninalovegood/gists{/gist_id}","starred_url":"https://api.github.com/users/ninalovegood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninalovegood/subscriptions","organizations_url":"https://api.github.com/users/ninalovegood/orgs","repos_url":"https://api.github.com/users/ninalovegood/repos","events_url":"https://api.github.com/users/ninalovegood/events{/privacy}","received_events_url":"https://api.github.com/users/ninalovegood/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"missxa","id":15858520,"node_id":"MDQ6VXNlcjE1ODU4NTIw","avatar_url":"https://avatars3.githubusercontent.com/u/15858520?v=4","gravatar_id":"","url":"https://api.github.com/users/missxa","html_url":"https://github.com/missxa","followers_url":"https://api.github.com/users/missxa/followers","following_url":"https://api.github.com/users/missxa/following{/other_user}","gists_url":"https://api.github.com/users/missxa/gists{/gist_id}","starred_url":"https://api.github.com/users/missxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missxa/subscriptions","organizations_url":"https://api.github.com/users/missxa/orgs","repos_url":"https://api.github.com/users/missxa/repos","events_url":"https://api.github.com/users/missxa/events{/privacy}","received_events_url":"https://api.github.com/users/missxa/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":398712965,"node_id":"MDU6TGFiZWwzOTg3MTI5NjU=","url":"https://api.github.com/repos/Roboy/roboy_dialog/labels/bug","name":"bug","color":"ee0701","default":true},{"id":1023208536,"node_id":"MDU6TGFiZWwxMDIzMjA4NTM2","url":"https://api.github.com/repos/Roboy/roboy_dialog/labels/hackathon","name":"hackathon","color":"ffd775","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75/commits","review_comments_url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75/comments","review_comment_url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues/75/comments","statuses_url":"https://api.github.com/repos/Roboy/roboy_dialog/statuses/236900104951ec4ae7bd00ecf18eb4307143ac37","head":{"label":"Roboy:akinator-temp-offline-fix","ref":"akinator-temp-offline-fix","sha":"236900104951ec4ae7bd00ecf18eb4307143ac37","user":{"login":"Roboy","id":6785246,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3ODUyNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/6785246?v=4","gravatar_id":"","url":"https://api.github.com/users/Roboy","html_url":"https://github.com/Roboy","followers_url":"https://api.github.com/users/Roboy/followers","following_url":"https://api.github.com/users/Roboy/following{/other_user}","gists_url":"https://api.github.com/users/Roboy/gists{/gist_id}","starred_url":"https://api.github.com/users/Roboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roboy/subscriptions","organizations_url":"https://api.github.com/users/Roboy/orgs","repos_url":"https://api.github.com/users/Roboy/repos","events_url":"https://api.github.com/users/Roboy/events{/privacy}","received_events_url":"https://api.github.com/users/Roboy/received_events","type":"Organization","site_admin":false},"repo":{"id":61996222,"node_id":"MDEwOlJlcG9zaXRvcnk2MTk5NjIyMg==","name":"roboy_dialog","full_name":"Roboy/roboy_dialog","owner":{"login":"Roboy","id":6785246,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3ODUyNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/6785246?v=4","gravatar_id":"","url":"https://api.github.com/users/Roboy","html_url":"https://github.com/Roboy","followers_url":"https://api.github.com/users/Roboy/followers","following_url":"https://api.github.com/users/Roboy/following{/other_user}","gists_url":"https://api.github.com/users/Roboy/gists{/gist_id}","starred_url":"https://api.github.com/users/Roboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roboy/subscriptions","organizations_url":"https://api.github.com/users/Roboy/orgs","repos_url":"https://api.github.com/users/Roboy/repos","events_url":"https://api.github.com/users/Roboy/events{/privacy}","received_events_url":"https://api.github.com/users/Roboy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Roboy/roboy_dialog","description":null,"fork":false,"url":"https://api.github.com/repos/Roboy/roboy_dialog","forks_url":"https://api.github.com/repos/Roboy/roboy_dialog/forks","keys_url":"https://api.github.com/repos/Roboy/roboy_dialog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Roboy/roboy_dialog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Roboy/roboy_dialog/teams","hooks_url":"https://api.github.com/repos/Roboy/roboy_dialog/hooks","issue_events_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues/events{/number}","events_url":"https://api.github.com/repos/Roboy/roboy_dialog/events","assignees_url":"https://api.github.com/repos/Roboy/roboy_dialog/assignees{/user}","branches_url":"https://api.github.com/repos/Roboy/roboy_dialog/branches{/branch}","tags_url":"https://api.github.com/repos/Roboy/roboy_dialog/tags","blobs_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/refs{/sha}","trees_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Roboy/roboy_dialog/statuses/{sha}","languages_url":"https://api.github.com/repos/Roboy/roboy_dialog/languages","stargazers_url":"https://api.github.com/repos/Roboy/roboy_dialog/stargazers","contributors_url":"https://api.github.com/repos/Roboy/roboy_dialog/contributors","subscribers_url":"https://api.github.com/repos/Roboy/roboy_dialog/subscribers","subscription_url":"https://api.github.com/repos/Roboy/roboy_dialog/subscription","commits_url":"https://api.github.com/repos/Roboy/roboy_dialog/commits{/sha}","git_commits_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/commits{/sha}","comments_url":"https://api.github.com/repos/Roboy/roboy_dialog/comments{/number}","issue_comment_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues/comments{/number}","contents_url":"https://api.github.com/repos/Roboy/roboy_dialog/contents/{+path}","compare_url":"https://api.github.com/repos/Roboy/roboy_dialog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Roboy/roboy_dialog/merges","archive_url":"https://api.github.com/repos/Roboy/roboy_dialog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Roboy/roboy_dialog/downloads","issues_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues{/number}","pulls_url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls{/number}","milestones_url":"https://api.github.com/repos/Roboy/roboy_dialog/milestones{/number}","notifications_url":"https://api.github.com/repos/Roboy/roboy_dialog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Roboy/roboy_dialog/labels{/name}","releases_url":"https://api.github.com/repos/Roboy/roboy_dialog/releases{/id}","deployments_url":"https://api.github.com/repos/Roboy/roboy_dialog/deployments","created_at":"2016-06-26T15:47:58Z","updated_at":"2018-07-26T11:43:52Z","pushed_at":"2018-08-14T12:17:16Z","git_url":"git://github.com/Roboy/roboy_dialog.git","ssh_url":"git@github.com:Roboy/roboy_dialog.git","clone_url":"https://github.com/Roboy/roboy_dialog.git","svn_url":"https://github.com/Roboy/roboy_dialog","homepage":"https://roboy.org/","size":95615,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":6,"open_issues":4,"watchers":7,"default_branch":"master"}},"base":{"label":"Roboy:devel","ref":"devel","sha":"772c23faf6584c2ca49ab006d318a6a22dba50a7","user":{"login":"Roboy","id":6785246,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3ODUyNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/6785246?v=4","gravatar_id":"","url":"https://api.github.com/users/Roboy","html_url":"https://github.com/Roboy","followers_url":"https://api.github.com/users/Roboy/followers","following_url":"https://api.github.com/users/Roboy/following{/other_user}","gists_url":"https://api.github.com/users/Roboy/gists{/gist_id}","starred_url":"https://api.github.com/users/Roboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roboy/subscriptions","organizations_url":"https://api.github.com/users/Roboy/orgs","repos_url":"https://api.github.com/users/Roboy/repos","events_url":"https://api.github.com/users/Roboy/events{/privacy}","received_events_url":"https://api.github.com/users/Roboy/received_events","type":"Organization","site_admin":false},"repo":{"id":61996222,"node_id":"MDEwOlJlcG9zaXRvcnk2MTk5NjIyMg==","name":"roboy_dialog","full_name":"Roboy/roboy_dialog","owner":{"login":"Roboy","id":6785246,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3ODUyNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/6785246?v=4","gravatar_id":"","url":"https://api.github.com/users/Roboy","html_url":"https://github.com/Roboy","followers_url":"https://api.github.com/users/Roboy/followers","following_url":"https://api.github.com/users/Roboy/following{/other_user}","gists_url":"https://api.github.com/users/Roboy/gists{/gist_id}","starred_url":"https://api.github.com/users/Roboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roboy/subscriptions","organizations_url":"https://api.github.com/users/Roboy/orgs","repos_url":"https://api.github.com/users/Roboy/repos","events_url":"https://api.github.com/users/Roboy/events{/privacy}","received_events_url":"https://api.github.com/users/Roboy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Roboy/roboy_dialog","description":null,"fork":false,"url":"https://api.github.com/repos/Roboy/roboy_dialog","forks_url":"https://api.github.com/repos/Roboy/roboy_dialog/forks","keys_url":"https://api.github.com/repos/Roboy/roboy_dialog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Roboy/roboy_dialog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Roboy/roboy_dialog/teams","hooks_url":"https://api.github.com/repos/Roboy/roboy_dialog/hooks","issue_events_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues/events{/number}","events_url":"https://api.github.com/repos/Roboy/roboy_dialog/events","assignees_url":"https://api.github.com/repos/Roboy/roboy_dialog/assignees{/user}","branches_url":"https://api.github.com/repos/Roboy/roboy_dialog/branches{/branch}","tags_url":"https://api.github.com/repos/Roboy/roboy_dialog/tags","blobs_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/refs{/sha}","trees_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Roboy/roboy_dialog/statuses/{sha}","languages_url":"https://api.github.com/repos/Roboy/roboy_dialog/languages","stargazers_url":"https://api.github.com/repos/Roboy/roboy_dialog/stargazers","contributors_url":"https://api.github.com/repos/Roboy/roboy_dialog/contributors","subscribers_url":"https://api.github.com/repos/Roboy/roboy_dialog/subscribers","subscription_url":"https://api.github.com/repos/Roboy/roboy_dialog/subscription","commits_url":"https://api.github.com/repos/Roboy/roboy_dialog/commits{/sha}","git_commits_url":"https://api.github.com/repos/Roboy/roboy_dialog/git/commits{/sha}","comments_url":"https://api.github.com/repos/Roboy/roboy_dialog/comments{/number}","issue_comment_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues/comments{/number}","contents_url":"https://api.github.com/repos/Roboy/roboy_dialog/contents/{+path}","compare_url":"https://api.github.com/repos/Roboy/roboy_dialog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Roboy/roboy_dialog/merges","archive_url":"https://api.github.com/repos/Roboy/roboy_dialog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Roboy/roboy_dialog/downloads","issues_url":"https://api.github.com/repos/Roboy/roboy_dialog/issues{/number}","pulls_url":"https://api.github.com/repos/Roboy/roboy_dialog/pulls{/number}","milestones_url":"https://api.github.com/repos/Roboy/roboy_dialog/milestones{/number}","notifications_url":"https://api.github.com/repos/Roboy/roboy_dialog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Roboy/roboy_dialog/labels{/name}","releases_url":"https://api.github.com/repos/Roboy/roboy_dialog/releases{/id}","deployments_url":"https://api.github.com/repos/Roboy/roboy_dialog/deployments","created_at":"2016-06-26T15:47:58Z","updated_at":"2018-07-26T11:43:52Z","pushed_at":"2018-08-14T12:17:16Z","git_url":"git://github.com/Roboy/roboy_dialog.git","ssh_url":"git@github.com:Roboy/roboy_dialog.git","clone_url":"https://github.com/Roboy/roboy_dialog.git","svn_url":"https://github.com/Roboy/roboy_dialog","homepage":"https://roboy.org/","size":95615,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":6,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75"},"html":{"href":"https://github.com/Roboy/roboy_dialog/pull/75"},"issue":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/issues/75"},"comments":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/Roboy/roboy_dialog/statuses/236900104951ec4ae7bd00ecf18eb4307143ac37"}},"author_association":"NONE"}}
{"actor":{"display_login":"Aevyz"}}