hubot 10.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/adapters/shell.js +1 -4
package/package.json
CHANGED
package/src/adapters/shell.js
CHANGED
|
@@ -63,6 +63,7 @@ class Shell extends Adapter {
|
|
|
63
63
|
case '\\q':
|
|
64
64
|
case 'exit':
|
|
65
65
|
this.#rl.close()
|
|
66
|
+
process.exit(0)
|
|
66
67
|
break
|
|
67
68
|
case '\\?':
|
|
68
69
|
case 'help':
|
|
@@ -92,8 +93,6 @@ class Shell extends Adapter {
|
|
|
92
93
|
const user = this.robot.brain.userForId(userId, { name: userName, room: 'Shell' })
|
|
93
94
|
await this.receive(new TextMessage(user, input, 'messageId'))
|
|
94
95
|
this.#rl.prompt()
|
|
95
|
-
}).on('close', () => {
|
|
96
|
-
process.exit(0)
|
|
97
96
|
})
|
|
98
97
|
try {
|
|
99
98
|
this.#rl.prompt()
|
|
@@ -108,8 +107,6 @@ class Shell extends Adapter {
|
|
|
108
107
|
if (this.#rl?.close) {
|
|
109
108
|
this.#rl.close()
|
|
110
109
|
}
|
|
111
|
-
this.cli.removeAllListeners()
|
|
112
|
-
this.cli.close()
|
|
113
110
|
}
|
|
114
111
|
}
|
|
115
112
|
|