mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
Added usage.json files for all modules
This commit is contained in:
parent
96b34c8c31
commit
cd56a8a197
@ -32,8 +32,6 @@ var js = function(dbot) {
|
||||
};
|
||||
commands['~js'].regex = [/^~js (.*)/, 2];
|
||||
commands['~ajs'].regex = [/^~ajs (.*)/, 2];
|
||||
commands['~js'].usage = '~js [command]';
|
||||
commands['~ajs'].usage = '~ajs [command]';
|
||||
|
||||
return {
|
||||
'name': 'js',
|
||||
|
4
modules/js/usage.json
Normal file
4
modules/js/usage.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
'~js': '~js [command]',
|
||||
'~ajs': '~ajs [command]'
|
||||
}
|
@ -214,13 +214,7 @@ var poll = function(dbot) {
|
||||
commands['~vote'].regex = [/~vote ([^ ]+) ([^ ]+)/, 3];
|
||||
commands['~pdesc'].regex = [/~pdesc ([^ ]+)/, 2];
|
||||
commands['~count'].regex = [/~count ([^ ]+)/, 2];
|
||||
|
||||
commands['~newpoll'].usage = '~newpoll [pollname] options=[each,poll,option] [Poll Description]';
|
||||
commands['~addoption'].usage = '~addoption [pollname] [newoption]';
|
||||
commands['~rmoption'].usage= '~rmoption [pollname] [optiontoremove]';
|
||||
commands['~vote'].usage= '~vote [pollname] [option]';
|
||||
commands['~pdesc'].usage = '~pdesc [pollname]';
|
||||
|
||||
|
||||
return {
|
||||
'name': 'poll',
|
||||
'ignorable': true,
|
||||
|
7
modules/poll/usage.json
Normal file
7
modules/poll/usage.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
'~newpoll': '~newpoll [pollname] options=[each,poll,option] [Poll Description]',
|
||||
'~addoption': '~addoption [pollname] [newoption]',
|
||||
'~rmoption': '~rmoption [pollname] [optiontoremove]',
|
||||
'~vote': '~vote [pollname] [option]',
|
||||
'~pdesc': '~pdesc [pollname]'
|
||||
}
|
@ -202,12 +202,6 @@ var quotes = function(dbot) {
|
||||
commands['~rmlast'].regex = [/^~rmlast ([\d\w\s-]*)/, 2];
|
||||
commands['~qadd'].regex = [/^~qadd ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
|
||||
|
||||
commands['~q'].usage = '~q [category]';
|
||||
commands['~qsearch'].usage = '~qsearch [category]=[search]';
|
||||
commands['~rm'].usage = '~rm [category]=[quote to delete]';
|
||||
commands['~rmlast'].usage = '~rmlast [category]'
|
||||
commands['~qadd'].usage = '~qadd [category]=[content]';
|
||||
|
||||
return {
|
||||
'name': 'quotes',
|
||||
'ignorable': true,
|
||||
|
7
modules/quotes/usage.json
Normal file
7
modules/quotes/usage.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
'~q': '~q [category]',
|
||||
'~qsearch': '~qsearch [category]=[search]',
|
||||
'~rm': '~rm [category]=[quote to delete]',
|
||||
'~rmlast': '~rmlast [category],
|
||||
'~qadd': '~qadd [category]=[content]'
|
||||
}
|
@ -38,7 +38,6 @@ var report = function(dbot) {
|
||||
|
||||
};
|
||||
commands['~report'].regex = [/^~report ([^ ]+) ([^ ]+) (.+)$/, 4];
|
||||
commands['~report'].usage = '~report [#channel] [username] [reason for reporting]';
|
||||
|
||||
return {
|
||||
'name': 'report',
|
||||
|
3
modules/report/usage.json
Normal file
3
modules/report/usage.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
'~report': '~report [#channel] [username] [reason for reporting]'
|
||||
}
|
Loading…
Reference in New Issue
Block a user