small tings

This commit is contained in:
reality 2013-10-20 18:56:39 +00:00
parent aed155d5a2
commit fd400cf3ea

View File

@ -174,7 +174,7 @@ var commands = function(dbot) {
}, },
'~trackword': function(event) { '~trackword': function(event) {
var word = event.params[1].trim(); var word = event.params[1].trim().toLowerCase();
this.api.getTrackedWord(word, function(tWord) { this.api.getTrackedWord(word, function(tWord) {
if(!tWord) { if(!tWord) {
this.api.createTrackedWord(word, function(tWord) { this.api.createTrackedWord(word, function(tWord) {
@ -230,6 +230,8 @@ var commands = function(dbot) {
}; };
commands['~wordusers'].regex = [/^~wordusers ([\d\w[\]{}^|\\`_-]+?)/, 2]; commands['~wordusers'].regex = [/^~wordusers ([\d\w[\]{}^|\\`_-]+?)/, 2];
commands['~word'].regex = [/^~word ([\d\w[\]{}^|\\`_-]+?)/, 2];
commands['~trackword'].regex = [/^~trackword ([\d\w[\]{}^|\\`_-]+?)/, 2];
commands['~trackword'].access = 'power_user'; commands['~trackword'].access = 'power_user';
return commands; return commands;
}; };