{"action":"created","comment":{"url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/comments/49279142","id":49279142,"diff_hunk":"@@ -439,16 +439,34 @@ internal sealed class Bot {\n \t\t}\n \n \t\tinternal static string ResponseStatus(string botName) {\n+\t\t\tBot bot;\n+\t\t\tstring result=\"\";\n \t\t\tif (string.IsNullOrEmpty(botName)) {\n \t\t\t\treturn null;\n \t\t\t}\n \n-\t\t\tBot bot;\n \t\t\tif (!Bots.TryGetValue(botName, out bot)) {\n-\t\t\t\treturn \"Couldn't find any bot named \" + botName + \"!\";\n+\t\t\t\tresult+=\"Couldn't find any bot named \" + botName + \"!\";\n+\t\t\t\treturn result;\n+\t\t\t}\n+\t\t\t\n+\t\t\tif (bot.CardsFarmer.CurrentGamesFarming.Count > 0) {\n+\t\t\t\tresult+=\"Bot \" + bot.BotName + \" is currently farming appIDs: \" + string.Join(\", \", bot.CardsFarmer.CurrentGamesFarming) + \" and has a total of \" + bot.CardsFarmer.GamesToFarm.Count + \" games left to farm.\\n\";\n \t\t\t}\n+\t\t\tresult+=\"Currently \" + Bots.Count + \" bots are running\";\n+\t\t\treturn result;\n+\t\t}\n \n-\t\t\treturn \"Bot \" + bot.BotName + \" is currently farming appIDs: \" + string.Join(\", \", bot.CardsFarmer.CurrentGamesFarming) + \" and has a total of \" + bot.CardsFarmer.GamesToFarm.Count + \" games left to farm\";\n+\t\tinternal static string ResponseStatusAll() {\n+\t\t\tstring result = \"\";\n+\t\t\tforeach (var curbot in Bots) {\n+\t\t\t\tif (curbot.Value.CardsFarmer.CurrentGamesFarming.Count == 0)\n+\t\t\t\t\tresult += \"Bot \" + curbot.Key + \" is not farming.\\n\";\n+\t\t\t\telse\n+\t\t\t\t\tresult += \"Bot \" + curbot.Key + \" is currently farming appIDs: \" + string.Join(\", \", curbot.Value.CardsFarmer.CurrentGamesFarming) + \" and has a total of \" + curbot.Value.CardsFarmer.GamesToFarm.Count + \" games left to farm.\\n\";","path":"ArchiSteamFarm/Bot.cs","position":31,"original_position":31,"commit_id":"08a962e688611dfa2511716a38362b4fb47e910b","original_commit_id":"08a962e688611dfa2511716a38362b4fb47e910b","user":{"login":"JustArchi","id":1069029,"avatar_url":"https://avatars.githubusercontent.com/u/1069029?v=3","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":"Same here.","created_at":"2016-01-10T18:08:46Z","updated_at":"2016-01-10T18:08:46Z","html_url":"https://github.com/JustArchi/ArchiSteamFarm/pull/68#discussion_r49279142","pull_request_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/comments/49279142"},"html":{"href":"https://github.com/JustArchi/ArchiSteamFarm/pull/68#discussion_r49279142"},"pull_request":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68","id":55568584,"html_url":"https://github.com/JustArchi/ArchiSteamFarm/pull/68","diff_url":"https://github.com/JustArchi/ArchiSteamFarm/pull/68.diff","patch_url":"https://github.com/JustArchi/ArchiSteamFarm/pull/68.patch","issue_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/issues/68","number":68,"state":"open","locked":false,"title":"command !status all to bring them all","user":{"login":"Ryzhehvost","id":15903022,"avatar_url":"https://avatars.githubusercontent.com/u/15903022?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryzhehvost","html_url":"https://github.com/Ryzhehvost","followers_url":"https://api.github.com/users/Ryzhehvost/followers","following_url":"https://api.github.com/users/Ryzhehvost/following{/other_user}","gists_url":"https://api.github.com/users/Ryzhehvost/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryzhehvost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryzhehvost/subscriptions","organizations_url":"https://api.github.com/users/Ryzhehvost/orgs","repos_url":"https://api.github.com/users/Ryzhehvost/repos","events_url":"https://api.github.com/users/Ryzhehvost/events{/privacy}","received_events_url":"https://api.github.com/users/Ryzhehvost/received_events","type":"User","site_admin":false},"body":"Command `!status all` returns status of all running bots. Made it separate command instead of just `!status` because it can produce huge output on large bot farms.\r\nFor wcf I decided just `status` would be enough, because this command sent through wcf would have no much sense anyway without specified botname (who need the status of first bot?).","created_at":"2016-01-10T16:38:02Z","updated_at":"2016-01-10T18:08:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a51d244e0eb385bc9edcab37d0bda8480a0d120","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68/commits","review_comments_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68/comments","review_comment_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/issues/68/comments","statuses_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/statuses/08a962e688611dfa2511716a38362b4fb47e910b","head":{"label":"Ryzhehvost:status_all","ref":"status_all","sha":"08a962e688611dfa2511716a38362b4fb47e910b","user":{"login":"Ryzhehvost","id":15903022,"avatar_url":"https://avatars.githubusercontent.com/u/15903022?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryzhehvost","html_url":"https://github.com/Ryzhehvost","followers_url":"https://api.github.com/users/Ryzhehvost/followers","following_url":"https://api.github.com/users/Ryzhehvost/following{/other_user}","gists_url":"https://api.github.com/users/Ryzhehvost/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryzhehvost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryzhehvost/subscriptions","organizations_url":"https://api.github.com/users/Ryzhehvost/orgs","repos_url":"https://api.github.com/users/Ryzhehvost/repos","events_url":"https://api.github.com/users/Ryzhehvost/events{/privacy}","received_events_url":"https://api.github.com/users/Ryzhehvost/received_events","type":"User","site_admin":false},"repo":{"id":46400244,"name":"ArchiSteamFarm","full_name":"Ryzhehvost/ArchiSteamFarm","owner":{"login":"Ryzhehvost","id":15903022,"avatar_url":"https://avatars.githubusercontent.com/u/15903022?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryzhehvost","html_url":"https://github.com/Ryzhehvost","followers_url":"https://api.github.com/users/Ryzhehvost/followers","following_url":"https://api.github.com/users/Ryzhehvost/following{/other_user}","gists_url":"https://api.github.com/users/Ryzhehvost/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryzhehvost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryzhehvost/subscriptions","organizations_url":"https://api.github.com/users/Ryzhehvost/orgs","repos_url":"https://api.github.com/users/Ryzhehvost/repos","events_url":"https://api.github.com/users/Ryzhehvost/events{/privacy}","received_events_url":"https://api.github.com/users/Ryzhehvost/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ryzhehvost/ArchiSteamFarm","description":"","fork":true,"url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm","forks_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/forks","keys_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/teams","hooks_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/hooks","issue_events_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/issues/events{/number}","events_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/events","assignees_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/assignees{/user}","branches_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/branches{/branch}","tags_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/tags","blobs_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/statuses/{sha}","languages_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/languages","stargazers_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/stargazers","contributors_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/contributors","subscribers_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/subscribers","subscription_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/subscription","commits_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/contents/{+path}","compare_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/merges","archive_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/downloads","issues_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/issues{/number}","pulls_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/pulls{/number}","milestones_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/milestones{/number}","notifications_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/labels{/name}","releases_url":"https://api.github.com/repos/Ryzhehvost/ArchiSteamFarm/releases{/id}","created_at":"2015-11-18T06:36:29Z","updated_at":"2015-11-18T06:36:30Z","pushed_at":"2016-01-10T17:38:38Z","git_url":"git://github.com/Ryzhehvost/ArchiSteamFarm.git","ssh_url":"git@github.com:Ryzhehvost/ArchiSteamFarm.git","clone_url":"https://github.com/Ryzhehvost/ArchiSteamFarm.git","svn_url":"https://github.com/Ryzhehvost/ArchiSteamFarm","homepage":null,"size":22993,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"JustArchi:master","ref":"master","sha":"4997cc48ca0dccc5403bf308265d5a6301b29ac1","user":{"login":"JustArchi","id":1069029,"avatar_url":"https://avatars.githubusercontent.com/u/1069029?v=3","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},"repo":{"id":44897462,"name":"ArchiSteamFarm","full_name":"JustArchi/ArchiSteamFarm","owner":{"login":"JustArchi","id":1069029,"avatar_url":"https://avatars.githubusercontent.com/u/1069029?v=3","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},"private":false,"html_url":"https://github.com/JustArchi/ArchiSteamFarm","description":"","fork":false,"url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm","forks_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/forks","keys_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/teams","hooks_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/hooks","issue_events_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/issues/events{/number}","events_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/events","assignees_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/assignees{/user}","branches_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/branches{/branch}","tags_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/tags","blobs_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/statuses/{sha}","languages_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/languages","stargazers_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/stargazers","contributors_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/contributors","subscribers_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/subscribers","subscription_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/subscription","commits_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/contents/{+path}","compare_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/merges","archive_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/downloads","issues_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/issues{/number}","pulls_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls{/number}","milestones_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/milestones{/number}","notifications_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/labels{/name}","releases_url":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/releases{/id}","created_at":"2015-10-25T05:12:33Z","updated_at":"2016-01-10T15:21:48Z","pushed_at":"2016-01-10T17:38:38Z","git_url":"git://github.com/JustArchi/ArchiSteamFarm.git","ssh_url":"git@github.com:JustArchi/ArchiSteamFarm.git","clone_url":"https://github.com/JustArchi/ArchiSteamFarm.git","svn_url":"https://github.com/JustArchi/ArchiSteamFarm","homepage":null,"size":22633,"stargazers_count":41,"watchers_count":41,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68"},"html":{"href":"https://github.com/JustArchi/ArchiSteamFarm/pull/68"},"issue":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/issues/68"},"comments":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/JustArchi/ArchiSteamFarm/statuses/08a962e688611dfa2511716a38362b4fb47e910b"}}}}