Closed austinhyde closed 9 years ago
Basically just reorganizes into a trigger + action system. e.g.
triggers.push({ mediums: ['irc', 'plug'], regex: /stupid\s+([\w\s]+)/i, action: function(dbs, data) { dbs.announce('Meeseek open ' + data.from + '\'s stupid ' + data.matches[1]); } }); triggers.push({ mediums: ['irc','plug'], regex: /(jira.*down)|(down.*jira)/i, action: action('isthejiradown') });
I have some ideas that can be made possible with this refactor...
such hubot
Basically just reorganizes into a trigger + action system. e.g.
I have some ideas that can be made possible with this refactor...