Correct some typos in command system comments
This commit is contained in:
parent
f1ee561b9b
commit
ceb7772b5b
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Provides a tiny framework with simple, yet powerful and extensible
|
Provides a tiny framework with simple, yet powerful and extensible
|
||||||
architecture to implement commands in a streight and flexible,
|
architecture to implement commands in a straight and flexible,
|
||||||
declarative way.
|
declarative way.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ class CommandProcessor(object):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# This defines a command prefix (or an initializer), which should
|
# This defines a command prefix (or an initializer), which should
|
||||||
# preceede a a text in order it to be processed as a command.
|
# precede a text in order for it to be processed as a command.
|
||||||
COMMAND_PREFIX = '/'
|
COMMAND_PREFIX = '/'
|
||||||
|
|
||||||
def process_as_command(self, text):
|
def process_as_command(self, text):
|
||||||
|
|
|
@ -75,7 +75,7 @@ class ChatCommandProcessor(CommandProcessor):
|
||||||
self.command_succeeded = True
|
self.command_succeeded = True
|
||||||
|
|
||||||
def looks_like_command(self, text, body, name, arguments):
|
def looks_like_command(self, text, body, name, arguments):
|
||||||
# Command escape stuff ggoes here. If text was prepended by the
|
# Command escape stuff goes here. If text was prepended by the
|
||||||
# command prefix twice, like //not_a_command (if prefix is set
|
# command prefix twice, like //not_a_command (if prefix is set
|
||||||
# to /) then it will be escaped, that is sent just as a regular
|
# to /) then it will be escaped, that is sent just as a regular
|
||||||
# message with one (only one) prefix removed, so message will be
|
# message with one (only one) prefix removed, so message will be
|
||||||
|
|
Loading…
Reference in New Issue