3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00
dbot/modules/getajob.js
2011-08-26 12:46:12 +01:00

18 lines
345 B
JavaScript

var getAJob = function(dbot) {
var dbot = dbot;
return {
'listener': function(data) {
if(Number.prototype.chanceIn(1, 50)) {
dbot.say(data.channel, data.user + ': Get a job!');
}
},
'on': 'PRIVMSG'
};
};
exports.fetch = function(dbot) {
return getAJob(dbot);
};