Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed May 1, 2023
1 parent 33c72c0 commit f447cea
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 28 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@types/node": "^18.16.2",
"@types/node": "^18.16.3",
"prettier": "^2.8.8",
"tsc-watch": "^6.0.1",
"tsc-watch": "^6.0.4",
"typescript": "^5.0.4"
},
"dependencies": {
"@effect/data": "^0.12.2",
"@effect/io": "^0.25.8",
"dfx": "^0.41.0",
"dfx": "^0.42.0",
"dotenv": "^16.0.3",
"openai": "^3.2.1"
}
Expand Down
36 changes: 18 additions & 18 deletions pnpm-lock.yaml

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

12 changes: 5 additions & 7 deletions src/AutoThreads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Layer,
Option,
Schedule,
flow,
millis,
pipe,
seconds,
Expand Down Expand Up @@ -175,12 +174,11 @@ const make = Effect.gen(function* ($) {
title: Ix.modalValue("title"),
context: Ix.Interaction,
}),
Effect.flatMap(({ title, context }) =>
rest.modifyChannel(context.channel_id!, { name: title }),
),
Effect.tap(_ =>
Effect.flatMap(_.json, channel =>
channels.set(channel.guild_id!, channel.id, channel),
Effect.tap(({ title, context }) =>
pipe(
rest.modifyChannel(context.channel_id!, { name: title }),
Effect.flatMap(_ => _.json),
Effect.tap(channels.put),
),
),
Effect.as(
Expand Down

0 comments on commit f447cea

Please sign in to comment.