forked from GitHub/dbot
small tings
This commit is contained in:
parent
aed155d5a2
commit
fd400cf3ea
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user