{"action":"closed","issue":{"url":"https://api.github.com/repos/Schmoopiie/tmi.js/issues/20","labels_url":"https://api.github.com/repos/Schmoopiie/tmi.js/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Schmoopiie/tmi.js/issues/20/comments","events_url":"https://api.github.com/repos/Schmoopiie/tmi.js/issues/20/events","html_url":"https://github.com/Schmoopiie/tmi.js/issues/20","id":96467633,"number":20,"title":"Bot says [object Object] instead of a username","user":{"login":"Hay1tsme","id":1988332,"avatar_url":"https://avatars.githubusercontent.com/u/1988332?v=3","gravatar_id":"","url":"https://api.github.com/users/Hay1tsme","html_url":"https://github.com/Hay1tsme","followers_url":"https://api.github.com/users/Hay1tsme/followers","following_url":"https://api.github.com/users/Hay1tsme/following{/other_user}","gists_url":"https://api.github.com/users/Hay1tsme/gists{/gist_id}","starred_url":"https://api.github.com/users/Hay1tsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hay1tsme/subscriptions","organizations_url":"https://api.github.com/users/Hay1tsme/orgs","repos_url":"https://api.github.com/users/Hay1tsme/repos","events_url":"https://api.github.com/users/Hay1tsme/events{/privacy}","received_events_url":"https://api.github.com/users/Hay1tsme/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-22T03:34:58Z","updated_at":"2015-07-23T13:34:55Z","closed_at":"2015-07-23T13:34:55Z","body":"I think I've already wrote about this...\r\nWhen trying to make a command to timeout users who say a certain word, I get [object Object] instead of their username\r\n```javascript\r\nclient.addListener('chat', function (channel, username, message) {\r\n\t//timeout users who get salty about giveawyas\r\n\telse if (message.indexOf('reroll') === 0){\r\n\t\tclient.say(channel, \"/t  \" + username + \" 30\")\r\n\t\tclient.say(channel, \"Please no PJSalt about the giveaways \" + username + \". 30 second Timeout.\")\r\n\t}\r\n});\r\n```\r\nHere's the responce:\r\n```\r\n[11:28pm] info: [#rbrockers] <rbrockers>: reroll\r\n[11:28pm] info: [#rbrockers] Executing command: /t [object Object] 30\r\n[11:28pm] info: [#rbrockers] <rbrockbot>: Please no PJSalt about the giveaways [\r\nobject Object]. 30 second Timeout.\r\n[11:28pm] warn: Could not parse NOTICE from tmi.twitch.tv:\r\n[11:28pm] warn: @msg-id=unrecognized_cmd :tmi.twitch.tv NOTICE #rbrockers :Unrec\r\nognized command: /t\r\n```"}}