9
9
10
10
async def main ():
11
11
load_dotenv ()
12
- client = await callofduty .Login (
13
- os .environ ["ATVI_EMAIL" ], os .environ ["ATVI_PASSWORD" ]
14
- )
12
+
13
+ # client = await callofduty.Login(
14
+ # os.environ["ATVI_EMAIL"], os.environ["ATVI_PASSWORD"]
15
+ # )
16
+ # OR
17
+ # client = await callofduty.Login(sso=os.environ["ATVI_SSO"])
15
18
16
19
# season = await client.GetLootSeason(Title.BlackOps4, 3)
17
20
# print(f"{season.title.name}: {season.name}")
@@ -43,10 +46,10 @@ async def main():
43
46
# for account in accounts:
44
47
# print(f"{account.username} ({account.platform.name})")
45
48
46
- # player = await client.GetPlayer(Platform.BattleNet, "Mxtive#1930 ")
49
+ # player = await client.GetPlayer(Platform.BattleNet, "Yeah#11207 ")
47
50
# print(f"{player.username} ({player.platform.name})")
48
51
49
- # player = await client.GetPlayer(Platform.BattleNet, "Mxtive#1930 ")
52
+ # player = await client.GetPlayer(Platform.BattleNet, "Yeah#11207 ")
50
53
# summary = await player.matchesSummary(Title.ModernWarfare, Mode.Warzone, limit=20)
51
54
# print(summary)
52
55
@@ -65,13 +68,13 @@ async def main():
65
68
# print(f"#{entry.rank}: {entry.username} ({entry.platform.name})")
66
69
67
70
# leaderboard = await client.GetPlayerLeaderboard(
68
- # Title.BlackOps4, Platform.BattleNet, "Mxtive#1930 "
71
+ # Title.BlackOps4, Platform.BattleNet, "Yeah#11207 "
69
72
# )
70
73
# for entry in leaderboard.entries:
71
- # if entry.username == "Mxtive#1930 ":
74
+ # if entry.username == "Yeah#11207 ":
72
75
# print(f"#{entry.rank}: {entry.username} ({entry.platform.name})")
73
76
74
- # player = await client.GetPlayer(Platform.Steam, "RdJokr ")
77
+ # player = await client.GetPlayer(Platform.Steam, "Mxtive ")
75
78
# leaderboard = await player.leaderboard(Title.WWII)
76
79
# for entry in leaderboard.entries:
77
80
# if entry.username == player.username:
@@ -112,11 +115,11 @@ async def main():
112
115
# for mode in maps[mapName]:
113
116
# print(f" - {mode}")
114
117
115
- # match = (await client.GetPlayerMatches(Platform.Activision , "Yeah#8649242 ", Title.ModernWarfare, Mode.Warzone, limit=3))[0]
118
+ # match = (await client.GetPlayerMatches(Platform.BattleNet , "Yeah#11207 ", Title.ModernWarfare, Mode.Warzone, limit=3))[0]
116
119
# teams = await match.teams()
117
120
# print(teams)
118
121
119
- # player = await client.GetPlayer(Platform.BattleNet, "Mxtive#1930 ")
122
+ # player = await client.GetPlayer(Platform.BattleNet, "Yeah#11207 ")
120
123
# match = (await player.matches(Title.ModernWarfare, Mode.Multiplayer, limit=3))[1]
121
124
# match = await client.GetMatch(Title.ModernWarfare, Platform.Activision, match.id)
122
125
# teams = await match.teams()
@@ -126,7 +129,7 @@ async def main():
126
129
# details = await match.details()
127
130
# print(details)
128
131
129
- # player = await client.GetPlayer(Platform.BattleNet, "Mxtive#1930 ")
132
+ # player = await client.GetPlayer(Platform.BattleNet, "Yeah#11207 ")
130
133
# match = (await player.matches(Title.ModernWarfare, Mode.Multiplayer, limit=3))[1]
131
134
# match = await client.GetFullMatch(Platform.Activision, Title.ModernWarfare, Mode.Multiplayer, match.id)
132
135
# print(match)
@@ -135,7 +138,7 @@ async def main():
135
138
# for player in results:
136
139
# print(f"{player.username} ({player.platform.name})")
137
140
138
- # player = await client.GetPlayer(Platform.BattleNet, "Mxtive#1930 ")
141
+ # player = await client.GetPlayer(Platform.BattleNet, "Yeah#11207 ")
139
142
# profile = await player.profile(Title.ModernWarfare, Mode.Multiplayer)
140
143
# print(profile)
141
144
@@ -233,7 +236,7 @@ async def main():
233
236
# if member.username != squad.owner.username:
234
237
# print(f"Member: {member.username} ({member.platform.name})")
235
238
236
- # squad = await client.GetPlayerSquad(Platform.Activision, "Yeah#8649242 ")
239
+ # squad = await client.GetPlayerSquad(Platform.Activision, "Yeah#11207 ")
237
240
# print(f"{squad.name} - {squad.description}")
238
241
# print(f"Owner: {squad.owner.username} ({squad.owner.platform.name})")
239
242
# for member in squad.members:
0 commit comments