{"action":"created","issue":{"url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/issues/77","labels_url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/issues/77/comments","events_url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/issues/77/events","html_url":"https://github.com/Efreak/node-steam-chat-bot/issues/77","id":90891471,"number":77,"title":"IRC trigger","user":{"login":"Efreak","id":749751,"avatar_url":"https://avatars.githubusercontent.com/u/749751?v=3","gravatar_id":"","url":"https://api.github.com/users/Efreak","html_url":"https://github.com/Efreak","followers_url":"https://api.github.com/users/Efreak/followers","following_url":"https://api.github.com/users/Efreak/following{/other_user}","gists_url":"https://api.github.com/users/Efreak/gists{/gist_id}","starred_url":"https://api.github.com/users/Efreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Efreak/subscriptions","organizations_url":"https://api.github.com/users/Efreak/orgs","repos_url":"https://api.github.com/users/Efreak/repos","events_url":"https://api.github.com/users/Efreak/events{/privacy}","received_events_url":"https://api.github.com/users/Efreak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/labels/Feature%20Request","name":"Feature Request","color":"fef2c0"},{"url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/labels/Low%20Priority","name":"Low Priority","color":"afc4ff"},{"url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/labels/Plugin","name":"Plugin","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/milestones/3","html_url":"https://github.com/Efreak/node-steam-chat-bot/milestones/2.2.0","labels_url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/milestones/3/labels","id":1180547,"number":3,"title":"2.2.0","description":null,"creator":{"login":"Efreak","id":749751,"avatar_url":"https://avatars.githubusercontent.com/u/749751?v=3","gravatar_id":"","url":"https://api.github.com/users/Efreak","html_url":"https://github.com/Efreak","followers_url":"https://api.github.com/users/Efreak/followers","following_url":"https://api.github.com/users/Efreak/following{/other_user}","gists_url":"https://api.github.com/users/Efreak/gists{/gist_id}","starred_url":"https://api.github.com/users/Efreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Efreak/subscriptions","organizations_url":"https://api.github.com/users/Efreak/orgs","repos_url":"https://api.github.com/users/Efreak/repos","events_url":"https://api.github.com/users/Efreak/events{/privacy}","received_events_url":"https://api.github.com/users/Efreak/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-06-25T08:04:32Z","updated_at":"2015-06-26T05:41:54Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-25T08:08:23Z","updated_at":"2015-07-02T22:48:58Z","closed_at":null,"body":"Instances of irc should be available to other instances of the trigger so as not to require multiple bots for the same network. One possible method is below.\r\n\r\n````javascript\r\nvar setupNetwork = function(network) {\r\n    this.chatBot.irc[network] = require('irc');\r\n    .......\r\n}\r\n\r\nif(this.chatBot.irc && this.chatBot.irc[network] {\r\n    setupRelay(network, chatroom, group);\r\n} else if this.chatBot.irc {\r\n    setupNetwork(network);\r\n    setupRelay(network, chatroom, group);\r\n} else {\r\n    this.chatBot.irc = {}\r\n    setupNetwork(network);\r\n    setupRelay(network, chatroom, group);\r\n}\r\n````"},"comment":{"url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/issues/comments/118187350","html_url":"https://github.com/Efreak/node-steam-chat-bot/issues/77#issuecomment-118187350","issue_url":"https://api.github.com/repos/Efreak/node-steam-chat-bot/issues/77","id":118187350,"user":{"login":"Efreak","id":749751,"avatar_url":"https://avatars.githubusercontent.com/u/749751?v=3","gravatar_id":"","url":"https://api.github.com/users/Efreak","html_url":"https://github.com/Efreak","followers_url":"https://api.github.com/users/Efreak/followers","following_url":"https://api.github.com/users/Efreak/following{/other_user}","gists_url":"https://api.github.com/users/Efreak/gists{/gist_id}","starred_url":"https://api.github.com/users/Efreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Efreak/subscriptions","organizations_url":"https://api.github.com/users/Efreak/orgs","repos_url":"https://api.github.com/users/Efreak/repos","events_url":"https://api.github.com/users/Efreak/events{/privacy}","received_events_url":"https://api.github.com/users/Efreak/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T22:48:58Z","updated_at":"2015-07-02T22:48:58Z","body":"Status: In progress\r\n\r\nTBD: Testing & commands, simplify configuration."}}