{"action":"created","issue":{"url":"https://api.github.com/repos/Guichaguri/DiscordDJ/issues/78","repository_url":"https://api.github.com/repos/Guichaguri/DiscordDJ","labels_url":"https://api.github.com/repos/Guichaguri/DiscordDJ/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/Guichaguri/DiscordDJ/issues/78/comments","events_url":"https://api.github.com/repos/Guichaguri/DiscordDJ/issues/78/events","html_url":"https://github.com/Guichaguri/DiscordDJ/issues/78","id":177543281,"number":78,"title":"Update to the official Discord API","user":{"login":"Guichaguri","id":1813032,"avatar_url":"https://avatars.githubusercontent.com/u/1813032?v=3","gravatar_id":"","url":"https://api.github.com/users/Guichaguri","html_url":"https://github.com/Guichaguri","followers_url":"https://api.github.com/users/Guichaguri/followers","following_url":"https://api.github.com/users/Guichaguri/following{/other_user}","gists_url":"https://api.github.com/users/Guichaguri/gists{/gist_id}","starred_url":"https://api.github.com/users/Guichaguri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guichaguri/subscriptions","organizations_url":"https://api.github.com/users/Guichaguri/orgs","repos_url":"https://api.github.com/users/Guichaguri/repos","events_url":"https://api.github.com/users/Guichaguri/events{/privacy}","received_events_url":"https://api.github.com/users/Guichaguri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Guichaguri/DiscordDJ/labels/enhancement","name":"enhancement","color":"3498db"},{"url":"https://api.github.com/repos/Guichaguri/DiscordDJ/labels/todo","name":"todo","color":"f1c40f"}],"state":"open","locked":false,"assignee":{"login":"Guichaguri","id":1813032,"avatar_url":"https://avatars.githubusercontent.com/u/1813032?v=3","gravatar_id":"","url":"https://api.github.com/users/Guichaguri","html_url":"https://github.com/Guichaguri","followers_url":"https://api.github.com/users/Guichaguri/followers","following_url":"https://api.github.com/users/Guichaguri/following{/other_user}","gists_url":"https://api.github.com/users/Guichaguri/gists{/gist_id}","starred_url":"https://api.github.com/users/Guichaguri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guichaguri/subscriptions","organizations_url":"https://api.github.com/users/Guichaguri/orgs","repos_url":"https://api.github.com/users/Guichaguri/repos","events_url":"https://api.github.com/users/Guichaguri/events{/privacy}","received_events_url":"https://api.github.com/users/Guichaguri/received_events","type":"User","site_admin":false},"assignees":[{"login":"Guichaguri","id":1813032,"avatar_url":"https://avatars.githubusercontent.com/u/1813032?v=3","gravatar_id":"","url":"https://api.github.com/users/Guichaguri","html_url":"https://github.com/Guichaguri","followers_url":"https://api.github.com/users/Guichaguri/followers","following_url":"https://api.github.com/users/Guichaguri/following{/other_user}","gists_url":"https://api.github.com/users/Guichaguri/gists{/gist_id}","starred_url":"https://api.github.com/users/Guichaguri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guichaguri/subscriptions","organizations_url":"https://api.github.com/users/Guichaguri/orgs","repos_url":"https://api.github.com/users/Guichaguri/repos","events_url":"https://api.github.com/users/Guichaguri/events{/privacy}","received_events_url":"https://api.github.com/users/Guichaguri/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-09-17T00:04:09Z","updated_at":"2016-09-17T00:07:38Z","closed_at":null,"body":"There's a lot of work to be made.\r\n\r\nWe can either implement our own internal Discord library or use an existing one. I used to use discordie, at the time it was the only one with good audio implementation.\r\n\r\nI'd like to analyze each library, its benefits and limitations. Currently, there is four JS libraries:\r\n* discordie\r\n* discord.js\r\n* discord.io\r\n* Eris\r\n\r\nAfter choosing a library, we have to rethink some concepts:\r\n* DJ: A voice channel controller\r\n* Playable: Something that can be transformed into an audio stream (eg: soundcloud)\r\n* Decoder: Decodes audio streams to raw PCM (depending on the library, we don't have to implement this) (eg: ffmpeg)\r\n* Encoder: Encodes audio streams to opus (depending on the library, we don't have to implement this) (eg: libopus compiled with emscripten)\r\n* Widgets/Modules/Addons: An instance that can handle events and use the API however it wants. (eg: chat track request)\r\n\r\nI have a lot of ideas for core widgets/modules/addons, but it's not the time to talk about that yet.\r\n\r\nI'd like to host DiscordDJ's official bot, but I don't have a server for it."},"comment":{"url":"https://api.github.com/repos/Guichaguri/DiscordDJ/issues/comments/247735340","html_url":"https://github.com/Guichaguri/DiscordDJ/issues/78#issuecomment-247735340","issue_url":"https://api.github.com/repos/Guichaguri/DiscordDJ/issues/78","id":247735340,"user":{"login":"Guichaguri","id":1813032,"avatar_url":"https://avatars.githubusercontent.com/u/1813032?v=3","gravatar_id":"","url":"https://api.github.com/users/Guichaguri","html_url":"https://github.com/Guichaguri","followers_url":"https://api.github.com/users/Guichaguri/followers","following_url":"https://api.github.com/users/Guichaguri/following{/other_user}","gists_url":"https://api.github.com/users/Guichaguri/gists{/gist_id}","starred_url":"https://api.github.com/users/Guichaguri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guichaguri/subscriptions","organizations_url":"https://api.github.com/users/Guichaguri/orgs","repos_url":"https://api.github.com/users/Guichaguri/repos","events_url":"https://api.github.com/users/Guichaguri/events{/privacy}","received_events_url":"https://api.github.com/users/Guichaguri/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T00:07:38Z","updated_at":"2016-09-17T00:07:38Z","body":"In a few days, I'll be working on this project again.\r\nCheck [the project](https://github.com/Guichaguri/DiscordDJ/projects/1) for news :)"}}
{"actor":{"display_login":"Guichaguri"}}