@gitterm/slack-bot 0.1.1 → 0.2.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/README.md +4 -1
- package/dist/cli.js +2 -0
- package/dist/index.js +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -192,7 +192,10 @@ const bot = createSlackBot({
|
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
await bot.start();
|
|
195
|
-
|
|
195
|
+
// Stopping releases the bot's claim, so the next start doesn't wait for it to expire.
|
|
196
|
+
const shutdown = () => void bot.stop().finally(() => process.exit(0));
|
|
197
|
+
process.once("SIGINT", shutdown);
|
|
198
|
+
process.once("SIGTERM", shutdown);
|
|
196
199
|
```
|
|
197
200
|
|
|
198
201
|
### Add it to a bot you already run
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitterm/slack-bot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Slack bot that runs a coding agent on your repository in a GitTerm sandbox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"start:local": "bun --watch src/cli.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@gitterm/bot": "^0.
|
|
46
|
-
"@gitterm/sdk": "^0.
|
|
45
|
+
"@gitterm/bot": "^0.2.1",
|
|
46
|
+
"@gitterm/sdk": "^0.11.0",
|
|
47
47
|
"@slack/bolt": "^5.1.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|