fluxer config
This commit is contained in:
20
adapters/fluxer/src/config/config.schema.ts
Normal file
20
adapters/fluxer/src/config/config.schema.ts
Normal 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(),
|
||||
}),
|
||||
});
|
||||
43
adapters/fluxer/src/config/config.ts
Normal file
43
adapters/fluxer/src/config/config.ts
Normal 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 || "",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user