-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconst.py
41 lines (39 loc) · 944 Bytes
/
const.py
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
from collections import defaultdict
from avilla.core.platform import Abstract, Land, Platform
PRIVILEGE_TRANS = defaultdict(
lambda: "read",
{
1: "read",
2: "manage",
3: "read+manage",
4: "speak",
5: "read+speak",
6: "manage+speak",
7: "read+manage+speak",
8: "live",
9: "read+live",
10: "manage+live",
11: "read+manage+live",
12: "speak+live",
13: "read+speak+live",
14: "manage+speak+live",
15: "read+manage+speak+live",
},
)
PLATFORM = Platform(
Land(
"qqapi",
[{"name": "Tencent"}],
humanized_name="QQ API",
),
Abstract(
"qq-api-official",
[{"name": "Tencent"}],
humanized_name="QQ API",
),
Abstract(
"qqapi",
[{"name": "GraiaProject"}],
humanized_name="QQ/QQ-Guild Protocol for Avilla, use offical API",
),
)