restructure

move to bun workspaces
bump zod
begin adding fluxer
This commit is contained in:
2026-02-17 18:04:32 +01:00
parent 6608bd6ee7
commit 6ce1fdf67d
79 changed files with 1106 additions and 79 deletions

View File

@@ -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(),
discord: z.object({
token: z.string(),
applicationId: z.string(),
}),
});

View File

@@ -0,0 +1,43 @@
import type z from "zod";
import type { ConfigSchema } from "./config.schema";
export const config: z.output<typeof ConfigSchema> = {
channelMapping: {
text: {
bot: "1317253291633279026",
bump: "1330310075759329412",
feedback: "1321626600185266176",
help: "1321860125127872605",
introduction: "1321473655523246171",
news: "1321953521435934741",
notification: "1321972449365065728",
"off-topic": "1316153372507639855",
rules: "1316153372507639849",
testing: "1451310086864507112",
welcome: "1316153372507639852",
pomodoro: "1369718059824054483",
},
voice: {
custom: "1451323742805561457",
"for-four": "1321563441588207727",
"for-group": "1321607205207805992",
"for-three": "1321563403952721970",
"for-two": "1316153372755234858",
"pomodoro-25-5": "1369717999061438504",
"pomodoro-50-10": "1370518840114544814",
},
},
roleMapping: {
admin: "1321467874220576778",
mention: "1332478785731428372",
mod: "1321468169608757350",
people: "1321470720424939662",
bot: "1321491461111283722",
},
serverId: "1316153371899592774",
version: 1,
discord: {
token: process.env.DISCORD_TOKEN || "",
applicationId: process.env.DISCORD_APPLICATION_ID || "",
},
};