Fixed the Command CmdExample class.
This commit is contained in:
parent
3be02c8f03
commit
dc2cce5f4f
1 changed files with 3 additions and 3 deletions
|
|
@ -288,12 +288,12 @@ class Command(object):
|
||||||
string += "-" * 50
|
string += "-" * 50
|
||||||
string += "\nname of cmd (self.key): {w%s{n\n" % self.key
|
string += "\nname of cmd (self.key): {w%s{n\n" % self.key
|
||||||
string += "cmd aliases (self.aliases): {w%s{n\n" % self.aliases
|
string += "cmd aliases (self.aliases): {w%s{n\n" % self.aliases
|
||||||
string += "cmd perms (self.permissions): {w%s{n\n" % self.permissions
|
string += "cmd locks (self.locks): {w%s{n\n" % self.locks
|
||||||
string += "help category (self.help_category): {w%s{n\n" % self.help_category
|
string += "help category (self.help_category): {w%s{n\n" % self.help_category.capitalize()
|
||||||
string += "object calling (self.caller): {w%s{n\n" % self.caller
|
string += "object calling (self.caller): {w%s{n\n" % self.caller
|
||||||
string += "object storing cmdset (self.obj): {w%s{n\n" % self.obj
|
string += "object storing cmdset (self.obj): {w%s{n\n" % self.obj
|
||||||
string += "command string given (self.cmdstring): {w%s{n\n" % self.cmdstring
|
string += "command string given (self.cmdstring): {w%s{n\n" % self.cmdstring
|
||||||
# show cmdset.key instead of cmdset to shorten output
|
# show cmdset.key instead of cmdset to shorten output
|
||||||
string += fill("current cmdset (self.cmdset): {w%s{n\n" % self.cmdset)
|
string += fill("current cmdset (self.cmdset): {w%s{n\n" % (self.cmdset.key if self.cmdset.key else self.cmdset.__class__))
|
||||||
|
|
||||||
self.caller.msg(string)
|
self.caller.msg(string)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue