We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f0d10 commit 1f730ceCopy full SHA for 1f730ce
src/adapters/shell.js
@@ -63,6 +63,7 @@ class Shell extends Adapter {
63
case '\\q':
64
case 'exit':
65
this.#rl.close()
66
+ process.exit(0)
67
break
68
case '\\?':
69
case 'help':
@@ -92,8 +93,6 @@ class Shell extends Adapter {
92
93
const user = this.robot.brain.userForId(userId, { name: userName, room: 'Shell' })
94
await this.receive(new TextMessage(user, input, 'messageId'))
95
this.#rl.prompt()
- }).on('close', () => {
96
- process.exit(0)
97
})
98
try {
99
@@ -108,8 +107,6 @@ class Shell extends Adapter {
108
107
if (this.#rl?.close) {
109
110
}
111
- this.cli.removeAllListeners()
112
- this.cli.close()
113
114
115
0 commit comments