{"action":"created","issue":{"url":"https://api.github.com/repos/cool7su/Broken_Clashbot/issues/41","labels_url":"https://api.github.com/repos/cool7su/Broken_Clashbot/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/cool7su/Broken_Clashbot/issues/41/comments","events_url":"https://api.github.com/repos/cool7su/Broken_Clashbot/issues/41/events","html_url":"https://github.com/cool7su/Broken_Clashbot/issues/41","id":69961715,"number":41,"title":"donation error","user":{"login":"ecolbinado","id":11872757,"avatar_url":"https://avatars.githubusercontent.com/u/11872757?v=3","gravatar_id":"","url":"https://api.github.com/users/ecolbinado","html_url":"https://github.com/ecolbinado","followers_url":"https://api.github.com/users/ecolbinado/followers","following_url":"https://api.github.com/users/ecolbinado/following{/other_user}","gists_url":"https://api.github.com/users/ecolbinado/gists{/gist_id}","starred_url":"https://api.github.com/users/ecolbinado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecolbinado/subscriptions","organizations_url":"https://api.github.com/users/ecolbinado/orgs","repos_url":"https://api.github.com/users/ecolbinado/repos","events_url":"https://api.github.com/users/ecolbinado/events{/privacy}","received_events_url":"https://api.github.com/users/ecolbinado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-21T21:52:12Z","updated_at":"2015-04-25T19:16:34Z","closed_at":null,"body":"hi guys.. are you having issues on donation with this bot?"},"comment":{"url":"https://api.github.com/repos/cool7su/Broken_Clashbot/issues/comments/96264501","html_url":"https://github.com/cool7su/Broken_Clashbot/issues/41#issuecomment-96264501","issue_url":"https://api.github.com/repos/cool7su/Broken_Clashbot/issues/41","id":96264501,"user":{"login":"zuloloxi","id":10588750,"avatar_url":"https://avatars.githubusercontent.com/u/10588750?v=3","gravatar_id":"","url":"https://api.github.com/users/zuloloxi","html_url":"https://github.com/zuloloxi","followers_url":"https://api.github.com/users/zuloloxi/followers","following_url":"https://api.github.com/users/zuloloxi/following{/other_user}","gists_url":"https://api.github.com/users/zuloloxi/gists{/gist_id}","starred_url":"https://api.github.com/users/zuloloxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuloloxi/subscriptions","organizations_url":"https://api.github.com/users/zuloloxi/orgs","repos_url":"https://api.github.com/users/zuloloxi/repos","events_url":"https://api.github.com/users/zuloloxi/events{/privacy}","received_events_url":"https://api.github.com/users/zuloloxi/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T19:16:34Z","updated_at":"2015-04-25T19:16:34Z","body":"I think the problem is in this code in DonateCC.au3 file:\r\n```\r\n\tIf _ColorCheck(_GetPixelColor($x, $y), Hex(0x507C00, 6), 10) Or _ColorCheck(_GetPixelColor($x, $y - 5), Hex(0x507C00, 6), 10) Then\r\n\t\tSetLog(\"Donating \" & $number & \" \" & $Troop, $COLOR_BLUE)\r\n\t\tIf _Sleep(500) Then Return\r\n\t\t; TODO, check available  trrop before donate the amount of number\r\n\t\tClick($x, $y, $number, 50)\r\n\t\t$Donate = True\r\n\t\tupdate_armycamp($Troop, $number)\r\n\tElse\r\n\t\tSetLog(\"No \" & $Troop & \" available for donation.\", $COLOR_ORANGE)\r\n\t\tReturn\r\n\tEndIf\r\n\tIf _Sleep(500) Then Return\r\nEndFunc   ;==>DonateTroops\r\n\r\nFunc update_armycamp($Troop, $number)\r\n       Switch $Troop\r\n               Case \"Archer\"\r\n                       $CurArch += $number\r\n               Case \"Barbarian\"\r\n                       $CurBarb += $number\r\n               Case \"Goblin\"\r\n                       $CurGoblin += $number\r\n               Case \"Giant\"\r\n                       $CurGiant += $number\r\n               Case \"WB\"\r\n                       $CurWB += $number\r\n;              Case \"Balloon\"\r\n;             Case \"Hog\"\r\n;              Case \"Dragon\"\r\n;              Case \"Pekka\"\r\n;              Case \"Minion\"\r\n;              Case \"Valkyrie\"\r\n;              Case \"Witch\"\r\n;              Case \"Healer\"\r\n;              Case \"Golem\"\r\n;              Case \"Lava\"\r\n       EndSwitch\r\nEndFunc\r\n```"}}