{"action":"created","comment":{"url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/comments/233333603","pull_request_review_id":174720219,"id":233333603,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzMzMzYwMw==","diff_hunk":"@@ -1169,6 +1173,47 @@ internal sealed class Commands {\n \t\t\treturn responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null;\n \t\t}\n \n+\t\tprivate async Task<string> ResponseLevel(ulong steamID) {\n+\t\t\tif (steamID == 0) {\n+\t\t\t\tBot.ArchiLogger.LogNullError(nameof(steamID));\n+\t\t\t\treturn null;\n+\t\t\t}\n+\n+\t\t\tif (!Bot.IsConnectedAndLoggedOn) {\n+\t\t\t\treturn FormatBotResponse(Strings.BotNotConnected);\n+\t\t\t}\n+\n+\t\t\tif (!Bot.IsMaster(steamID)) {\n+\t\t\t\treturn null;\n+\t\t\t}\n+\n+\t\t\tuint? level = await Bot.ArchiHandler.GetLevel().ConfigureAwait(false);\n+\n+\t\t\tif (level == null) {\n+\t\t\t\treturn FormatBotResponse(Strings.WarningFailed);\n+\t\t\t}\n+\n+\t\t\treturn FormatBotResponse(string.Format(Strings.BotLevel, level));\n+\t\t}\n+\n+\t\tprivate static async Task<string> ResponseLevel(ulong steamID, string botNames) {\n+\t\t\tif ((steamID == 0) || string.IsNullOrEmpty(botNames)) {\n+\t\t\t\tASF.ArchiLogger.LogNullError(nameof(steamID) + \" || \" + nameof(botNames));\n+\t\t\t\treturn null;\n+\t\t\t}\n+\n+\t\t\tHashSet<Bot> bots = Bot.GetBots(botNames);\n+\t\t\tif ((bots == null) || (bots.Count == 0)) {\n+\t\t\t\treturn ASF.IsOwner(steamID) ? FormatStaticResponse(string.Format(Strings.BotNotFound, botNames)) : null;\n+\t\t\t}\n+\n+\t\t\tIList<string> results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseLevel(steamID)))).ConfigureAwait(false);\n+\n+\t\t\tList<string> responses = new List<string>(results.Where(result => !string.IsNullOrEmpty(result)));\n+","path":"ArchiSteamFarm/Commands.cs","position":59,"original_position":59,"commit_id":"9e5d038512d285cb0ec220323ee723e46e7cb259","original_commit_id":"9e5d038512d285cb0ec220323ee723e46e7cb259","user":{"login":"JustArchi","id":1069029,"node_id":"MDQ6VXNlcjEwNjkwMjk=","avatar_url":"https://avatars0.githubusercontent.com/u/1069029?v=4","gravatar_id":"","url":"https://api.github.com/users/JustArchi","html_url":"https://github.com/JustArchi","followers_url":"https://api.github.com/users/JustArchi/followers","following_url":"https://api.github.com/users/JustArchi/following{/other_user}","gists_url":"https://api.github.com/users/JustArchi/gists{/gist_id}","starred_url":"https://api.github.com/users/JustArchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustArchi/subscriptions","organizations_url":"https://api.github.com/users/JustArchi/orgs","repos_url":"https://api.github.com/users/JustArchi/repos","events_url":"https://api.github.com/users/JustArchi/events{/privacy}","received_events_url":"https://api.github.com/users/JustArchi/received_events","type":"User","site_admin":false},"body":"Stick to the convention and  remove blank line from here.","created_at":"2018-11-14T07:13:24Z","updated_at":"2018-11-14T07:14:16Z","html_url":"https://github.com/JustArchiNET/ArchiSteamFarm/pull/946#discussion_r233333603","pull_request_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/comments/233333603"},"html":{"href":"https://github.com/JustArchiNET/ArchiSteamFarm/pull/946#discussion_r233333603"},"pull_request":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946"}}},"pull_request":{"url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946","id":230651404,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNjUxNDA0","html_url":"https://github.com/JustArchiNET/ArchiSteamFarm/pull/946","diff_url":"https://github.com/JustArchiNET/ArchiSteamFarm/pull/946.diff","patch_url":"https://github.com/JustArchiNET/ArchiSteamFarm/pull/946.patch","issue_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/issues/946","number":946,"state":"open","locked":false,"title":"Add !level command","user":{"login":"MisakaDev","id":31675199,"node_id":"MDQ6VXNlcjMxNjc1MTk5","avatar_url":"https://avatars3.githubusercontent.com/u/31675199?v=4","gravatar_id":"","url":"https://api.github.com/users/MisakaDev","html_url":"https://github.com/MisakaDev","followers_url":"https://api.github.com/users/MisakaDev/followers","following_url":"https://api.github.com/users/MisakaDev/following{/other_user}","gists_url":"https://api.github.com/users/MisakaDev/gists{/gist_id}","starred_url":"https://api.github.com/users/MisakaDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisakaDev/subscriptions","organizations_url":"https://api.github.com/users/MisakaDev/orgs","repos_url":"https://api.github.com/users/MisakaDev/repos","events_url":"https://api.github.com/users/MisakaDev/events{/privacy}","received_events_url":"https://api.github.com/users/MisakaDev/received_events","type":"User","site_admin":false},"body":"Feature request: https://github.com/JustArchiNET/ArchiSteamFarm/issues/944\r\n\r\nAdd !level command for check bot level.\r\n\r\nCommand:\r\n\r\n> !level \\<Bot\\>\r\n> !level ASF\r\n\r\nRequest URL\r\n`http://127.0.0.1:1242/Api/Command/level%20asf`\r\n\r\nResponse body\r\n`{\r\n  \"Result\": \"<xxx> 1 level.\\r\\n<xxx> 2 level.\\r\\n<xxx> 5 level.\",\r\n  \"Message\": \"OK\",\r\n  \"Success\": true\r\n}`\r\n\r\n","created_at":"2018-11-13T22:44:47Z","updated_at":"2018-11-14T07:14:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abd1452f3daf05ff678729314aecc337bcd62291","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946/commits","review_comments_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946/comments","review_comment_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/issues/946/comments","statuses_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/statuses/9e5d038512d285cb0ec220323ee723e46e7cb259","head":{"label":"MisakaDev:master","ref":"master","sha":"9e5d038512d285cb0ec220323ee723e46e7cb259","user":{"login":"MisakaDev","id":31675199,"node_id":"MDQ6VXNlcjMxNjc1MTk5","avatar_url":"https://avatars3.githubusercontent.com/u/31675199?v=4","gravatar_id":"","url":"https://api.github.com/users/MisakaDev","html_url":"https://github.com/MisakaDev","followers_url":"https://api.github.com/users/MisakaDev/followers","following_url":"https://api.github.com/users/MisakaDev/following{/other_user}","gists_url":"https://api.github.com/users/MisakaDev/gists{/gist_id}","starred_url":"https://api.github.com/users/MisakaDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisakaDev/subscriptions","organizations_url":"https://api.github.com/users/MisakaDev/orgs","repos_url":"https://api.github.com/users/MisakaDev/repos","events_url":"https://api.github.com/users/MisakaDev/events{/privacy}","received_events_url":"https://api.github.com/users/MisakaDev/received_events","type":"User","site_admin":false},"repo":{"id":157454873,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0NTQ4NzM=","name":"ArchiSteamFarm","full_name":"MisakaDev/ArchiSteamFarm","private":false,"owner":{"login":"MisakaDev","id":31675199,"node_id":"MDQ6VXNlcjMxNjc1MTk5","avatar_url":"https://avatars3.githubusercontent.com/u/31675199?v=4","gravatar_id":"","url":"https://api.github.com/users/MisakaDev","html_url":"https://github.com/MisakaDev","followers_url":"https://api.github.com/users/MisakaDev/followers","following_url":"https://api.github.com/users/MisakaDev/following{/other_user}","gists_url":"https://api.github.com/users/MisakaDev/gists{/gist_id}","starred_url":"https://api.github.com/users/MisakaDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisakaDev/subscriptions","organizations_url":"https://api.github.com/users/MisakaDev/orgs","repos_url":"https://api.github.com/users/MisakaDev/repos","events_url":"https://api.github.com/users/MisakaDev/events{/privacy}","received_events_url":"https://api.github.com/users/MisakaDev/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MisakaDev/ArchiSteamFarm","description":"C# application that allows you to farm steam cards using multiple steam accounts simultaneously.","fork":true,"url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm","forks_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/forks","keys_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/teams","hooks_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/hooks","issue_events_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/issues/events{/number}","events_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/events","assignees_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/assignees{/user}","branches_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/branches{/branch}","tags_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/tags","blobs_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/statuses/{sha}","languages_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/languages","stargazers_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/stargazers","contributors_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/contributors","subscribers_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/subscribers","subscription_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/subscription","commits_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/contents/{+path}","compare_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/merges","archive_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/downloads","issues_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/issues{/number}","pulls_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/pulls{/number}","milestones_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/milestones{/number}","notifications_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/labels{/name}","releases_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/releases{/id}","deployments_url":"https://api.github.com/repos/MisakaDev/ArchiSteamFarm/deployments","created_at":"2018-11-13T22:20:13Z","updated_at":"2018-11-13T22:39:29Z","pushed_at":"2018-11-13T22:39:28Z","git_url":"git://github.com/MisakaDev/ArchiSteamFarm.git","ssh_url":"git@github.com:MisakaDev/ArchiSteamFarm.git","clone_url":"https://github.com/MisakaDev/ArchiSteamFarm.git","svn_url":"https://github.com/MisakaDev/ArchiSteamFarm","homepage":"","size":201764,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JustArchiNET:master","ref":"master","sha":"c7b7858a018e85dcd71512acd1f8fc05b09569be","user":{"login":"JustArchiNET","id":40950157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwOTUwMTU3","avatar_url":"https://avatars1.githubusercontent.com/u/40950157?v=4","gravatar_id":"","url":"https://api.github.com/users/JustArchiNET","html_url":"https://github.com/JustArchiNET","followers_url":"https://api.github.com/users/JustArchiNET/followers","following_url":"https://api.github.com/users/JustArchiNET/following{/other_user}","gists_url":"https://api.github.com/users/JustArchiNET/gists{/gist_id}","starred_url":"https://api.github.com/users/JustArchiNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustArchiNET/subscriptions","organizations_url":"https://api.github.com/users/JustArchiNET/orgs","repos_url":"https://api.github.com/users/JustArchiNET/repos","events_url":"https://api.github.com/users/JustArchiNET/events{/privacy}","received_events_url":"https://api.github.com/users/JustArchiNET/received_events","type":"Organization","site_admin":false},"repo":{"id":44897462,"node_id":"MDEwOlJlcG9zaXRvcnk0NDg5NzQ2Mg==","name":"ArchiSteamFarm","full_name":"JustArchiNET/ArchiSteamFarm","private":false,"owner":{"login":"JustArchiNET","id":40950157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwOTUwMTU3","avatar_url":"https://avatars1.githubusercontent.com/u/40950157?v=4","gravatar_id":"","url":"https://api.github.com/users/JustArchiNET","html_url":"https://github.com/JustArchiNET","followers_url":"https://api.github.com/users/JustArchiNET/followers","following_url":"https://api.github.com/users/JustArchiNET/following{/other_user}","gists_url":"https://api.github.com/users/JustArchiNET/gists{/gist_id}","starred_url":"https://api.github.com/users/JustArchiNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustArchiNET/subscriptions","organizations_url":"https://api.github.com/users/JustArchiNET/orgs","repos_url":"https://api.github.com/users/JustArchiNET/repos","events_url":"https://api.github.com/users/JustArchiNET/events{/privacy}","received_events_url":"https://api.github.com/users/JustArchiNET/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JustArchiNET/ArchiSteamFarm","description":"C# application that allows you to farm steam cards using multiple steam accounts simultaneously.","fork":false,"url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm","forks_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/forks","keys_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/teams","hooks_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/hooks","issue_events_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/issues/events{/number}","events_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/events","assignees_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/assignees{/user}","branches_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/branches{/branch}","tags_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/tags","blobs_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/statuses/{sha}","languages_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/languages","stargazers_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/stargazers","contributors_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/contributors","subscribers_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/subscribers","subscription_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/subscription","commits_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/contents/{+path}","compare_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/merges","archive_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/downloads","issues_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/issues{/number}","pulls_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls{/number}","milestones_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/milestones{/number}","notifications_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/labels{/name}","releases_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases{/id}","deployments_url":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/deployments","created_at":"2015-10-25T05:12:33Z","updated_at":"2018-11-13T17:22:43Z","pushed_at":"2018-11-13T22:44:48Z","git_url":"git://github.com/JustArchiNET/ArchiSteamFarm.git","ssh_url":"git@github.com:JustArchiNET/ArchiSteamFarm.git","clone_url":"https://github.com/JustArchiNET/ArchiSteamFarm.git","svn_url":"https://github.com/JustArchiNET/ArchiSteamFarm","homepage":"","size":201761,"stargazers_count":3312,"watchers_count":3312,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":435,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":435,"open_issues":3,"watchers":3312,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946"},"html":{"href":"https://github.com/JustArchiNET/ArchiSteamFarm/pull/946"},"issue":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/issues/946"},"comments":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/issues/946/comments"},"review_comments":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946/comments"},"review_comment":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/pulls/946/commits"},"statuses":{"href":"https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/statuses/9e5d038512d285cb0ec220323ee723e46e7cb259"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"JustArchi"}}