-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample_config.py
More file actions
161 lines (129 loc) · 2.92 KB
/
example_config.py
File metadata and controls
161 lines (129 loc) · 2.92 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
from datetime import timedelta
config = {
# [START]
"bot": {
# Bot API token
# type: str
"token": "",
# List of admin's user IDs
# type: list[int]
"admins": [],
# Chat ID of the logging chat
# type: int
"logging_chat_id": 0,
# Minimum time delta before syncing database to storage
# type: timedelta
"database_sync_delta": timedelta(minutes=5),
},
"bridgey": {
# Enable bridging
# type: bool
"enabled": False,
# List of pools (don't change pools and platforms name after you start the bridge)
# type: dict[str, dict[str, dict]]
"pools": {
"example": {
"discord": {
# The name of the platform
# type: str
"platform": "Discord",
# Bot token
# type: str
"token": "",
# ID of the channel to bridge
# type: int
"channel_id": 0,
},
"matrix": {
# The name of the platform
# type: str
"platform": "Matrix",
# User ID of the bot account (e.g. @user:matrix.org)
# type: str
"username": "",
# Password of the bot account
# type: str
"password": "",
# URL of the Matrix server (e.g. https://matrix.org)
# type: str
"homeserver_url": "",
# The alias of the room you want to bridge (e.g. #room:matrix.org)
# type: str
"room_alias": "",
},
"telegram": {
# The name of the platform
# type: str
"platform": "Telegram",
# ID of the chat to bridge
# type: int
"chat_id": 0,
},
},
},
},
"ci": {
# Main directory where all jobs will read/write from/to
# type: str
"main_dir": "",
# Chat ID of the chat where the bot will send the messages
# type: int
"chat_id": 0,
# Whether to upload artifacts or not
# type: bool
"upload_artifacts": False,
# Enable ccache
# type: bool
"enable_ccache": False,
# Path to ccache executable
# type: str
"ccache_exec": "",
# Path to ccache files
# type: str
"ccache_dir": "",
# Upload profiles
# type: dict[str, dict]
"upload_profiles": {
"default": {
# Method to use for uploading artifacts
# type: str
"method": "",
# Absolute path to the directory where artifacts will be uploaded
# type: str
"base_dir": "",
# If it's a remote method, the server address
# type: str
"host": "",
# If it's a remote method, the TCP port
# type: int
"port": 0,
# If it's a remote method, the username used for authentication
# type: str
"username": "",
# If it's a remote method, the password used for authentication
# type: str
"password": "",
},
},
},
"translate": {
# DeepL API key
# type: str
"deepl_api_key": "",
},
"twrpdtgen": {
# GitHub username
# type: str
"github_username": "",
# GitHub token
# type: str
"github_token": "",
# GitHub organization
# type: str
"github_org": "",
# Chat ID where generated device trees info will be sent
# type: int
"chat_id": 0,
},
# [END]
}