mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 00:33:59 +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 = {
|
export type Config = {
|
||||||
owners: string[]
|
owners: string[]
|
||||||
guilds: string[]
|
guilds: string[]
|
||||||
|
moderation?: {
|
||||||
|
log?: {
|
||||||
|
channel: string
|
||||||
|
thread?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rolePresets?: {
|
||||||
|
checkExpiredEvery: number
|
||||||
|
guilds: Record<string, Record<string, RolePresetData>>
|
||||||
|
}
|
||||||
messageScan?: {
|
messageScan?: {
|
||||||
allowedAttachmentMimeTypes: string[]
|
allowedAttachmentMimeTypes: string[]
|
||||||
filter: {
|
filter: {
|
||||||
@@ -29,6 +39,11 @@ export type Config = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type RolePresetData = {
|
||||||
|
give: string[]
|
||||||
|
take: string[]
|
||||||
|
}
|
||||||
|
|
||||||
export type ConfigMessageScanResponse = {
|
export type ConfigMessageScanResponse = {
|
||||||
triggers: {
|
triggers: {
|
||||||
text?: Array<RegExp | ConfigMessageScanResponseLabelConfig>
|
text?: Array<RegExp | ConfigMessageScanResponseLabelConfig>
|
||||||
|
|||||||
@@ -3,6 +3,28 @@ import type { Config } from './config.schema'
|
|||||||
export default {
|
export default {
|
||||||
owners: ['USER_ID_HERE'],
|
owners: ['USER_ID_HERE'],
|
||||||
guilds: ['GUILD_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: {
|
messageScan: {
|
||||||
filter: {
|
filter: {
|
||||||
channels: ['CHANNEL_ID_HERE'],
|
channels: ['CHANNEL_ID_HERE'],
|
||||||
|
|||||||
Reference in New Issue
Block a user