{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/help/issues/1333","repository_url":"https://api.github.com/repos/nodejs/help","labels_url":"https://api.github.com/repos/nodejs/help/issues/1333/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/help/issues/1333/comments","events_url":"https://api.github.com/repos/nodejs/help/issues/1333/events","html_url":"https://github.com/nodejs/help/issues/1333","id":331748200,"node_id":"MDU6SXNzdWUzMzE3NDgyMDA=","number":1333,"title":"Creating bot on steam","user":{"login":"CutteLighty","id":40216832,"node_id":"MDQ6VXNlcjQwMjE2ODMy","avatar_url":"https://avatars3.githubusercontent.com/u/40216832?v=4","gravatar_id":"","url":"https://api.github.com/users/CutteLighty","html_url":"https://github.com/CutteLighty","followers_url":"https://api.github.com/users/CutteLighty/followers","following_url":"https://api.github.com/users/CutteLighty/following{/other_user}","gists_url":"https://api.github.com/users/CutteLighty/gists{/gist_id}","starred_url":"https://api.github.com/users/CutteLighty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CutteLighty/subscriptions","organizations_url":"https://api.github.com/users/CutteLighty/orgs","repos_url":"https://api.github.com/users/CutteLighty/repos","events_url":"https://api.github.com/users/CutteLighty/events{/privacy}","received_events_url":"https://api.github.com/users/CutteLighty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-06-12T20:49:18Z","updated_at":"2018-06-13T12:10:34Z","closed_at":null,"author_association":"NONE","body":"* **Node.js Version**: 8.11.2 LTS\r\n* **OS**: Windows\r\n* **Scope (install, code, runtime, meta, other?)**:\r\n* **Module (and version) (if relevant)**:\r\n\r\n```js\r\nconst SteamUser = require ('steam-user');\r\nconst config = require('./config.json');\r\nconst client = new SteamUser();\r\n\r\nconst LogOnOptions = {\r\n    accountname: config.username,\r\n    password: config.password\r\n};\r\n\r\nclient.LogOn(LogOnOptions);\r\n\r\nclient.on('LoggedOn', () => {\r\n    console.log('succesfully logged on.');\r\n});\r\n```\r\n-->\r\nSyntaxError: C:\\Users\\Unistar\\Desktop\\Bots\\Bot 1\\config.json: Unexpected token } in JSON at position 63\r\n    at JSON.parse (<anonymous>)\r\n    at Object.Module._extensions..json (module.js:671:27)\r\n    at Module.load (module.js:565:32)\r\n    at tryModuleLoad (module.js:505:12)\r\n    at Function.Module._load (module.js:497:3)\r\n    at Module.require (module.js:596:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.<anonymous> (C:\\Users\\Unistar\\Desktop\\Bots\\Bot 1\\bot.js:2:16)\r\n    at Module._compile (module.js:652:30)\r\n    at Object.Module._extensions..js (module.js:663:10)\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/help/issues/comments/396915185","html_url":"https://github.com/nodejs/help/issues/1333#issuecomment-396915185","issue_url":"https://api.github.com/repos/nodejs/help/issues/1333","id":396915185,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjkxNTE4NQ==","user":{"login":"shellberg","id":15032634,"node_id":"MDQ6VXNlcjE1MDMyNjM0","avatar_url":"https://avatars1.githubusercontent.com/u/15032634?v=4","gravatar_id":"","url":"https://api.github.com/users/shellberg","html_url":"https://github.com/shellberg","followers_url":"https://api.github.com/users/shellberg/followers","following_url":"https://api.github.com/users/shellberg/following{/other_user}","gists_url":"https://api.github.com/users/shellberg/gists{/gist_id}","starred_url":"https://api.github.com/users/shellberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellberg/subscriptions","organizations_url":"https://api.github.com/users/shellberg/orgs","repos_url":"https://api.github.com/users/shellberg/repos","events_url":"https://api.github.com/users/shellberg/events{/privacy}","received_events_url":"https://api.github.com/users/shellberg/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T12:10:34Z","updated_at":"2018-06-13T12:10:34Z","author_association":"NONE","body":"A check on the [defined API](https://github.com/DoctorMcKay/node-steam-user) suggests the problem is the capitalisation of the method name.  Its `logOn()` not `LogOn()`."}}
{"actor":{"display_login":"shellberg"}}