Skip to content

Commit a6f973b

Browse files
authored
Fix for frozen zones (#31)
* Update raid images * Make a raidreport even for a frozen zones
1 parent 4543d05 commit a6f973b

2 files changed

Lines changed: 19 additions & 23 deletions

File tree

slao_bot/cogs/raidreport.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ async def process_interaction(self, report_id: str, **kwargs: Any) -> Optional[d
9494
embed.set_author(name=report_owner, url=report_url, icon_url=author_icon)
9595
embed.set_image(url=ZONE_IMAGES.get(Report.get_report_zone_id(rs), ZONE_IMAGES.get(0)))
9696

97-
if rs['reportData']['report']['zone']['frozen']:
98-
return
99-
10097
# Add bosses, speed and execution
10198
self._make_fights(rs, embed)
10299
# Add raiders

slao_bot/utils/constants.py

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,44 +51,43 @@ class Role(str, Enum):
5151
}
5252

5353
ZONE_IMAGES = {
54-
0: 'https://cdn.discordapp.com/attachments/762790105026920468/841635457941897216/raids.png',
54+
0: 'https://raid-helper.dev/uploads/banners/gw2/raids.png',
5555
# Molten Core
56-
1000: 'https://cdn.discordapp.com/attachments/762790105026920468/762790308844273714/image0.jpg',
56+
1000: 'https://raid-helper.dev/uploads/banners/classic/image0.jpg',
5757
# Onyxia
58-
1001: 'https://cdn.discordapp.com/attachments/762790105026920468/762790309100388382/image1.jpg',
58+
1001: 'https://raid-helper.dev/uploads/banners/classic/image1.jpg',
5959
# BWL
60-
1002: 'https://cdn.discordapp.com/attachments/762790105026920468/762790309376688128/image2.jpg',
60+
1002: 'https://raid-helper.dev/uploads/banners/classic/image2.jpg',
6161
# ZG
62-
1003: 'https://cdn.discordapp.com/attachments/762790105026920468/763170902271197204/RH-ZG2.png',
62+
1003: 'https://raid-helper.dev/uploads/banners/classic/RH-ZG2.png',
6363
# AQ20
64-
1004: 'https://cdn.discordapp.com/attachments/762790105026920468/763170907035533362/RH-AQ20-1.png',
64+
1004: 'https://raid-helper.dev/uploads/banners/classic/RH-AQ20.png',
6565
# AQ40
66-
1005: 'https://cdn.discordapp.com/attachments/762790105026920468/763170914220900392/RH-AQ40-1.png',
66+
1005: 'https://raid-helper.dev/uploads/banners/classic/RH-AQ40-1.png',
6767
# Naxramas
68-
1006: 'https://media.discordapp.net/attachments/762790105026920468/773622157456572486/RH-Naxx-2.png',
68+
1006: 'https://raid-helper.dev/uploads/banners/classic/RH-Naxx-3.png',
6969
# Karazhan
70-
1007: 'https://cdn.discordapp.com/attachments/762790105026920468/843540146379948042/RH-TBC-Karazhan1-1200x300.png',
70+
1007: 'https://raid-helper.dev/uploads/banners/tbc/RH-TBC-Karazhan1-1200x300.png',
7171
# Gruul + Magtheridon
72-
1008: 'https://cdn.discordapp.com/attachments/762790105026920468/'
73-
'876774093943349258/RH-TBC-GruulMaggie_1200x300.png',
72+
1008: 'https://raid-helper.dev/uploads/banners/tbc/RH-TBC-GruulMaggie_1200x300.png',
7473
# Heroics
75-
1009: 'https://cdn.discordapp.com/attachments/762790105026920468/841635106954149898/dungeons.png',
74+
1009: 'https://raid-helper.dev/uploads/banners/retail/RH-MYTHICS-1.png',
7675
# SSK + TK
77-
1010: 'https://cdn.discordapp.com/attachments/762790105026920468/887556750134374420/EyeAndSSCpng.png',
76+
1010: 'https://raid-helper.dev/uploads/banners/tbc/RH-TBC-SSCTK_1200x300.png',
7877
# BT
79-
1011: 'https://cdn.discordapp.com/attachments/762790105026920468/935942801642905600/RH-TBC-MTBT2_1200x300.png',
78+
1011: 'https://raid-helper.dev/uploads/banners/tbc/RH-TBC-MTBT2_1200x300.png',
8079
# ZA
81-
1012: 'https://cdn.discordapp.com/attachments/762790105026920468/951451058985652264/RH-TBC-ZA1_1200x300.png',
80+
1012: 'https://raid-helper.dev/uploads/banners/tbc/RH-TBC-ZA1_1200x300.png',
8281
# SWP
83-
1013: 'https://cdn.discordapp.com/attachments/762790105026920468/773981418052386866/8._TBC_SWP.png',
82+
1013: 'https://raid-helper.dev/uploads/banners/tbc/RH-TBC-SWP1_1200x300.png',
8483
# WotLK Heroics
85-
1014: 'https://cdn.discordapp.com/attachments/762790105026920468/841635106954149898/dungeons.png',
84+
1014: 'https://raid-helper.dev/uploads/banners/retail/RH-MYTHICS-1.png',
8685
# Naxx, Sart, Maly
87-
1015: 'https://cdn.discordapp.com/attachments/776184190743216128/1029314252177166346/naxx1.png',
86+
1015: 'https://raid-helper.dev/uploads/banners/wotlk/RH-Wrath-P1Raids_1200x300.png',
8887
# Archavon
89-
1016: 'https://cdn.discordapp.com/attachments/776184190743216128/1030423276092149801/vault.png',
88+
1016: 'https://raid-helper.dev/uploads/banners/wotlk/RH-Wrath-VoA1_1200x300.png',
9089
# Ulduar
91-
1017: 'https://cdn.discordapp.com/attachments/762790105026920468/1064611612188754090/ulduar_3.png',
90+
1017: 'https://raid-helper.dev/uploads/banners/wotlk/ulduar_3.png',
9291
# ToC
9392
1018: 'https://cdn.discordapp.com/attachments/762790105026920468/1121486358117109912/ToC_Banner.png',
9493
# Ony-80

0 commit comments

Comments
 (0)