mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
18 lines
345 B
JavaScript
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);
|
|
};
|