-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Smart
committed
Dec 7, 2022
1 parent
52183dc
commit 0f3712c
Showing
13 changed files
with
192 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
export type { Effect } from "@effect/io/Effect" | ||
export type { Layer } from "@effect/io/Layer" | ||
export type { Schedule } from "@effect/io/Schedule" | ||
export type { Cause } from "@effect/io/Cause" | ||
export type { Chunk } from "@fp-ts/data/Chunk" | ||
export { Context, Tag } from "@fp-ts/data/Context" | ||
export type { Duration } from "@fp-ts/data/Duration" | ||
export type { Equal } from "@fp-ts/data/Equal" | ||
export type { Option as Maybe } from "@fp-ts/data/Option" | ||
export type { Either } from "@fp-ts/data/Either" | ||
export type { Exit } from "@effect/io/Exit" | ||
export type { EffectSource } from "callbag-effect-ts/Source" | ||
export type { EffectSink } from "callbag-effect-ts/Sink" | ||
export type { HashMap } from "@fp-ts/data/HashMap" | ||
export type { Ref } from "@effect/io/Ref" | ||
|
||
export * as Config from "dfx/DiscordConfig/index" | ||
export * as Discord from "dfx/types" | ||
export * as Http from "dfx/Http/index" | ||
export * as Log from "dfx/Log/index" | ||
export * as RateLimitStore from "dfx/RateLimitStore/index" | ||
export * as Rest from "dfx/DiscordREST/index" | ||
export * as Ix from "dfx/Interactions/index" | ||
|
||
export * as Flags from "./Helpers/flags.js" | ||
export * as IxHelpers from "./Helpers/interactions.js" | ||
export * as Intents from "./Helpers/intents.js" | ||
export * as Members from "./Helpers/members.js" | ||
export * as Perms from "./Helpers/permissions.js" | ||
export * as UI from "./Helpers/ui.js" | ||
// export type { Effect } from "@effect/io/Effect" | ||
// export type { Layer } from "@effect/io/Layer" | ||
// export type { Schedule } from "@effect/io/Schedule" | ||
// export type { Cause } from "@effect/io/Cause" | ||
// export type { Chunk } from "@fp-ts/data/Chunk" | ||
// export { Context, Tag } from "@fp-ts/data/Context" | ||
// export type { Duration } from "@fp-ts/data/Duration" | ||
// export type { Equal } from "@fp-ts/data/Equal" | ||
// export type { Option as Maybe } from "@fp-ts/data/Option" | ||
// export type { Either } from "@fp-ts/data/Either" | ||
// export type { Exit } from "@effect/io/Exit" | ||
// export type { EffectSource } from "callbag-effect-ts/Source" | ||
// export type { EffectSink } from "callbag-effect-ts/Sink" | ||
// export type { HashMap } from "@fp-ts/data/HashMap" | ||
// export type { Ref } from "@effect/io/Ref" | ||
// | ||
// export * as Config from "dfx/DiscordConfig/index" | ||
// export * as Discord from "dfx/types" | ||
// export * as Http from "dfx/Http/index" | ||
// export * as Log from "dfx/Log/index" | ||
// export * as RateLimitStore from "dfx/RateLimitStore/index" | ||
// export * as Rest from "dfx/DiscordREST/index" | ||
// export * as Ix from "dfx/Interactions/index" | ||
// | ||
// export * as Flags from "./Helpers/flags.js" | ||
// export * as IxHelpers from "./Helpers/interactions.js" | ||
// export * as Intents from "./Helpers/intents.js" | ||
// export * as Members from "./Helpers/members.js" | ||
// export * as Perms from "./Helpers/permissions.js" | ||
// export * as UI from "./Helpers/ui.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export * as WS from "./DiscordGateway/WS/index.js" | ||
export * as DiscordWS from "./DiscordGateway/DiscordWS/index.js" | ||
export * as Shard from "./DiscordGateway/Shard/index.js" | ||
export * as ShardStore from "./DiscordGateway/ShardStore/index.js" | ||
export * as Gateway from "./DiscordGateway/index.js" | ||
export { run as runIx } from "./Interactions/gateway.js" | ||
|
||
export const LiveRateLimit = | ||
RateLimit.LiveMemoryRateLimitStore > RateLimit.LiveRateLimiter | ||
|
||
export const LiveREST = LiveRateLimit > LiveDiscordREST | ||
|
||
export const LiveGateway = | ||
ShardStore.LiveMemoryShardStore + DiscordWS.LiveJsonDiscordWSCodec > | ||
Gateway.LiveDiscordGateway | ||
|
||
export const LiveBot = LiveREST > LiveGateway | ||
|
||
export const make = (config: Config.MakeOpts, debug = false) => { | ||
const LiveLog = debug ? Log.LiveLogDebug : Log.LiveLog | ||
const LiveConfig = Config.makeLayer(config) | ||
const LiveEnv = LiveLog + LiveConfig > LiveBot | ||
|
||
return LiveEnv | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.