diff --git a/.gitignore b/.gitignore index b384df5..5587451 100644 --- a/.gitignore +++ b/.gitignore @@ -177,3 +177,6 @@ dist # DB avocadis_diary.sqlite prod.sqlite + +# vscode specific setttings +.vscode/ \ No newline at end of file diff --git a/adapters/fluxer/src/config/config.schema.ts b/adapters/fluxer/src/config/config.schema.ts new file mode 100644 index 0000000..f5d79f1 --- /dev/null +++ b/adapters/fluxer/src/config/config.schema.ts @@ -0,0 +1,20 @@ +import { + TextChannels, + VoiceChannels, +} from "@avocadi/bot-core/entities/channels/channels.schema"; +import { Roles } from "@avocadi/bot-core/entities/roles/roles.schema"; +import z from "zod"; + +export const ConfigSchema = z.object({ + channelMapping: z.object({ + text: z.record(TextChannels, z.string()), + voice: z.record(VoiceChannels, z.string()), + }), + roleMapping: z.record(Roles, z.string()), + serverId: z.string(), + version: z.number(), + fluxer: z.object({ + token: z.string(), + applicationId: z.string(), + }), +}); diff --git a/adapters/fluxer/src/config/config.ts b/adapters/fluxer/src/config/config.ts new file mode 100644 index 0000000..b682ab3 --- /dev/null +++ b/adapters/fluxer/src/config/config.ts @@ -0,0 +1,43 @@ +import type z from "zod"; +import type { ConfigSchema } from "./config.schema"; + +export const config: z.output = { + channelMapping: { + text: { + bot: "1473270893617315899", + bump: "", + feedback: "", + help: "", + introduction: "1473060169972367394", + news: "", + notification: "1473380467480031548", + "off-topic": "1473029758951358491", + rules: "1473070476174811195", + testing: "", + welcome: "1473270114214928440", + pomodoro: "", + }, + voice: { + custom: "1473379743132119291", + "for-four": "", + "for-group": "", + "for-three": "", + "for-two": "", + "pomodoro-25-5": "", + "pomodoro-50-10": "", + }, + }, + roleMapping: { + admin: "1473247543363493913", + mention: "", + mod: "1473030728028581901", + people: "1473269130013061131", + bot: "1473321354377535512", + }, + serverId: "1473029758951358488", + version: 1, + fluxer: { + token: process.env.FLUXER_TOKEN || "", + applicationId: process.env.FLUXER_APPLICATION_ID || "", + }, +}; diff --git a/bun.lock b/bun.lock index 6c39c60..65b3828 100644 --- a/bun.lock +++ b/bun.lock @@ -1,6 +1,5 @@ { "lockfileVersion": 1, - "configVersion": 1, "workspaces": { "": { "name": "avocadi-bot",