forked from GitHub/dbot
give users module proper usage info, subsequently fix empty params erroring
This commit is contained in:
parent
d9a03d03b6
commit
d87000f78d
@ -96,7 +96,11 @@ var commands = function(dbot) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
commands['~alias'].regex = [/^~alias ([\d\w[\]{}^|\\`_-]+?)/, 2];
|
||||
commands['~setaliasparent'].regex = [/^~setaliasparent ([\d\w[\]{}^|\\`_-]+?)/, 2];
|
||||
commands['~mergeusers'].regex = [/^~mergeusers ([\d\w[\]{}^|\\`_-]+?)\s*?([\d\w[\]{}^|\\`_-]+?)/, 3];
|
||||
|
||||
commands['~setaliasparent'].access = 'moderator';
|
||||
commands['~mergeusers'].access = 'moderator';
|
||||
|
||||
|
5
modules/users/usage.json
Normal file
5
modules/users/usage.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"~alias": "~alias [nick]",
|
||||
"~setaliasparent": "~setaliasparent [nick]",
|
||||
"~mergeusers": "~mergeusers [primary] [secondary]"
|
||||
}
|
Loading…
Reference in New Issue
Block a user