Skip to content

Commit 1599331

Browse files
authored
Update mega_alerts.py (#219)
I think the logic was incorrect, this seems to fix it to only alert when below the defined threshold in mega_data.json
1 parent a77fc07 commit 1599331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mega_alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def check_token_price():
209209
# check if token price is below threshold durring commodity run
210210
if mega_data.TOKEN_PRICE:
211211
token_price = mega_data.get_wow_token_price()
212-
if mega_data.TOKEN_PRICE is not None and mega_data.TOKEN_PRICE > 0:
212+
if token_price and token_price < mega_data.TOKEN_PRICE:
213213
token_embed = create_embed(
214214
f"WoW Token Alert - {mega_data.REGION}",
215215
f"**Token Price:** {token_price:,} gold\n**Threshold:** {mega_data.TOKEN_PRICE:,} gold\n**Region:** {mega_data.REGION}",

0 commit comments

Comments
 (0)