Changing knight to the goons in the boss spawns dict
All checks were successful
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Successful in 2s
Build and push / Build-and-Push-Docker (push) Successful in 53s
Build and push / sync-argocd-app (push) Successful in 4s
Build and push / post-status-to-discord (push) Successful in 2s

This commit is contained in:
Luke Robles 2025-01-18 19:42:08 -08:00
parent 76ab9caa1e
commit 633a22e3fa
2 changed files with 5 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class Tarkov(commands.Cog):
@tarkov.command( @tarkov.command(
guild_ids=core_utils.my_guilds, guild_ids=core_utils.my_guilds,
name="spawns", name="spawns",
description="Boss Boss Spawn Rates", description="Boss Spawn Rates",
) )
async def boss_spawns( async def boss_spawns(
self, self,

View File

@ -51,6 +51,10 @@ def get_tarkov_boss_info():
"USEC", "USEC",
] ]
response = query_tarkov_api(query)["maps"] response = query_tarkov_api(query)["maps"]
for map_data in response:
for boss in map_data["bosses"]:
if boss["boss"]["name"] == "Knight":
boss["boss"]["name"] = "The Goons"
# Wasteful, but make a new dict to hold the info we care about # Wasteful, but make a new dict to hold the info we care about
levels = {} levels = {}