mirror of
https://github.com/reality/dbot.git
synced 2024-12-04 09:59:27 +01:00
meh
This commit is contained in:
parent
8e1d4d5722
commit
7c023104e3
@ -4,8 +4,7 @@ var getAJob = function(dbot) {
|
|||||||
return {
|
return {
|
||||||
'listener': function(data) {
|
'listener': function(data) {
|
||||||
var num = Math.floor(Math.random()*101);
|
var num = Math.floor(Math.random()*101);
|
||||||
console.log(num);
|
if(num == 50) {
|
||||||
if(num == 50 || data.message.indexOf('bored') !== -1) {
|
|
||||||
dbot.say(data.channel, data.user + ': Get a job!');
|
dbot.say(data.channel, data.user + ': Get a job!');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -3,8 +3,8 @@ var youAre = function(dbot) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'listener': function(data) {
|
'listener': function(data) {
|
||||||
var num = Math.floor(Math.random()*6);
|
var num = Math.floor(Math.random()*4);
|
||||||
var key = data.message.match(/(is|are) ([\d\w\s']*)(,|\.)?/);
|
var key = data.message.match(/(is|are) ([\d\w\s']*)/);
|
||||||
|
|
||||||
if(num == 1 && key != undefined) {
|
if(num == 1 && key != undefined) {
|
||||||
if(key[2].indexOf('and') !== -1) {
|
if(key[2].indexOf('and') !== -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user