forked from kantek/kantek
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.schema.json
103 lines (103 loc) · 3.09 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"$id": "https://src.kv2.dev/config.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Kantek Config",
"type": "object",
"required": [
"api_id",
"api_hash",
"db_password",
"log_bot_token",
"log_channel_id"
],
"properties": {
"api_id": {
"type": "integer",
"description": "Get it from http://my.telegram.org/"
},
"api_hash": {
"type": "string",
"description": "Get it from http://my.telegram.org/"
},
"db_type": {
"type": "string",
"description": "The database to use. Only `postgres` is supported currently.",
"default": "postgres"
},
"db_username": {
"type": "string",
"description": "The database username",
"default": "kantek"
},
"db_name": {
"type": "string",
"description": "The database name",
"default": "kantek"
},
"db_password": {
"type": "string",
"description": "The database password"
},
"db_host": {
"type": "string",
"description": "The database host",
"default": "127.0.0.1"
},
"db_port": {
"type": "string",
"description": "The database port."
},
"log_bot_token": {
"type": "string",
"description": "The bot token for the bot that logs into the log channel"
},
"log_channel_id": {
"type": "integer",
"description": "The channel id for the log bot"
},
"gban_group": {
"type": "integer",
"description": "The group where gban and fban commands are sent to"
},
"prefix": {
"type": "string",
"description": "The command prefix you want to use",
"default": "."
},
"prefixes": {
"type": "array",
"description": "A list of command prefixed you want to use",
"default": [
"."
]
},
"session_name": {
"type": "string",
"description": "The name of the bots session",
"default": "kantek-session"
},
"spamwatch_host": {
"type": "string",
"description": "The host of the SpamWatch API",
"default": "https://api.spamwat.ch"
},
"spamwatch_token": {
"type": "string",
"description": "The token for the SpamWatch API"
},
"debug_mode": {
"type": "boolean",
"description": "The token for the SpamWatch API",
"default": false
},
"kill_command": {
"type": "string",
"description": "The command to be used when running .kill"
},
"source_url": {
"type": "string",
"description": "The url to be used when linking the git repository",
"default": "src.kv2.dev"
}
}
}