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 Apr 25, 2023
1 parent a873e13 commit eeccedc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@types/node": "^18.16.0",
"@types/node": "^18.16.1",
"prettier": "^2.8.8",
"typescript": "^5.0.4"
},
"dependencies": {
"@effect/data": "^0.12.2",
"@effect/io": "^0.25.6",
"dfx": "^0.36.4",
"@effect/io": "^0.25.7",
"dfx": "^0.37.0",
"dotenv": "^16.0.3"
}
}
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

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

12 changes: 10 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { AutoThreads, AutoThreadsLive } from "bot/AutoThreads"
import { Config, Effect, Layer, pipe } from "bot/_common"
import { Intents, Ix } from "dfx"
import { makeLive, runIx } from "dfx/gateway"
import { DiscordGateway, makeLive, runIx } from "dfx/gateway"
import * as Dotenv from "dotenv"
import { ChannelsCache, ChannelsCacheLive } from "./ChannelsCache.js"

Dotenv.config()

const program = Effect.gen(function* ($) {
const gateway = yield* $(DiscordGateway)
const channels = yield* $(ChannelsCache)
const autoThreads = yield* $(AutoThreads)

Expand All @@ -16,7 +17,14 @@ const program = Effect.gen(function* ($) {
runIx(Effect.catchAllCause(Effect.logErrorCause)),
)

yield* $(Effect.allParDiscard(channels.run, autoThreads.run, runInteractions))
yield* $(
Effect.allParDiscard(
gateway.run,
channels.run,
autoThreads.run,
runInteractions,
),
)
})

const BotLive = makeLive({
Expand Down

0 comments on commit eeccedc

Please sign in to comment.