mirror of
https://github.com/reality/dbot.git
synced 2024-12-26 04:32:37 +01:00
t push:wq
:Merge branch 'betterusers' of github.com:reality/dbot into betterusers
This commit is contained in:
commit
8a5089c0f6
2
jsbot
2
jsbot
@ -1 +1 @@
|
|||||||
Subproject commit 606d0cdcddfda9d7328cfa0b65bb4a3079d77d9e
|
Subproject commit 139a3aad5a8b5c71dfe43fdc3f04d29d8b4104df
|
@ -51,7 +51,7 @@ var atheme = function(dbot) {
|
|||||||
});
|
});
|
||||||
delete this.hostStack[server][mask];
|
delete this.hostStack[server][mask];
|
||||||
}
|
}
|
||||||
}.bind(this), 2000);
|
}.bind(this), 5000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -95,7 +95,6 @@ var atheme = function(dbot) {
|
|||||||
delete allFlags[u];
|
delete allFlags[u];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
async.each(_.keys(hostMasks), function(hostMask, done) {
|
async.each(_.keys(hostMasks), function(hostMask, done) {
|
||||||
this.api.getVHosts(event.server, hostMask.split('@')[1], function(err, users) {
|
this.api.getVHosts(event.server, hostMask.split('@')[1], function(err, users) {
|
||||||
_.each(users, function(user) {
|
_.each(users, function(user) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"stream": "http://tripsit.fm:8000",
|
"stream": "http://radio.tripsit.me:8000/tripradio",
|
||||||
"announce": [ { "server": "tripsit", "name": "#tripbot" } ],
|
"announce": [ { "server": "tripsit", "name": "#drugs" } ],
|
||||||
"outputPrefix": "\u00033radio\u000f"
|
"outputPrefix": "\u00033radio\u000f"
|
||||||
}
|
}
|
||||||
|
@ -35,12 +35,14 @@ var api = function(dbot) {
|
|||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
ops = _.without(ops, undefined);
|
||||||
|
console.log(ops);
|
||||||
this.db.read('nunsubs', cName + '.' + server, function(err, nunsubs) {
|
this.db.read('nunsubs', cName + '.' + server, function(err, nunsubs) {
|
||||||
if(nunsubs) {
|
if(nunsubs) {
|
||||||
_.each(nunsubs.users, function(user) {
|
_.each(nunsubs.users, function(user) {
|
||||||
var uPart = user.split('.')[0];
|
var uPart = user.split('.')[0];
|
||||||
if(_.include(ops, uPart)) {
|
if(_.include(ops, uPart)) {
|
||||||
|
console.log('removing ' + uPart);
|
||||||
ops = _.without(ops, uPart);
|
ops = _.without(ops, uPart);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -10,6 +10,7 @@ var report = function(dbot) {
|
|||||||
this.internalAPI = {
|
this.internalAPI = {
|
||||||
'notify': function(server, users, message) {
|
'notify': function(server, users, message) {
|
||||||
async.eachSeries(users, function(nick, next) {
|
async.eachSeries(users, function(nick, next) {
|
||||||
|
console.log('sending msg to ' + nick);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
dbot.say(server, nick, message);
|
dbot.say(server, nick, message);
|
||||||
next();
|
next();
|
||||||
|
@ -66,6 +66,9 @@ var api = function(dbot) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
api['getUserAliases'].external = true;
|
||||||
|
api['getUserAliases'].extMap = [ 'id', 'callback' ];
|
||||||
|
|
||||||
return api;
|
return api;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user