{"action":"created","issue":{"url":"https://api.github.com/repos/twitch-irc/twitch-irc/issues/74","labels_url":"https://api.github.com/repos/twitch-irc/twitch-irc/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/twitch-irc/twitch-irc/issues/74/comments","events_url":"https://api.github.com/repos/twitch-irc/twitch-irc/issues/74/events","html_url":"https://github.com/twitch-irc/twitch-irc/issues/74","id":65721217,"number":74,"title":"client.say sending twice","user":{"login":"DigitalKris","id":11754194,"avatar_url":"https://avatars.githubusercontent.com/u/11754194?v=3","gravatar_id":"","url":"https://api.github.com/users/DigitalKris","html_url":"https://github.com/DigitalKris","followers_url":"https://api.github.com/users/DigitalKris/followers","following_url":"https://api.github.com/users/DigitalKris/following{/other_user}","gists_url":"https://api.github.com/users/DigitalKris/gists{/gist_id}","starred_url":"https://api.github.com/users/DigitalKris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigitalKris/subscriptions","organizations_url":"https://api.github.com/users/DigitalKris/orgs","repos_url":"https://api.github.com/users/DigitalKris/repos","events_url":"https://api.github.com/users/DigitalKris/events{/privacy}","received_events_url":"https://api.github.com/users/DigitalKris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T16:13:38Z","updated_at":"2015-04-02T00:24:28Z","closed_at":null,"body":"I am using NWJS app to run the bot and for some reason 9/10 the bot will send a duplicate message 1 second after the first.\r\n\r\nWhen I say 9/10 (it is probably more than that), this is when the bot connects. If it starts sending a duplicate, it will continue while it is alive. If on the rare occasion it doesn't send out a duplicate message, it doesn't ever seem to until reset.\r\n\r\nI'm really not the best at explaining issues lol.\r\n\r\nThis is the log\r\n\r\n```\r\n[17:08:03] event - connecting\r\n[17:08:03] event - logon\r\n[17:08:03] raw   - 001: Welcome, GLHF!\r\n[17:08:03] raw   - 002: Your host is tmi.twitch.tv\r\n[17:08:03] raw   - 003: This server is rather new\r\n[17:08:03] raw   - 004: -\r\n[17:08:03] raw   - 375: -\r\n[17:08:03] raw   - 372: You are in a maze of twisty passages, all alike.\r\n[17:08:03] event - connected\r\n[17:08:03] raw   - 376: >\r\n[17:08:06] event - join\r\n[17:08:06] raw   - 366: #like_a_dot_ninja\r\n[17:08:08] chat  - [#like_a_dot_ninja] like_a_dot_ninja: hello\r\n[17:08:08] chat  - [#like_a_dot_ninja] testbot05830: hello\r\n[17:08:09] chat  - [#like_a_dot_ninja] testbot05830: hello\r\n[17:08:26] chat  - [#like_a_dot_ninja] like_a_dot_ninja: I am being repeated by a damn bot!\r\n[17:08:26] chat  - [#like_a_dot_ninja] testbot05830: I am being repeated by a damn bot!\r\n[17:08:27] chat  - [#like_a_dot_ninja] testbot05830: I am being repeated by a damn bot!\r\n```\r\n\r\nThe code running is\r\n```javascript\r\n(function(){\r\n\tvar irc = require('twitch-irc');\r\n\tvar clientOptions = {\r\n\t\toptions: {\r\n\t\t\tdebug : true,\r\n\t\t\tdebugDetails : true\r\n\t\t},\r\n\t\tconnection : {\r\n\t\t\tpreferredServer : 'irc.twitch.tv'\r\n\t\t},\r\n\t\tlogging : {\r\n\t\t\tenabled : true,\r\n\t\t\tchat : true\r\n\t\t},\r\n\t\tidentity : {\r\n\t\t\tusername : 'testbot05830',\r\n\t\t\tpassword : 'oauth:password'\r\n\t\t},\r\n\t\tchannels : ['like_a_dot_ninja']\r\n\t}\r\n\tvar comments = ['hello', 'piece'];\r\n\tvar client = new irc.client(clientOptions);\r\n\r\n\tclient.connect();\r\n\r\n\tclient.addListener('chat', function(ch, user, msg) {\r\n\t\tif(user.username == clientOptions.identity.username) { return; }\r\n\t\tclient.say(ch, msg);\r\n\t\treturn;\r\n\t});\r\n\tclient.addListener('disconnected', function (reason) {\r\n\t\tconsole.log(reason)\r\n\t});\r\n\tclient.addListener('pong', function(l) {\r\n\t\tconsole.log('pong: ' + l);\r\n\t});\r\n\tclient.addListener('connected', function(a, p) {\r\n\t\tconsole.log(a, p);\r\n\t})\r\n})();\r\n```"},"comment":{"url":"https://api.github.com/repos/twitch-irc/twitch-irc/issues/comments/88673540","html_url":"https://github.com/twitch-irc/twitch-irc/issues/74#issuecomment-88673540","issue_url":"https://api.github.com/repos/twitch-irc/twitch-irc/issues/74","id":88673540,"user":{"login":"Schmoopiie","id":4692848,"avatar_url":"https://avatars.githubusercontent.com/u/4692848?v=3","gravatar_id":"","url":"https://api.github.com/users/Schmoopiie","html_url":"https://github.com/Schmoopiie","followers_url":"https://api.github.com/users/Schmoopiie/followers","following_url":"https://api.github.com/users/Schmoopiie/following{/other_user}","gists_url":"https://api.github.com/users/Schmoopiie/gists{/gist_id}","starred_url":"https://api.github.com/users/Schmoopiie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schmoopiie/subscriptions","organizations_url":"https://api.github.com/users/Schmoopiie/orgs","repos_url":"https://api.github.com/users/Schmoopiie/repos","events_url":"https://api.github.com/users/Schmoopiie/events{/privacy}","received_events_url":"https://api.github.com/users/Schmoopiie/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T00:24:28Z","updated_at":"2015-04-02T00:24:28Z","body":"I guess I will have to try NWJS this weekend, you're not the first one to report issues with the module while using it with NWJS. Will keep you updated here."}}