3 * This is by no means is a production ready module.
9 exports
.onload = function(){
10 filters
= ['sad', 'kill', 'death'];
11 compiled_regex
= new RegExp(filters
.join('|'), 'im');
15 exports
.onmsg = function(msg
){
16 if (msg
.msg
.search(compiled_regex
) > -1) {