{"action":"created","issue":{"url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1716","repository_url":"https://api.github.com/repos/Mudlet/Mudlet","labels_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1716/labels{/name}","comments_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1716/comments","events_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1716/events","html_url":"https://github.com/Mudlet/Mudlet/pull/1716","id":327004620,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwOTE0MTk0","number":1716,"title":"Add Discord support","user":{"login":"vadi2","id":110988,"node_id":"MDQ6VXNlcjExMDk4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/110988?v=4","gravatar_id":"","url":"https://api.github.com/users/vadi2","html_url":"https://github.com/vadi2","followers_url":"https://api.github.com/users/vadi2/followers","following_url":"https://api.github.com/users/vadi2/following{/other_user}","gists_url":"https://api.github.com/users/vadi2/gists{/gist_id}","starred_url":"https://api.github.com/users/vadi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadi2/subscriptions","organizations_url":"https://api.github.com/users/vadi2/orgs","repos_url":"https://api.github.com/users/vadi2/repos","events_url":"https://api.github.com/users/vadi2/events{/privacy}","received_events_url":"https://api.github.com/users/vadi2/received_events","type":"User","site_admin":false},"labels":[{"id":366697194,"node_id":"MDU6TGFiZWwzNjY2OTcxOTQ=","url":"https://api.github.com/repos/Mudlet/Mudlet/labels/0%20-%20In%20progress","name":"0 - In progress","color":"88ff44","default":false}],"state":"open","locked":false,"assignee":{"login":"vadi2","id":110988,"node_id":"MDQ6VXNlcjExMDk4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/110988?v=4","gravatar_id":"","url":"https://api.github.com/users/vadi2","html_url":"https://github.com/vadi2","followers_url":"https://api.github.com/users/vadi2/followers","following_url":"https://api.github.com/users/vadi2/following{/other_user}","gists_url":"https://api.github.com/users/vadi2/gists{/gist_id}","starred_url":"https://api.github.com/users/vadi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadi2/subscriptions","organizations_url":"https://api.github.com/users/vadi2/orgs","repos_url":"https://api.github.com/users/vadi2/repos","events_url":"https://api.github.com/users/vadi2/events{/privacy}","received_events_url":"https://api.github.com/users/vadi2/received_events","type":"User","site_admin":false},"assignees":[{"login":"vadi2","id":110988,"node_id":"MDQ6VXNlcjExMDk4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/110988?v=4","gravatar_id":"","url":"https://api.github.com/users/vadi2","html_url":"https://github.com/vadi2","followers_url":"https://api.github.com/users/vadi2/followers","following_url":"https://api.github.com/users/vadi2/following{/other_user}","gists_url":"https://api.github.com/users/vadi2/gists{/gist_id}","starred_url":"https://api.github.com/users/vadi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadi2/subscriptions","organizations_url":"https://api.github.com/users/vadi2/orgs","repos_url":"https://api.github.com/users/vadi2/repos","events_url":"https://api.github.com/users/vadi2/events{/privacy}","received_events_url":"https://api.github.com/users/vadi2/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-05-28T12:08:22Z","updated_at":"2018-06-08T05:37:07Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/Mudlet/Mudlet/pulls/1716","html_url":"https://github.com/Mudlet/Mudlet/pull/1716","diff_url":"https://github.com/Mudlet/Mudlet/pull/1716.diff","patch_url":"https://github.com/Mudlet/Mudlet/pull/1716.patch"},"body":"<!-- To keep things simple, focus on just one topic in your PR and make changes just for that topic.\r\n     This'll make it a lot easier to review, and thus your PR will get in faster.\r\n     Remember can open multiple PRs at a time! -->\r\n#### Brief overview of PR changes/additions\r\nAdd Discord integration.\r\n#### Motivation for adding to Mudlet\r\nIntegrate with Discord like AAA games do, give MUDs another excellent, free channel for advertising, and, ultimately, make MUDs more modern and appealing.\r\n#### Other info (issues closed, discussion etc)\r\nWindows download: https://ci.appveyor.com/api/buildjobs/b5vlvsxdr4jsawed/artifacts/src%2Fmudlet.zip\r\n\r\nCurrently available Lua API is:\r\n\r\n```lua\r\nsetDiscordGame(game) -- can be anything. If it's Achaea/Luminari/MidMUD, the games icon will show up\r\nsetDiscordCharacterIcon(icon) -- icon can be one of the following (use exact same spelling): armour, axe, backpack, bow, coin, dagger, envelope, gem-blue, gem-green, gem-red, hammer, heart, helmet, map, shield, tome, tools, wand, wood-sword. This list is subject to refinement / change. Note that we only have slots for 150 icons total (so game icons + character icons)\r\nsetDiscordCharacter(text) -- sets the text to be the tooltip over the character icon - feel free to add level, class, race here\r\nsetDiscordArea(area) -- area the player is currently in\r\n```\r\n\r\nI'd like to add GMCP/MSDP extensions in the future so games don't have to add triggers in - for the time being, the Lua API is there to allow experimentation and will be there in the end to allow players to do their own thing.\r\n\r\nSample previews:\r\n![peek 2018-06-08 05-32](https://user-images.githubusercontent.com/110988/41137789-5a834c3a-6add-11e8-988c-3d06bc36d1ae.gif)\r\n---\r\n![peek 2018-06-08 05-33](https://user-images.githubusercontent.com/110988/41137808-7810991a-6add-11e8-83de-dc7da8d508a2.gif)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Mudlet/Mudlet/issues/comments/395653020","html_url":"https://github.com/Mudlet/Mudlet/pull/1716#issuecomment-395653020","issue_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1716","id":395653020,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTY1MzAyMA==","user":{"login":"vadi2","id":110988,"node_id":"MDQ6VXNlcjExMDk4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/110988?v=4","gravatar_id":"","url":"https://api.github.com/users/vadi2","html_url":"https://github.com/vadi2","followers_url":"https://api.github.com/users/vadi2/followers","following_url":"https://api.github.com/users/vadi2/following{/other_user}","gists_url":"https://api.github.com/users/vadi2/gists{/gist_id}","starred_url":"https://api.github.com/users/vadi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadi2/subscriptions","organizations_url":"https://api.github.com/users/vadi2/orgs","repos_url":"https://api.github.com/users/vadi2/repos","events_url":"https://api.github.com/users/vadi2/events{/privacy}","received_events_url":"https://api.github.com/users/vadi2/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T05:37:07Z","updated_at":"2018-06-08T05:37:07Z","author_association":"MEMBER","body":"Discord is ready for testing, see Windows link above. Still need to do macOS and Linux ones but I'd rather wait on @keneanung's distribution advice unless someone wants to test a build of those.\r\n\r\nIt's ready for the time being, pending feedback"}}
{"actor":{"display_login":"vadi2"}}