old-automod/bot/src/struct/ServerConfig.ts

32 lines
903 B
TypeScript
Raw Normal View History

2021-10-10 13:33:21 +00:00
import AutomodSettings from "./antispam/AutomodSettings";
import LogConfig from "./LogConfig";
2021-10-10 13:33:21 +00:00
2021-10-09 20:20:06 +00:00
class ServerConfig {
2022-04-09 11:03:12 +00:00
id: string;
prefix?: string;
spaceAfterPrefix?: boolean;
automodSettings?: AutomodSettings;
botManagers?: string[];
moderators?: string[];
votekick?: {
2022-03-16 22:55:50 +00:00
enabled: boolean;
votesRequired: number;
banDuration: number; // -1: Only kick, 0: Permanent, >0: Ban duration in minutes
trustedRoles: string[];
2022-04-09 11:03:12 +00: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 11:03:12 +00:00
};
enableUserScan?: boolean;
2021-10-09 20:20:06 +00:00
}
export default ServerConfig;