Files
revanced-bots/bots/discord/config.js
PalmDevs 646ec8da87 feat(bots/discord): framework changes and new features
- Migrated to a new command framework which looks better and works better
- Fixed commands not being bundled correctly
- Added message (prefix) commands with argument validation
- Added a new CommandErrorType, for invalid arguments
- `/eval` is now a bit safer
- Corrected colors for the coinflip embed
- `/stop` now works even when the bot is not connected to the API
2024-07-30 21:15:36 +07:00

106 lines
2.9 KiB
JavaScript

// @ts-check
/**
* @type {import('./config.schema').Config}
*/
export default {
prefix: '!',
admin: {
users: ['USER_ID_HERE'],
roles: {
GUILD_ID_HERE: ['ROLE_ID_HERE'],
},
},
moderation: {
cure: {
defaultName: 'Server member',
},
roles: ['ROLE_ID_HERE'],
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: {
scanBots: false,
scanOutsideGuilds: false,
filter: {
whitelist: {
channels: ['CHANNEL_ID_HERE'],
roles: ['ROLE_ID_HERE'],
users: ['USER_ID_HERE'],
},
blacklist: {
channels: ['CHANNEL_ID_HERE'],
roles: ['ROLE_ID_HERE'],
users: ['USER_ID_HERE'],
},
},
humanCorrections: {
falsePositiveLabel: 'false_positive',
allow: {
members: {
permissions: 8n,
roles: ['ROLE_ID_HERE'],
},
},
},
allowedAttachmentMimeTypes: ['image/jpeg', 'image/png', 'image/webp'],
responses: [
{
filterOverride: {
whitelist: {
channels: ['CHANNEL_ID_HERE'],
roles: ['ROLE_ID_HERE'],
users: ['USER_ID_HERE'],
},
blacklist: {
channels: ['CHANNEL_ID_HERE'],
roles: ['ROLE_ID_HERE'],
users: ['USER_ID_HERE'],
},
},
triggers: {
text: [/^regexp?$/, { label: 'label', threshold: 0.85 }],
},
response: {
embeds: [
{
title: 'Embed title',
description: 'Embed description',
fields: [
{
name: 'Field name',
value: 'Field value',
},
],
},
],
},
},
],
},
logLevel: 'log',
api: {
url: 'ws://127.0.0.1:3000',
disconnectLimit: 3,
disconnectRetryInterval: 10000,
},
}