mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
19 lines
375 B
JavaScript
19 lines
375 B
JavaScript
var getAJob = function(dbot) {
|
|
var dbot = dbot;
|
|
|
|
return {
|
|
'listener': function(data) {
|
|
var num = Math.floor(Math.random()*101);
|
|
if(num == 50) {
|
|
dbot.say(data.channel, data.user + ': Get a job!');
|
|
}
|
|
},
|
|
|
|
'on': 'PRIVMSG'
|
|
};
|
|
};
|
|
|
|
exports.fetch = function(dbot) {
|
|
return getAJob(dbot);
|
|
};
|