{"action":"created","issue":{"url":"https://api.github.com/repos/careless25/lichess-bot/issues/76","repository_url":"https://api.github.com/repos/careless25/lichess-bot","labels_url":"https://api.github.com/repos/careless25/lichess-bot/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/careless25/lichess-bot/issues/76/comments","events_url":"https://api.github.com/repos/careless25/lichess-bot/issues/76/events","html_url":"https://github.com/careless25/lichess-bot/issues/76","id":317775471,"number":76,"title":"Don't accept challenges automatically against a bot except when mode is casual","user":{"login":"fsmosca","id":22366935,"avatar_url":"https://avatars1.githubusercontent.com/u/22366935?v=4","gravatar_id":"","url":"https://api.github.com/users/fsmosca","html_url":"https://github.com/fsmosca","followers_url":"https://api.github.com/users/fsmosca/followers","following_url":"https://api.github.com/users/fsmosca/following{/other_user}","gists_url":"https://api.github.com/users/fsmosca/gists{/gist_id}","starred_url":"https://api.github.com/users/fsmosca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsmosca/subscriptions","organizations_url":"https://api.github.com/users/fsmosca/orgs","repos_url":"https://api.github.com/users/fsmosca/repos","events_url":"https://api.github.com/users/fsmosca/events{/privacy}","received_events_url":"https://api.github.com/users/fsmosca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-25T20:08:17Z","updated_at":"2018-04-25T22:45:48Z","closed_at":null,"author_association":"NONE","body":"Feature request:\r\nMy bot is not designed to play against a bot, it is designed to play against humans. It is weak around 1800 CCRL 40/4, and I am not improving its strength instead am trying to make it weaker.\r\n\r\nThere are bots that challenges it on rated mode which I don't really like as I can test engine vs engine matches on my pc at anytime, so I have enough engine vs engine games. Bot that challenges it in casual mode is just fine of course.\r\n\r\nAnother idea could be to develop a lichess bot protocol altogether where bot and api will communicate.\r\nExample if there is a challenge to my engine named my_engine the api will send to my_engine,\r\n\r\n`challenge type bot name eeee rating n mode rated`\r\n\r\nwhere:\r\ntype is the type of player can be [bot, human]\r\neeee is the name of the engine challenging my_engine\r\nn is the rating of the eeee engine can be [none, integer]\r\nmode can be [rated, casual]\r\n\r\nnote that,\r\n`challenge type bot name eeee rating n mode rated`\r\n\r\ncan be expanded to include tc, example\r\n\r\n`challenge type bot name eeee rating n mode rated tc b32`\r\n\r\nwhere:\r\ntc value b32 can be a code,\r\nb32 = Blitz 3+2\r\nb52 = Blitza 5+2\r\n\r\nOr other coding system design, above is just an example.\r\n\r\nmy_engine understand this as eeee is challenging me and it is of type bot and has rating of n on a rated mode. With this info I can decide whether I will accept the challenge or decline it.\r\n\r\nor if a human challenges my_engine, the api will send,\r\n\r\n`challenge type human name hhhh rating n mode rated`\r\n\r\nThe bot my_engine can reply with,\r\n`reply accept challenge type human name hhhh rating n mode rated`\r\n\r\nwhere:\r\nreply [accept, decline] would determine if the game is a go or not.\r\n\r\nIf reply value is accept, the api can proceed the match.\r\n\r\nIf value is decline, api will inform the challenger,\r\n\r\nreply decline [some message]\r\n\r\nThis is just a general idea details is totaly different thing. Perhaps adapt existing rules in fics and probably improve it further.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/careless25/lichess-bot/issues/comments/384457358","html_url":"https://github.com/careless25/lichess-bot/issues/76#issuecomment-384457358","issue_url":"https://api.github.com/repos/careless25/lichess-bot/issues/76","id":384457358,"user":{"login":"fsmosca","id":22366935,"avatar_url":"https://avatars1.githubusercontent.com/u/22366935?v=4","gravatar_id":"","url":"https://api.github.com/users/fsmosca","html_url":"https://github.com/fsmosca","followers_url":"https://api.github.com/users/fsmosca/followers","following_url":"https://api.github.com/users/fsmosca/following{/other_user}","gists_url":"https://api.github.com/users/fsmosca/gists{/gist_id}","starred_url":"https://api.github.com/users/fsmosca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsmosca/subscriptions","organizations_url":"https://api.github.com/users/fsmosca/orgs","repos_url":"https://api.github.com/users/fsmosca/repos","events_url":"https://api.github.com/users/fsmosca/events{/privacy}","received_events_url":"https://api.github.com/users/fsmosca/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T22:45:48Z","updated_at":"2018-04-25T22:45:48Z","author_association":"NONE","body":"Bot is busy currently, I will try it later and let you know the test."}}
{"actor":{"display_login":"fsmosca"}}