View on GitHub

LynxBot

A Twitch.tv IRC bot for Old School Runescape

Download this project as a .zip file Download this project as a tar.gz file

editcom(2) - LynxBot manual

NAME

editcom - modify a custom command

SYNOPSIS

$editcom [-A on|off] [-a] [-c CD] CMD [RESPONSE...]
$editcom -r OLD NEW
$editcom -s SEDCMD [-A on|off] [-c CD] CMD

DESCRIPTION

editcom is used to modify custom LynxBot commands.

CMD is the keyword that activates the command, without the leading dollar sign $.

The optional argument RESPONSE is the new response for the command.

OPTIONS

-A, --active={on,off}
enable or disable the command
-a, --append
append RESPONSE to the existing command response
-c, --cooldown=CD
set the cooldown of the command to CD seconds
--help
print brief description and usage information
-r, --rename
change the keyword of command OLD to NEW
-s, --sed=SEDCMD
perform the sed substitution command given
by SEDCMD on the response of CMD

EXAMPLES

Changes the response of the command $hi to "hey wassup hello"

$editcom hi hey wassup hello

Changes the cooldown of the command $hi to 60 seconds:

$editcom -c 60 hi

Changes the response of the command $hi to "hey wassup hello" and the cooldown to 60 seconds:

$editcom -c 60 hi hey wassup hello

Deactivates the command $hi:

$editcom -A off hi

Renames the command $hi to $hello:

$editcom -r hi hello

Replaces all occurrences of the string 'hello' in the response of the command $hi with the string 'goodbye' and enables the command:

$editcom -s s/hello/goodbye/g -A on hi

SEE ALSO

addcom(2), delcom(2), Custom Commands(3), customcmds.json(4)