3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 20:22:39 +01:00
dbot/modules/getajob.js

18 lines
345 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) {
if(Number.prototype.chanceIn(1, 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);
};