3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
dbot/modules/getajob.js

19 lines
375 B
JavaScript
Raw Normal View History

2011-08-25 14:39:44 +02:00
var getAJob = function(dbot) {
var dbot = dbot;
return {
'listener': function(data) {
var num = Math.floor(Math.random()*101);
2011-08-25 16:47:06 +02:00
if(num == 50) {
2011-08-25 14:39:44 +02:00
dbot.say(data.channel, data.user + ': Get a job!');
}
},
'on': 'PRIVMSG'
};
};
exports.fetch = function(dbot) {
return getAJob(dbot);
};