AutoMod/bot/src/struct/ServerConfig.ts

32 lines
1 KiB
TypeScript
Raw Normal View History

2021-10-10 15:33:21 +02:00
import AutomodSettings from "./antispam/AutomodSettings";
import LogConfig from "./LogConfig";
2021-10-10 15:33:21 +02:00
2021-10-09 22:20:06 +02:00
class ServerConfig {
id: string | undefined;
prefix: string | undefined;
spaceAfterPrefix: boolean | undefined;
2021-10-10 15:33:21 +02:00
automodSettings: AutomodSettings | undefined;
botManagers: string[] | undefined;
2021-10-13 18:27:19 +02:00
moderators: string[] | undefined;
2022-03-16 23:55:50 +01:00
votekick: {
enabled: boolean;
votesRequired: number;
banDuration: number; // -1: Only kick, 0: Permanent, >0: Ban duration in minutes
trustedRoles: string[];
} | undefined;
linkedServer: string | undefined;
2021-10-11 17:27:50 +02:00
whitelist: {
users: string[] | undefined,
roles: string[] | undefined,
managers: boolean | undefined,
} | undefined;
2021-10-14 13:25:13 +02:00
logs: {
messageUpdate?: LogConfig, // Message edited or deleted
modAction?: LogConfig, // User warned, kicked or banned
userScan?: LogConfig // User profile matched word list
2021-12-09 22:04:33 +01:00
} | undefined;
enableUserScan?: boolean;
2021-10-09 22:20:06 +02:00
}
export default ServerConfig;