{"action":"created","issue":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/368","repository_url":"https://api.github.com/repos/hydrabolt/discord.js","labels_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/368/comments","events_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/368/events","html_url":"https://github.com/hydrabolt/discord.js/issues/368","id":156309180,"number":368,"title":"Bot not posting message ","user":{"login":"SloppierKitty7","id":6461147,"avatar_url":"https://avatars.githubusercontent.com/u/6461147?v=3","gravatar_id":"","url":"https://api.github.com/users/SloppierKitty7","html_url":"https://github.com/SloppierKitty7","followers_url":"https://api.github.com/users/SloppierKitty7/followers","following_url":"https://api.github.com/users/SloppierKitty7/following{/other_user}","gists_url":"https://api.github.com/users/SloppierKitty7/gists{/gist_id}","starred_url":"https://api.github.com/users/SloppierKitty7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SloppierKitty7/subscriptions","organizations_url":"https://api.github.com/users/SloppierKitty7/orgs","repos_url":"https://api.github.com/users/SloppierKitty7/repos","events_url":"https://api.github.com/users/SloppierKitty7/events{/privacy}","received_events_url":"https://api.github.com/users/SloppierKitty7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-23T16:13:58Z","updated_at":"2016-05-23T16:25:22Z","closed_at":null,"body":"```javascript\r\nmybot.on(\"message\", function(message) {\r\n    if(message.content === \"!Live\") {\r\n\t\tgetJSON(\"https://api.twitch.tv/kraken/streams/Jonathan_x64?callback=?\", function(c) {\r\n\t\t\t\t\tif (c.stream == null) {\r\n\t\t\t\t\t\t//ofline\r\n\t\t\t\t\t\tmybot.reply(message, \"she is currently not live\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//online\r\n\t\t\t\t\t\tmybot.reply(message, \"she is currently live\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}),\r\n\t}\r\n});\r\n```\r\nalso wont long anything in the console when using   console.log"},"comment":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/comments/221022980","html_url":"https://github.com/hydrabolt/discord.js/issues/368#issuecomment-221022980","issue_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/368","id":221022980,"user":{"login":"GexoXYZ","id":13241270,"avatar_url":"https://avatars.githubusercontent.com/u/13241270?v=3","gravatar_id":"","url":"https://api.github.com/users/GexoXYZ","html_url":"https://github.com/GexoXYZ","followers_url":"https://api.github.com/users/GexoXYZ/followers","following_url":"https://api.github.com/users/GexoXYZ/following{/other_user}","gists_url":"https://api.github.com/users/GexoXYZ/gists{/gist_id}","starred_url":"https://api.github.com/users/GexoXYZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GexoXYZ/subscriptions","organizations_url":"https://api.github.com/users/GexoXYZ/orgs","repos_url":"https://api.github.com/users/GexoXYZ/repos","events_url":"https://api.github.com/users/GexoXYZ/events{/privacy}","received_events_url":"https://api.github.com/users/GexoXYZ/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T16:25:22Z","updated_at":"2016-05-23T16:25:22Z","body":"```js\r\nmybot.on(\"message\", function(message) {\r\n    if (message.content === \"!Live\") {\r\n        getJSON(\"https://api.twitch.tv/kraken/streams/Jonathan_x64\", function(c) {\r\n        \tc = JSON.parse(c);\r\n            if (c.stream == null) {\r\n                mybot.reply(message, \"she is currently not live\");\r\n            } else {\r\n                mybot.reply(message, \"she is currently live\");\r\n            }\r\n        });\r\n    }\r\n});\r\n```\r\n\r\nYou can't use the callback like that, try to follow the twitch link. \r\nAlso I don't know if getJSON does this automatically for you but you need to parse it into an actual json object."}}
{"actor":{"display_login":"GexoXYZ"}}