added deck.chat modules
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ class DeckChat:
|
|||||||
"""Start the chat loop"""
|
"""Start the chat loop"""
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
input_msg = input('\n' + self.chat_prefix).strip()
|
input_msg = input(self.chat_prefix).strip()
|
||||||
cmd, msg = self._detect_command(input_msg)
|
cmd, msg = self._detect_command(input_msg)
|
||||||
output, self.state = self.command_handlers[cmd](msg, self.state)
|
output, self.state = self.command_handlers[cmd](msg, self.state)
|
||||||
if self.paginate_n > 0:
|
if self.paginate_n > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user