Skip to content

Commit

Permalink
기존 환율 api가 사라져서 다른곳으로 변경해줌
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanIearning committed Jul 6, 2024
1 parent 3c658f4 commit 3f37730
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions automation/discord-bot/fee-bot/webhook-fitcloud-crawl-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@
discord_url = os.environ.get('discord_webhook_url')
total_cost = sum([float(i[1][1:]) for i in source_cost_data])

KRW_url = 'https://quotation-api-cdn.dunamu.com/v1/forex/recent?codes=FRX.KRWUSD'
exchange = requests.get(KRW_url, headers=user_agent).json()
exchange_rate = exchange[0]['basePrice']


KRW_url = 'https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json'
exchange = requests.get(KRW_url).json()
exchange_rate = exchange['usd']['krw']

Content = Embed(
title='aws 요금',
Expand Down

0 comments on commit 3f37730

Please sign in to comment.