blocktrail / slack-tipbot

Bitcoin Slack Tipbot - using BlockTrail API
https://tipbot.blocktrail.com
70 stars 33 forks source link

[BUG] Convert command is not returning the expected value #6

Closed MiguelBel closed 9 years ago

MiguelBel commented 9 years ago

Using the "convert" command now have a bug. The value returned is not the expected.

When I say to the bot:


convert 100 EUR to USD

it answers:

100.00 EUR (0.39714264 BTC at 251.80 EUR / BTC)

I was expecting something as the quantity (100) in USD and -maybe- some optional info in Bitcoins. I solved it to the bot returning the expected message and now when I execute:

convert 100 EUR to USD

it returns:

110.35 USD (277.86 USD / BTC)

I do not see any reason to use the elseif which I deleted

rubensayshi commented 9 years ago

sweet, bit odd that it uses EUR -> BTC -> USD, but it works :P