Adds class var options, split to CmdGive +

docstring edit, options and docstring edit to CmdNick.
This commit is contained in:
BlauFeuer 2018-03-02 08:02:31 -05:00 committed by GitHub
parent 4b8000d88f
commit 4df5b28721

View file

@ -88,8 +88,7 @@ class CmdNick(COMMAND_DEFAULT_CLASS):
Switches: Switches:
inputline - replace on the inputline (default) inputline - replace on the inputline (default)
object - replace on object-lookup object - replace on object-lookup
account - replace on account-lookup account - replace on account-lookup
list - show all defined aliases (also "nicks" works) list - show all defined aliases (also "nicks" works)
delete - remove nick by index in /list delete - remove nick by index in /list
clearall - clear all nicks clearall - clear all nicks
@ -118,6 +117,7 @@ class CmdNick(COMMAND_DEFAULT_CLASS):
""" """
key = "nick" key = "nick"
options = ("inputline", "object", "account", "list", "delete", "clearall")
aliases = ["nickname", "nicks"] aliases = ["nickname", "nicks"]
locks = "cmd:all()" locks = "cmd:all()"
@ -377,12 +377,13 @@ class CmdGive(COMMAND_DEFAULT_CLASS):
give away something to someone give away something to someone
Usage: Usage:
give <inventory obj> = <target> give <inventory obj> <to||=> <target>
Gives an items from your inventory to another character, Gives an items from your inventory to another character,
placing it in their inventory. placing it in their inventory.
""" """
key = "give" key = "give"
split = " to "
locks = "cmd:all()" locks = "cmd:all()"
arg_regex = r"\s|$" arg_regex = r"\s|$"