AutoMod/bot/src/struct/ServerConfig.ts

32 lines
903 B
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 {
2022-04-09 13:03:12 +02:00
id: string;
prefix?: string;
spaceAfterPrefix?: boolean;
automodSettings?: AutomodSettings;
botManagers?: string[];
moderators?: string[];
votekick?: {
2022-03-16 23:55:50 +01:00
enabled: boolean;
votesRequired: number;
banDuration: number; // -1: Only kick, 0: Permanent, >0: Ban duration in minutes
trustedRoles: string[];
2022-04-09 13:03:12 +02:00
};
linkedServer?: string;
whitelist?: {
users?: string[],
roles?: string[],
managers?: boolean,
};
logs?: {
messageUpdate?: LogConfig, // Message edited or deleted
modAction?: LogConfig, // User warned, kicked or banned
userScan?: LogConfig // User profile matched word list
2022-04-09 13:03:12 +02:00
};
enableUserScan?: boolean;
2021-10-09 22:20:06 +02:00
}
export default ServerConfig;