Skip to content

Commit

Permalink
chore: update config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-designer committed Dec 8, 2023
1 parent 687cba0 commit db9fc33
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 1 deletion.
142 changes: 142 additions & 0 deletions config/schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,148 @@
}
},
"additionalProperties": false
},
"verification": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"parameters": {
"type": "object",
"properties": {
"age_less_than": {
"type": "integer",
"default": 259200000
},
"no_avatar": {
"type": "boolean"
},
"always": {
"type": "boolean"
}
},
"additionalProperties": false
},
"unverified_roles": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
},
"verified_roles": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
},
"action_on_fail": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "ban"
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "kick"
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "mute"
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "role"
},
"mode": {
"type": "string",
"enum": [
"give",
"take"
]
},
"roles": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
}
}
},
"required": [
"type",
"mode",
"roles"
],
"additionalProperties": false
}
]
},
"max_attempts": {
"type": "integer",
"default": 0,
"description": "Set this to 0 to allow every attempt"
},
"max_time": {
"type": "integer",
"default": 7200000,
"description": "Set this to 0 to disable time checks"
},
"logging": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"channel": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
}
},
"required": [
"enabled"
],
"additionalProperties": false,
"default": {
"enabled": true
}
}
},
"required": [
"parameters"
],
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion config/schema/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"format": "date-time"
}
],
"default": "2023-12-06T12:13:21.952Z"
"default": "2023-12-08T17:24:09.178Z"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit db9fc33

Please sign in to comment.