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 8af16ad971
commit 062e048c60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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