-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutilities.py
111 lines (108 loc) · 3.28 KB
/
utilities.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
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
def leagueRegionIdentifier(region):
match region:
case "North America":
return "na1"
case "Europe West":
return "EUW1"
case "Europe Nordic & East":
return "EUN1"
case "Oceania":
return "OC1"
case "Korea":
return "KR"
case "Japan":
return "JP1"
case "Brazil":
return "BR1"
case "LAS":
return "LA1"
case "LAN":
return "LA2"
case "Russia":
return "RU"
case "Turkey":
return "TR1"
def matchIdentifier(region):
match region:
case ("North America"|"Brazil"|"LAN"|"LAS"):
return "Americas"
case ("Europe West"|"Europe Nordic & East"|"Turkey"|"Russia"):
return "Europe"
case "Oceania":
return "Sea"
case ("Korea"|"Japan"):
return "Asia"
def valorantRegionIdentifier(region):
match region:
case "Asia Pacific":
return "ap"
case "Brazil":
return "br"
case "Europe":
return "eu"
case "Korea":
return "kr"
case "Latam":
return "latam"
case "North America":
return "na"
def orgIdentifier(org):
match org:
case "Version 1" | "V1":
return "version1"
case "Cloud 9":
return "c9"
case "Tsm" | "Team Solo Mid" | "tsm":
return "TSM"
case "Optic" | "Optic Gaming" | "optic" | "optic gaming":
return "OpTic Gaming"
case "Loud" | "loud":
return "LOUD"
case "Guild" | "guild":
return "Guild Esports"
case "Fpx" | "Fun Plus Phoenix" "fun plus phoenix" | "fpx":
return "FunPlus Phoenix"
case "Leviatan" | "leviatan":
return "Leviatán"
case "Xset" | "xset":
return "XSET"
case "Kru" | "KRU Esports" | "kru" | "kru esports":
return "KRÜ_Esports"
case "Tl" | "tl" | "team liquid":
return "Team Liquid"
case "100T" | "100t" | "100 thieves":
return "100 Thieves"
case "Zeta" | "Zeta Division":
return "ZETA_DIVISION"
case "Faze" | "Faze clan" | "Faze Clan" | "faze clan" | "faze":
return "FaZe Clan"
case "Imt":
return "Immortals"
case "Geng" | "Gen.g" | "Geng Esports" | "geng":
return "Gen.G_Esports"
case "paper rex":
return "Paper Rex"
case "x10" | "X10":
return "X10_Esports"
case "xerxia":
return "XERXIA"
case "crazy raccoon":
return "Crazy_Raccoon"
case "supermassive blaze":
return "SuperMassive_Blaze"
case "nrg":
return "NRG"
case "team vikings":
return "Team_Vikings"
case "g2" | "G2":
return "G2_Esports"
case "counter logic gaming red" | "clg red":
return "Counter_Logic_Gaming_Red"
case "gambit" | "gambit esports":
return "Gambit Esports"
case "edward gaming" | "edg":
return "EDward Gaming"
case "the guard":
return "The Guard"
case _:
return None