Commit 067a77c9 authored by Cool Fire's avatar Cool Fire
Browse files

Use USD rather than BTC to show price of dogecoin.

parent ba5e05ee
Pipeline #2756 passed with stages
in 1 minute and 28 seconds
......@@ -14,7 +14,7 @@ class Dogecoin
@irc = irc
@timer = timer
@api_uri = 'https://api.cryptonator.com/api/ticker/doge-btc'
@api_uri = 'https://api.cryptonator.com/api/ticker/doge-usd'
@last = BigDecimal( "0.0" )
end
......@@ -38,7 +38,7 @@ puts response
rounded = "#{( BigDecimal( result[ 'ticker' ][ 'price' ] ) * 100 ).round / 100.0}"
line = "Cryptonator DOGE/BTC rate: #{rounded} (#{result[ 'ticker' ][ 'price' ]}) (#{ldiff} since last !doge)"
line = "Cryptonator DOGE/USD rate: #{rounded} (#{result[ 'ticker' ][ 'price' ]}) (#{ldiff} since last !doge)"
if( con )
@output.c( line + "\n" )
......@@ -51,7 +51,7 @@ puts response
def help( nick, _user, _host, _from, _msg, _arguments, con )
help = [
"Gets current litecoin values from cryptonator",
" dogecoin - Get DOGE/BTC exchange rate"
" dogecoin - Get DOGE/USD exchange rate"
]
# Print out help
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment