mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 04:51:09 -05:00
prompt cleanup
This commit is contained in:
parent
853a6709b6
commit
bdd167ddfb
@ -62,7 +62,7 @@ class TextAdventures(callbacks.Plugin):
|
|||||||
|
|
||||||
def output(self, output):
|
def output(self, output):
|
||||||
response = []
|
response = []
|
||||||
prompts = ["\n> >", "\n>\r\n>", "\n>", "\n\)", pexpect.TIMEOUT]
|
prompts = ["\n> >", "\n>", "\n\)", pexpect.TIMEOUT]
|
||||||
output.expect(prompts, timeout=1)
|
output.expect(prompts, timeout=1)
|
||||||
response = output.before
|
response = output.before
|
||||||
response = response.decode().splitlines()
|
response = response.decode().splitlines()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user