From 7c023104e3f4dea47917446ab8b9032356bdd3f1 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 25 Aug 2011 15:47:06 +0100 Subject: [PATCH] meh --- modules/getajob.js | 3 +-- modules/youare.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/getajob.js b/modules/getajob.js index 1202084..0b3d282 100644 --- a/modules/getajob.js +++ b/modules/getajob.js @@ -4,8 +4,7 @@ var getAJob = function(dbot) { return { 'listener': function(data) { var num = Math.floor(Math.random()*101); - console.log(num); - if(num == 50 || data.message.indexOf('bored') !== -1) { + if(num == 50) { dbot.say(data.channel, data.user + ': Get a job!'); } }, diff --git a/modules/youare.js b/modules/youare.js index 232801a..e950264 100644 --- a/modules/youare.js +++ b/modules/youare.js @@ -3,8 +3,8 @@ var youAre = function(dbot) { return { 'listener': function(data) { - var num = Math.floor(Math.random()*6); - var key = data.message.match(/(is|are) ([\d\w\s']*)(,|\.)?/); + var num = Math.floor(Math.random()*4); + var key = data.message.match(/(is|are) ([\d\w\s']*)/); if(num == 1 && key != undefined) { if(key[2].indexOf('and') !== -1) {