3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

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) {
var word = event.params[1].trim();
var word = event.params[1].trim().toLowerCase();
this.api.getTrackedWord(word, function(tWord) {
if(!tWord) {
this.api.createTrackedWord(word, function(tWord) {
@ -230,6 +230,8 @@ var commands = function(dbot) {
};
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';
return commands;
};