Channel Configuration UI WIP

This commit is contained in:
John Livingston
2023-09-21 19:32:47 +02:00
parent cc673bd3cb
commit aa71a302f6
6 changed files with 296 additions and 53 deletions

View File

@ -53,10 +53,25 @@ interface ChannelInfos {
}
interface ChannelConfigurationOptions {
bot: boolean
botNickname?: string
forbiddenWords: string[]
// TODO: bannedJIDs: string[]
bot: {
enabled: boolean
nickname?: string
forbiddenWords: Array<{
entries: string[]
regexp?: boolean
applyToModerators?: boolean
reason?: string
}>
quotes: Array<{
messages: string[]
delay: number
}>
commands: Array<{
command: string
message: string
}>
// TODO: bannedJIDs: string[]
}
}
interface ChannelConfiguration {