Skip to content

Commit

Permalink
Fix: list/search channel properly using cursor (#457)
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey authored Feb 21, 2025
1 parent 73689ed commit c5f9ad8
Show file tree
Hide file tree
Showing 5 changed files with 504 additions and 422 deletions.
11 changes: 11 additions & 0 deletions slack/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf"
}
8 changes: 7 additions & 1 deletion slack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ switch (command) {
await getChannelHistory(webClient, process.env.CHANNELID, process.env.LIMIT)
break
case "getChannelHistoryByTime":
await getChannelHistoryByTime(webClient, process.env.CHANNELID, process.env.LIMIT, process.env.START, process.env.END)
await getChannelHistoryByTime(
webClient,
process.env.CHANNELID,
process.env.LIMIT,
process.env.START,
process.env.END
)
break
case "getThreadHistory":
await getThreadHistory(webClient, process.env.CHANNELID, process.env.THREADID, process.env.LIMIT)
Expand Down
17 changes: 16 additions & 1 deletion slack/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion slack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
"author": "Acorn Labs",
"license": "Apache-2.0",
"type": "module",
"scripts": {
"format": "prettier --write ."
},
"dependencies": {
"@gptscript-ai/gptscript": "github:gptscript-ai/node-gptscript#d4b222c34e757b62429dc43ae9cc44aa3f6c9700",
"@slack/web-api": "^7.3.2",
"async-mutex": "^0.5.0",
"fuse.js": "^7.1.0"
"fuse.js": "^7.1.0",
"prettier": "^3.0.0"
}
}
Loading

0 comments on commit c5f9ad8

Please sign in to comment.