fluxer config

This commit is contained in:
mo
2026-02-17 19:28:23 +01:00
parent 6ce1fdf67d
commit b3766b9584
4 changed files with 66 additions and 1 deletions

3
.gitignore vendored
View File

@@ -177,3 +177,6 @@ dist
# DB # DB
avocadis_diary.sqlite avocadis_diary.sqlite
prod.sqlite prod.sqlite
# vscode specific setttings
.vscode/

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(),
fluxer: 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: "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 || "",
},
};

View File

@@ -1,6 +1,5 @@
{ {
"lockfileVersion": 1, "lockfileVersion": 1,
"configVersion": 1,
"workspaces": { "workspaces": {
"": { "": {
"name": "avocadi-bot", "name": "avocadi-bot",