Skip to content

Commit c5f9ad8

Browse files
authored
Fix: list/search channel properly using cursor (#457)
Signed-off-by: Daishan Peng <[email protected]>
1 parent 73689ed commit c5f9ad8

File tree

5 files changed

+504
-422
lines changed

5 files changed

+504
-422
lines changed

slack/.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": false,
7+
"trailingComma": "es5",
8+
"bracketSpacing": true,
9+
"arrowParens": "always",
10+
"endOfLine": "lf"
11+
}

slack/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ switch (command) {
4040
await getChannelHistory(webClient, process.env.CHANNELID, process.env.LIMIT)
4141
break
4242
case "getChannelHistoryByTime":
43-
await getChannelHistoryByTime(webClient, process.env.CHANNELID, process.env.LIMIT, process.env.START, process.env.END)
43+
await getChannelHistoryByTime(
44+
webClient,
45+
process.env.CHANNELID,
46+
process.env.LIMIT,
47+
process.env.START,
48+
process.env.END
49+
)
4450
break
4551
case "getThreadHistory":
4652
await getThreadHistory(webClient, process.env.CHANNELID, process.env.THREADID, process.env.LIMIT)

slack/package-lock.json

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

slack/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
"author": "Acorn Labs",
1111
"license": "Apache-2.0",
1212
"type": "module",
13+
"scripts": {
14+
"format": "prettier --write ."
15+
},
1316
"dependencies": {
1417
"@gptscript-ai/gptscript": "github:gptscript-ai/node-gptscript#d4b222c34e757b62429dc43ae9cc44aa3f6c9700",
1518
"@slack/web-api": "^7.3.2",
1619
"async-mutex": "^0.5.0",
17-
"fuse.js": "^7.1.0"
20+
"fuse.js": "^7.1.0",
21+
"prettier": "^3.0.0"
1822
}
1923
}

0 commit comments

Comments
 (0)