Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

환율 정보 제공 #2

Open
jeyraof opened this issue Sep 29, 2020 · 0 comments
Open

환율 정보 제공 #2

jeyraof opened this issue Sep 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jeyraof
Copy link
Member

jeyraof commented Sep 29, 2020

Description

메세지의 내용에 미리 정의된 통화 심볼이 존재하면 계산해서 알려준다.

Reference

QOLPlus/core#3

Proposal

통화의 capture 는 predefined currency list 를 기반으로 한 compiled regex 를 구성하여 이용한다.

  • ex) r'(USD|JPY|...)'

숫자 부의 caputre 는 연구가 필요. comma separated 도 지원을 할까?

단순 조회

  • 💬 USD
    🤖 1 USD => 1,169 KRW (KEB 2020.09.29-213)
  • 💬 요즘 USD 너무 오르락 내리락 한다
    🤖 1 USD => 1,169 KRW (KEB 2020.09.29-213)

환산 조회

  • 💬 rtx 3080 가격이 699USD 인듯?
    🤖 699 USD => 816,837 KRW (KEB 2020.09.29-213)
  • 💬 1673 USD
    🤖 1673 USD => 1,955,034 KRW (KEB 2020.09.29-213)

변환 조회

기본적으로는 단순 조회변환 조회 를 따르지만, 기초통화 뒤에 변환 통화가 위치하면 변환된 값을 전달한다.

  • 💬 USD JPY
    🤖 1 USD => 106 JPY (KEB 2020.09.29-213)
  • 💬 699 USD JPY
    🤖 699 USD => 73,807 JPY (KEB 2020.09.29-213)
@jeyraof jeyraof added the enhancement New feature or request label Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant