{"action":"created","comment":{"url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/comments/235569803","pull_request_review_id":177466048,"id":235569803,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTU2OTgwMw==","diff_hunk":"@@ -49,6 +49,19 @@ def newgame_handler(bot, update, chat_data):\n         chat_data[\"game_obj\"] = Secret_Hitler.Game(chat_id)\n         bot.send_message(chat_id=chat_id, text=\"Created game! /joingame to join, /startgame to start\")\n \n+def cancelgame_handler(bot, update, chat_data):\n+    \"\"\"\n+    Cancel a game.\n+    \"\"\"\n+    game = chat_data.get(\"game_obj\")\n+\n+    chat_id = update.message.chat.id\n+    if game is not None:\n+        game.set_game_state(Secret_Hitler.GameStates.GAME_OVER)\n+        bot.send_message(chat_id=chat_id, text=\"Game cancelled. /newgame to start a new one.\")","path":"telegram_integration.py","position":13,"original_position":13,"commit_id":"f6dfa799264f34898f8336d06711745c669d2e91","original_commit_id":"f6dfa799264f34898f8336d06711745c669d2e91","user":{"login":"Eisfunke","id":18213227,"node_id":"MDQ6VXNlcjE4MjEzMjI3","avatar_url":"https://avatars1.githubusercontent.com/u/18213227?v=4","gravatar_id":"","url":"https://api.github.com/users/Eisfunke","html_url":"https://github.com/Eisfunke","followers_url":"https://api.github.com/users/Eisfunke/followers","following_url":"https://api.github.com/users/Eisfunke/following{/other_user}","gists_url":"https://api.github.com/users/Eisfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/Eisfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eisfunke/subscriptions","organizations_url":"https://api.github.com/users/Eisfunke/orgs","repos_url":"https://api.github.com/users/Eisfunke/repos","events_url":"https://api.github.com/users/Eisfunke/events{/privacy}","received_events_url":"https://api.github.com/users/Eisfunke/received_events","type":"User","site_admin":false},"body":"Oh wait, I confused the line this change was on, sorry.","created_at":"2018-11-21T23:58:36Z","updated_at":"2018-11-21T23:58:36Z","html_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram/pull/29#discussion_r235569803","pull_request_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/comments/235569803"},"html":{"href":"https://github.com/Eisfunke/Secret-Hitler-Telegram/pull/29#discussion_r235569803"},"pull_request":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29"}},"in_reply_to_id":235568404},"pull_request":{"url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29","id":232824555,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyODI0NTU1","html_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram/pull/29","diff_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram/pull/29.diff","patch_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram/pull/29.patch","issue_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/29","number":29,"state":"open","locked":false,"title":"Add /cancelgame command","user":{"login":"Eisfunke","id":18213227,"node_id":"MDQ6VXNlcjE4MjEzMjI3","avatar_url":"https://avatars1.githubusercontent.com/u/18213227?v=4","gravatar_id":"","url":"https://api.github.com/users/Eisfunke","html_url":"https://github.com/Eisfunke","followers_url":"https://api.github.com/users/Eisfunke/followers","following_url":"https://api.github.com/users/Eisfunke/following{/other_user}","gists_url":"https://api.github.com/users/Eisfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/Eisfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eisfunke/subscriptions","organizations_url":"https://api.github.com/users/Eisfunke/orgs","repos_url":"https://api.github.com/users/Eisfunke/repos","events_url":"https://api.github.com/users/Eisfunke/events{/privacy}","received_events_url":"https://api.github.com/users/Eisfunke/received_events","type":"User","site_admin":false},"body":"To be tested. Would fix #2 ","created_at":"2018-11-21T23:44:11Z","updated_at":"2018-11-21T23:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5406c69c7d42935e4533186621f17f48f79d6da","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29/commits","review_comments_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29/comments","review_comment_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/29/comments","statuses_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/statuses/f6dfa799264f34898f8336d06711745c669d2e91","head":{"label":"Eisfunke:feature/cancel","ref":"feature/cancel","sha":"f6dfa799264f34898f8336d06711745c669d2e91","user":{"login":"Eisfunke","id":18213227,"node_id":"MDQ6VXNlcjE4MjEzMjI3","avatar_url":"https://avatars1.githubusercontent.com/u/18213227?v=4","gravatar_id":"","url":"https://api.github.com/users/Eisfunke","html_url":"https://github.com/Eisfunke","followers_url":"https://api.github.com/users/Eisfunke/followers","following_url":"https://api.github.com/users/Eisfunke/following{/other_user}","gists_url":"https://api.github.com/users/Eisfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/Eisfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eisfunke/subscriptions","organizations_url":"https://api.github.com/users/Eisfunke/orgs","repos_url":"https://api.github.com/users/Eisfunke/repos","events_url":"https://api.github.com/users/Eisfunke/events{/privacy}","received_events_url":"https://api.github.com/users/Eisfunke/received_events","type":"User","site_admin":false},"repo":{"id":157751079,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc3NTEwNzk=","name":"Secret-Hitler-Telegram","full_name":"Eisfunke/Secret-Hitler-Telegram","private":false,"owner":{"login":"Eisfunke","id":18213227,"node_id":"MDQ6VXNlcjE4MjEzMjI3","avatar_url":"https://avatars1.githubusercontent.com/u/18213227?v=4","gravatar_id":"","url":"https://api.github.com/users/Eisfunke","html_url":"https://github.com/Eisfunke","followers_url":"https://api.github.com/users/Eisfunke/followers","following_url":"https://api.github.com/users/Eisfunke/following{/other_user}","gists_url":"https://api.github.com/users/Eisfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/Eisfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eisfunke/subscriptions","organizations_url":"https://api.github.com/users/Eisfunke/orgs","repos_url":"https://api.github.com/users/Eisfunke/repos","events_url":"https://api.github.com/users/Eisfunke/events{/privacy}","received_events_url":"https://api.github.com/users/Eisfunke/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram","description":"A Telegram Bot that allows groups of users to play Secret Hitler","fork":true,"url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram","forks_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/forks","keys_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/teams","hooks_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/hooks","issue_events_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/events{/number}","events_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/events","assignees_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/assignees{/user}","branches_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/branches{/branch}","tags_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/tags","blobs_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/refs{/sha}","trees_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/statuses/{sha}","languages_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/languages","stargazers_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/stargazers","contributors_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/contributors","subscribers_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/subscribers","subscription_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/subscription","commits_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/commits{/sha}","git_commits_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/commits{/sha}","comments_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/comments{/number}","issue_comment_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/comments{/number}","contents_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/contents/{+path}","compare_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/merges","archive_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/downloads","issues_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues{/number}","pulls_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls{/number}","milestones_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/milestones{/number}","notifications_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/labels{/name}","releases_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/releases{/id}","deployments_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/deployments","created_at":"2018-11-15T17:54:37Z","updated_at":"2018-11-21T23:33:04Z","pushed_at":"2018-11-21T23:44:12Z","git_url":"git://github.com/Eisfunke/Secret-Hitler-Telegram.git","ssh_url":"git@github.com:Eisfunke/Secret-Hitler-Telegram.git","clone_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram.git","svn_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram","homepage":null,"size":300,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"Eisfunke:master","ref":"master","sha":"97df9b72be7bfbcb85b311d15de9be42e65aaad8","user":{"login":"Eisfunke","id":18213227,"node_id":"MDQ6VXNlcjE4MjEzMjI3","avatar_url":"https://avatars1.githubusercontent.com/u/18213227?v=4","gravatar_id":"","url":"https://api.github.com/users/Eisfunke","html_url":"https://github.com/Eisfunke","followers_url":"https://api.github.com/users/Eisfunke/followers","following_url":"https://api.github.com/users/Eisfunke/following{/other_user}","gists_url":"https://api.github.com/users/Eisfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/Eisfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eisfunke/subscriptions","organizations_url":"https://api.github.com/users/Eisfunke/orgs","repos_url":"https://api.github.com/users/Eisfunke/repos","events_url":"https://api.github.com/users/Eisfunke/events{/privacy}","received_events_url":"https://api.github.com/users/Eisfunke/received_events","type":"User","site_admin":false},"repo":{"id":157751079,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc3NTEwNzk=","name":"Secret-Hitler-Telegram","full_name":"Eisfunke/Secret-Hitler-Telegram","private":false,"owner":{"login":"Eisfunke","id":18213227,"node_id":"MDQ6VXNlcjE4MjEzMjI3","avatar_url":"https://avatars1.githubusercontent.com/u/18213227?v=4","gravatar_id":"","url":"https://api.github.com/users/Eisfunke","html_url":"https://github.com/Eisfunke","followers_url":"https://api.github.com/users/Eisfunke/followers","following_url":"https://api.github.com/users/Eisfunke/following{/other_user}","gists_url":"https://api.github.com/users/Eisfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/Eisfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eisfunke/subscriptions","organizations_url":"https://api.github.com/users/Eisfunke/orgs","repos_url":"https://api.github.com/users/Eisfunke/repos","events_url":"https://api.github.com/users/Eisfunke/events{/privacy}","received_events_url":"https://api.github.com/users/Eisfunke/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram","description":"A Telegram Bot that allows groups of users to play Secret Hitler","fork":true,"url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram","forks_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/forks","keys_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/teams","hooks_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/hooks","issue_events_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/events{/number}","events_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/events","assignees_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/assignees{/user}","branches_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/branches{/branch}","tags_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/tags","blobs_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/refs{/sha}","trees_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/statuses/{sha}","languages_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/languages","stargazers_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/stargazers","contributors_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/contributors","subscribers_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/subscribers","subscription_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/subscription","commits_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/commits{/sha}","git_commits_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/git/commits{/sha}","comments_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/comments{/number}","issue_comment_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/comments{/number}","contents_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/contents/{+path}","compare_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/merges","archive_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/downloads","issues_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues{/number}","pulls_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls{/number}","milestones_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/milestones{/number}","notifications_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/labels{/name}","releases_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/releases{/id}","deployments_url":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/deployments","created_at":"2018-11-15T17:54:37Z","updated_at":"2018-11-21T23:33:04Z","pushed_at":"2018-11-21T23:44:12Z","git_url":"git://github.com/Eisfunke/Secret-Hitler-Telegram.git","ssh_url":"git@github.com:Eisfunke/Secret-Hitler-Telegram.git","clone_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram.git","svn_url":"https://github.com/Eisfunke/Secret-Hitler-Telegram","homepage":null,"size":300,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29"},"html":{"href":"https://github.com/Eisfunke/Secret-Hitler-Telegram/pull/29"},"issue":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/29"},"comments":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/Eisfunke/Secret-Hitler-Telegram/statuses/f6dfa799264f34898f8336d06711745c669d2e91"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Eisfunke"}}