]>
Commit | Line | Data |
---|---|---|
1 | "bind" ("/msg $S BIND <ServiceNick> <BindName> [Nick|*Module.]<Command> [Arg [Arg[..]]]", | |
2 | "Bind creates a command. ", | |
3 | " $bServiceNick$b is which service the new command will work on.", | |
4 | " $bBindName$b is the name of the new command you are making.", | |
5 | " $bCommand$b To refer to a command on the same service.", | |
6 | " $bNick$b To refer to a command on a different ", | |
7 | " service such as $O, $C, $N, etc.", | |
8 | " $b*Module$b To bind a command directly from a module such as", | |
9 | " ChanServ, OpServ, NickServ, modcmd, etc", | |
10 | " (note the asterisk before the module name).", | |
11 | " $barg(s)$b Can be anything, or you can use $$1 $$2 $$3 etc", | |
12 | " which will be replaced with the arguments passed", | |
13 | " to the command. Use a - after ($$2-) to indicate", | |
14 | " that argument and all arguments after it.", | |
15 | "$b$b", | |
16 | "There is a special case to load ALL commands from a module:", | |
17 | "/msg $S bind <serviceNick> * *<Module>.* ", | |
18 | " You may need to run this after installing previously", | |
19 | " missing modules, or making changes such as enabling", | |
20 | " the email features, so all the commands are bound.", | |
21 | " Note: Certain(alias) commands will not bind this way; ", | |
22 | " you must bind them by name. ", | |
23 | " See $bREBINDALL$b to rebind everything.", | |
24 | "$b$b", | |
25 | "For simplicity, you cannot bind to a command that is an alias.", | |
26 | "$b$b", | |
27 | "If you want to bind $bfoo bar$b as a command, bind $bfoo$b to $b*modcmd.joiner$b first, unless foo is a builtin command such as uset, in which case use '\\' to escape the space (example: $bbind x3 uset\ autoop x3.uset\ autoop$b)", | |
28 | "$b$b", | |
29 | "$uExamples$u", | |
30 | " bind X3 autoop *chanserv.uset\\ autoop", | |
31 | " bind O3 murder o3.trace gline nick $$1 duration 1m reason $$2-", | |
32 | " bind X3 * *chanserv.*", | |
33 | "$b$b", | |
34 | "$uSee also:$u unbind, joiner, modcmd, rebindall"); | |
35 | ||
36 | "commands" "${index}"; | |
37 | ||
38 | "rebindall" ("/msg $S REBINDALL", | |
39 | "Rebinds all available delault commands and aliases for each service and module currently loaded.", | |
40 | "Note: this does NOT remove any additional aliases or bindings you may have made, but will replace any you have deleted.", | |
41 | "Good to use after upgrades or after enabling 'email' support to ensure you have all commands bound to a service bot.", | |
42 | "$uSee also:$u bind (esp 'bind nick * *mod.*'), unbind, modcmd"); | |
43 | ||
44 | "god" ("/msg $C GOD [on|off]", | |
45 | "Toggles security override, which grants you complete access to all channels. Please use carefully."); | |
46 | ||
47 | "help" ("/msg $S HELP [command]", | |
48 | "Help will show you the information for the given command.", | |
49 | "All help files will use the same syntax, with optional parameters listed in [] and required parameters listed in <>.", | |
50 | "To see what commands are available for use with $S, type /msg $S help commands. For help on any specific command or topic, type /msg $S help command."); | |
51 | ||
52 | "readhelp" ("/msg $S READHELP <module>", | |
53 | "Re-reads the module's help file from disk.", | |
54 | "$uSee Also:$u help"); | |
55 | ||
56 | "unbind" ("/msg $S UNBIND <service> <command>", | |
57 | "Unbinds a command from a service, so that it is no longer accessible.", | |
58 | "Some commands (such as $bauth$b and $bbind$b) will not let you unbind their last binding -- for obvious reasons.", | |
59 | "$uSee Also:$u bind"); | |
60 | ||
61 | "timecmd" ("/msg $S TIMECMD <command and args>", | |
62 | "Reports how long it takes to run the specified command."); | |
63 | ||
64 | "command" ("/msg $S COMMAND <command>", | |
65 | "Shows the restrictions on who can use the named command (and how).", | |
66 | "$uSee Also:$u modcmd, bind"); | |
67 | ||
68 | "modcmd" ("/msg $S MODCMD <command> [<option> <newval> ...]", | |
69 | "Displays options for the specified command, or changes the options and values listed. The command name may be prefixed with $bServiceNick.$b to specify another service's command (for example, $N.AUTH to refer to the auth command).", | |
70 | "Supported options are:", | |
71 | " FLAGS Comma-separated, +/- prefixed list of flags to add or remove.", | |
72 | " CHANNEL_ACCESS Minimum ChanServ access.", | |
73 | " OPER_ACCESS Minimum OpServ access.", | |
74 | " ACCOUNT_FLAGS Account flags to require or deny (for example, +R-S)", | |
75 | "See the $bmodcmd flags$b help entry for a list of supported flags.", | |
76 | "$uSee Also:$u modcmd flags, command, bind"); | |
77 | ||
78 | "modcmd flags" ("The following flags are supported for commands:", | |
79 | " ACCEPTCHAN Treat a normal channel name (if specified) as the context for the command", | |
80 | " ACCEPTPLUSCHAN Accept modeless channel names as well as normal channel names", | |
81 | " AUTHED Require that the user be authed to use the command", | |
82 | " CHANNEL Require that an existing channel be given as the context", | |
83 | " CHANUSER Require that the user have $C access to the context", | |
84 | " DISABLED Command is disabled", | |
85 | " HELPING Require that the user have security override enabled", | |
86 | " IGNORE_CSUSPEND Allow a +REGCHAN command to work even if the channel is suspended", | |
87 | " JOINABLE Require that the user have $C access to the channel, be in the channel, or be network staff to use the command", | |
88 | " KEEPBOUND Do not let the last instance of the command be removed", | |
89 | " LOGHOSTMASK Log the user's ident, hostname and IP (as well as nick and account name)", | |
90 | " NOLOG Do not log the command at all", | |
91 | " NETWORKHELPER Allow network helpers to use the command", | |
92 | " OPER Allow opers to use the command", | |
93 | " QUALIFIED Require $b/msg Service@$s$b addressing when using the command", | |
94 | " REGCHAN Require a registered channel to be give as the context", | |
95 | " SUPPORTHELPER Allow support helpers to use the command", | |
96 | " TOY Command is a toy (cannot be invoked on a channel from outside the channel)", | |
97 | "Note: If any of SUPPORTHELPER, NETWORKHELPER, OPER, any of the specified flags is considered sufficient. For example, NETWORKHELPER and OPER both specified means both network helpers and opers can use the command."); | |
98 | ||
99 | "joiner" ("/msg $S JOINER [subcmd ...]", | |
100 | "Magically looks up subcommands and redirects to them. Use the command by itself to see what subcommands are known.", | |
101 | "joiner is used with BIND to make complex subcommands."); | |
102 | ||
103 | "stats modules" ("/msg $S STATS MODULES [modulename]", | |
104 | "With no module name argument, shows a list of loaded modules and brief statistics for each.", | |
105 | "When a module name is given, shows commands exported by that module.", | |
106 | "$uSee Also:$u stats services, command, modcmd, bind"); | |
107 | ||
108 | "stats services" ("/msg $S STATS SERVICES [botnick]", | |
109 | "With no bot nick argument, shows a list of the service bots using the unified command framework, and brief statistics for each.", | |
110 | "When a bot nick is given, shows commands bound to that service.", | |
111 | "$uSee Also:$u stats modules, command, modcmd, bind, unbind"); | |
112 | ||
113 | "showcommands" ("/msg $S SHOWCOMMANDS [opserv-access] [channel-access]", | |
114 | "Shows commands which you can execute (with their required access levels). If you give a numeric $O access level or text $C access name, it further restricts output to only show commands which can be executed by users with that access.", | |
115 | "$uSee Also:$u command"); | |
116 | ||
117 | "helpfiles" ("/msg $S HELPFILES <service> [module list]", | |
118 | "With only a service nick, shows the helpfiles used by that service.", | |
119 | "With a list of modules, sets the order that the service will look up non-command help entries.", | |
120 | "$uSee Also:$u bind, unbind"); | |
121 | ||
122 | "service add" ("/msg $S SERVICE ADD <nick> <hostname> <description>", | |
123 | "Creates a new service bot.", | |
124 | "$uSee Also:$u service rename, service trigger, service remove"); | |
125 | ||
126 | "service rename" ("/msg $S SERVICE RENAME <oldnick> <newnick>", | |
127 | "Renames a service bot. Currently does not support the default services.", | |
128 | "$uSee Also:$u service add, service trigger, service remove"); | |
129 | ||
130 | "service trigger" ("/msg $S SERVICE TRIGGER <nick> [remove|<trigger>]", | |
131 | "Sets or clears the trigger character that the named service uses to identify in-channel messages directed at it.", | |
132 | "To remove a trigger, use the word $bremove$b (or $bnone$b) as the argument. Otherwise, the first letter of the argument will be used as the new trigger.", | |
133 | "If no argument is given, shows the current trigger for the service.", | |
134 | "$uSee Also:$u service add, service rename, service remove"); | |
135 | ||
136 | "service remove" ("/msg $S SERVICE REMOVE <nick> [<quit reason>]", | |
137 | "Destroys a service. If a default service is named, it will be recreated when X3 restarts.", | |
138 | "$uSee Also:$u service add, service rename, service trigger"); | |
139 | ||
140 | "version" ("/msg $S version", | |
141 | "Sends you version and copyright information for this software."); |