Skip to content

Fix #490: Switch !currency to Frankfurter API#501

Open
Ayushmann13479 wants to merge 3 commits into
ServiceNowDevProgram:mainfrom
Ayushmann13479:fix-currency-converter
Open

Fix #490: Switch !currency to Frankfurter API#501
Ayushmann13479 wants to merge 3 commits into
ServiceNowDevProgram:mainfrom
Ayushmann13479:fix-currency-converter

Conversation

@Ayushmann13479

Copy link
Copy Markdown

Fixes #490

The !currency parser was broken because exchangeratesapi.io
no longer supports free unauthenticated requests (requires
a paid API key since 2021).

Changes:

  • Switched to api.frankfurter.app — a free, no-API-key-required
    exchange rate API
  • Updated the search URL to include both &from= and &to= params
    as required by Frankfurter
  • Properly rounds the converted amount to 2 decimal places

Tested with: !convert 100 USD to EUR

… format

Adds a parser for ServiceNow documentation links.
Updated the API endpoint to use the Frankfurter API and modified the conversion amount to be formatted to two decimal places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

!currency is broken

1 participant