mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
feat(bots/discord): update config
This commit is contained in:
@@ -3,6 +3,16 @@ import type { APIEmbed } from 'discord.js'
|
||||
export type Config = {
|
||||
owners: string[]
|
||||
guilds: string[]
|
||||
moderation?: {
|
||||
log?: {
|
||||
channel: string
|
||||
thread?: string
|
||||
}
|
||||
}
|
||||
rolePresets?: {
|
||||
checkExpiredEvery: number
|
||||
guilds: Record<string, Record<string, RolePresetData>>
|
||||
}
|
||||
messageScan?: {
|
||||
allowedAttachmentMimeTypes: string[]
|
||||
filter: {
|
||||
@@ -29,6 +39,11 @@ export type Config = {
|
||||
}
|
||||
}
|
||||
|
||||
export type RolePresetData = {
|
||||
give: string[]
|
||||
take: string[]
|
||||
}
|
||||
|
||||
export type ConfigMessageScanResponse = {
|
||||
triggers: {
|
||||
text?: Array<RegExp | ConfigMessageScanResponseLabelConfig>
|
||||
|
||||
@@ -3,6 +3,28 @@ import type { Config } from './config.schema'
|
||||
export default {
|
||||
owners: ['USER_ID_HERE'],
|
||||
guilds: ['GUILD_ID_HERE'],
|
||||
moderation: {
|
||||
log: {
|
||||
channel: 'CHANNEL_ID_HERE',
|
||||
// Optional
|
||||
thread: 'THREAD_ID_HERE',
|
||||
},
|
||||
},
|
||||
rolePresets: {
|
||||
guilds: {
|
||||
GUILD_ID_HERE: {
|
||||
preset: {
|
||||
give: ['ROLE_ID_HERE'],
|
||||
take: ['ROLE_ID_HERE'],
|
||||
},
|
||||
anotherPreset: {
|
||||
give: ['ROLE_ID_HERE'],
|
||||
take: ['ROLE_ID_HERE'],
|
||||
},
|
||||
},
|
||||
},
|
||||
checkExpiredEvery: 3600,
|
||||
},
|
||||
messageScan: {
|
||||
filter: {
|
||||
channels: ['CHANNEL_ID_HERE'],
|
||||
|
||||
Reference in New Issue
Block a user