{"action":"created","issue":{"url":"https://api.github.com/repos/fastily/jwiki/issues/5","repository_url":"https://api.github.com/repos/fastily/jwiki","labels_url":"https://api.github.com/repos/fastily/jwiki/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/fastily/jwiki/issues/5/comments","events_url":"https://api.github.com/repos/fastily/jwiki/issues/5/events","html_url":"https://github.com/fastily/jwiki/issues/5","id":300033226,"number":5,"title":"Allow for different login name as username","user":{"login":"xbony2","id":5623501,"avatar_url":"https://avatars0.githubusercontent.com/u/5623501?v=4","gravatar_id":"","url":"https://api.github.com/users/xbony2","html_url":"https://github.com/xbony2","followers_url":"https://api.github.com/users/xbony2/followers","following_url":"https://api.github.com/users/xbony2/following{/other_user}","gists_url":"https://api.github.com/users/xbony2/gists{/gist_id}","starred_url":"https://api.github.com/users/xbony2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbony2/subscriptions","organizations_url":"https://api.github.com/users/xbony2/orgs","repos_url":"https://api.github.com/users/xbony2/repos","events_url":"https://api.github.com/users/xbony2/events{/privacy}","received_events_url":"https://api.github.com/users/xbony2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-25T15:06:28Z","updated_at":"2018-02-27T12:13:20Z","closed_at":"2018-02-27T07:53:10Z","author_association":"NONE","body":"Hello. I am a user creating a custom bot for my home wiki, the [Official FTB Wiki](https://ftb.gamepedia.com/FTB_Wiki). We are hosted on a wiki farm called gamepedia, and they have the wikis set up [in a strange way in regards to bots](https://help.gamepedia.com/Logging_in_to_third-party_tools). Basically, bots log in with a bot name that is different from their username. For this reason, I request some sort of built-in way to deal with this using jwiki. Thanks for your time ^^\r\n\r\nIn the mean time I'm using this hacky solution (in Groovy I should note):\r\n```groovy\r\nwiki = new Wiki(null, null, (HttpUrl)HttpUrl.parse(\"https://ftb.gamepedia.com/api.php\"))\r\nWAction.postAction(wiki, \"login\", false, FL.pMap(\"lgname\", args[1], \"lgpassword\", args[2], \"lgtoken\", wiki.getTokens(WQuery.TOKENS_LOGIN, \"logintoken\")))\r\nwiki.conf.uname = \"ESAEBSAD\"\r\nwiki.conf.token = wiki.getTokens(WQuery.TOKENS_CSRF, \"csrftoken\")\r\ndef wlField = Wiki.class.getDeclaredField(\"wl\")\r\nwlField.setAccessible(true)\r\nwlField.get(wiki).put(wiki.conf.hostname, wiki)\r\n\t\t\r\nwiki.conf.isBot = wiki.listUserRights(wiki.conf.uname).contains(\"bot\")\r\n```"},"comment":{"url":"https://api.github.com/repos/fastily/jwiki/issues/comments/368854374","html_url":"https://github.com/fastily/jwiki/issues/5#issuecomment-368854374","issue_url":"https://api.github.com/repos/fastily/jwiki/issues/5","id":368854374,"user":{"login":"xbony2","id":5623501,"avatar_url":"https://avatars0.githubusercontent.com/u/5623501?v=4","gravatar_id":"","url":"https://api.github.com/users/xbony2","html_url":"https://github.com/xbony2","followers_url":"https://api.github.com/users/xbony2/followers","following_url":"https://api.github.com/users/xbony2/following{/other_user}","gists_url":"https://api.github.com/users/xbony2/gists{/gist_id}","starred_url":"https://api.github.com/users/xbony2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbony2/subscriptions","organizations_url":"https://api.github.com/users/xbony2/orgs","repos_url":"https://api.github.com/users/xbony2/repos","events_url":"https://api.github.com/users/xbony2/events{/privacy}","received_events_url":"https://api.github.com/users/xbony2/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T12:13:20Z","updated_at":"2018-02-27T12:13:20Z","author_association":"NONE","body":"Huh, cool ^^ thanks"}}
{"actor":{"display_login":"xbony2"}}