mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
find alias notifies
This commit is contained in:
parent
849067127f
commit
f4d25c0bfa
@ -100,11 +100,11 @@ var commands = function(dbot) {
|
|||||||
'server': event.server
|
'server': event.server
|
||||||
}, function(notify) {
|
}, function(notify) {
|
||||||
_.each(aliases, function(alias) {
|
_.each(aliases, function(alias) {
|
||||||
if(notify.message.match('banned ' + alias) ||
|
if(notify.message.match('banned ' + alias + ' ') ||
|
||||||
notify.message.match(alias + ' has been unbanned') ||
|
notify.message.match(' ' + alias + ' has been unbanned') ||
|
||||||
notify.message.match('issued a warning to ' + alias) ||
|
notify.message.match('issued a warning to ' + alias + ' ') ||
|
||||||
notify.message.match('has quieted ' + alias) ||
|
notify.message.match('has quieted ' + alias + ' ') ||
|
||||||
notify.message.match('has reported ' + alias)) {
|
notify.message.match('has reported ' + alias + ' ')) {
|
||||||
if(notify.type == 'ban') {
|
if(notify.type == 'ban') {
|
||||||
ban++;
|
ban++;
|
||||||
if(notify.time > latest_ban.time) {
|
if(notify.time > latest_ban.time) {
|
||||||
@ -134,7 +134,7 @@ var commands = function(dbot) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
_.each(sTimes, function(time) {
|
_.each(sTimes, function(time) {
|
||||||
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]);
|
//event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]);
|
||||||
});
|
});
|
||||||
|
|
||||||
if(latest_ban.time != 0) {
|
if(latest_ban.time != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user