Skip to content

Commit

Permalink
Final test
Browse files Browse the repository at this point in the history
  • Loading branch information
jianmin-chen committed Apr 18, 2024
1 parent 62a5097 commit 5d8f673
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/queue/use.ts
Expand Up @@ -89,6 +89,11 @@ export const scheduler = Scheduler(
...trees[trees.length - 1].thread,
blocks: showAction(action, description, true)
})
await web.client.chat.postEphemeral({
channel: trees[trees.length - 1].thread.channel,
user,
text: `<@${user}> action complete!`
})
} else {
// Not over yet - delay appropriately with previous delay and new await
let tree = new Results({
Expand Down Expand Up @@ -366,7 +371,6 @@ export class Results {
if (node.break) break
this.thread = result[result.length - 1].thread
}
console.log('runSequence', prev)

return prev
}
Expand Down
2 changes: 1 addition & 1 deletion lib/slack/routes/use.ts
Expand Up @@ -5,7 +5,7 @@ import { scheduler, random, Results, showAction } from '../../queue/use'
import { inMaintainers } from '../../utils'
import slack, { execute, CommandMiddleware } from '../slack'

const ACTION_TEST = ['action-test', 'test888']
const ACTION_TEST = ['action-test']

const sleep = async (seconds: number) =>
new Promise(r => setTimeout(r, seconds * 1000))
Expand Down

0 comments on commit 5d8f673

Please sign in to comment.