3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

colours for the type thing

This commit is contained in:
reality 2013-08-21 19:10:10 +00:00
parent 73ca19ca73
commit 46231c9e56
2 changed files with 8 additions and 6 deletions

View File

@ -127,13 +127,14 @@ var report = function(dbot) {
'message': message
}, function() {});
var notifier = event.user;
var cChan = channelName;
var notifier = event.user,
cChan = channelName,
type = 'notify';
if(_.has(this.config.colours, event.server)) {
var colours = this.config.colours[event.server];
notifier = colours['nicks'] + notifier + '\u000f';
type = colours['type'] + 'notify' + '\u000f';
type = colours['type'] + type + '\u000f';
if(_.has(colours['channels'], channelName)) {
cChan = colours['channels'][channelName] +
cChan + "\u000f";
@ -141,6 +142,7 @@ var report = function(dbot) {
}
this.api.notify(event.server, channelName, dbot.t('notify', {
'type': type,
'channel': cChan,
'notifier': notifier,
'message': message

View File

@ -45,9 +45,9 @@
"it": "Non sono presente in {channel}."
},
"notify": {
"en": "[notify][{channel}][{notifier}] {message}",
"fr": "[notify][{channel}][{notifier}] {message}",
"it": "[notify][{channel}][{notifier}] {message}"
"en": "[{type}][{channel}][{notifier}] {message}",
"fr": "[{type}][{channel}][{notifier}] {message}",
"it": "[{type}][{channel}][{notifier}] {message}"
},
"notified": {
"en": "{user}: {channel} staff notified.",