Sha256: fb99b24beec816026de5f45b5af03c9f904177975c1698fcea745331519aeaf7

Contents?: true

Size: 470 Bytes

Versions: 10

Compression:

Stored size: 470 Bytes

Contents

module Bitbot::Ticker
  def on_ticker(m, curr)
  # 'curr' can be any of GBP|EUR|USD
    @curr = curr
    if curr == GBP
  # GBP ticker 
    m.reply "Current BTC➜GBP Exchange Rate from blockchain.info is #{satoshi_to_gbp}
    elsif curr == EUR
  # EUR ticker
    m.reply "Current BTC➜EUR Exchange Rate from blockchain.info is #{satoshi_to_eur}  
    else
  # USD ticker
    m.reply "Current BTC➜USD Exchange Rate from blockchain.info is #{satoshi_to_usd}
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tipjar-0.1.196 lib/bitbot/plugin/ticker.rb
tipjar-0.1.195 lib/bitbot/plugin/ticker.rb
tipjar-0.1.194 lib/bitbot/plugin/ticker.rb
tipjar-0.1.193 lib/bitbot/plugin/ticker.rb
tipjar-0.1.192 lib/bitbot/plugin/ticker.rb
tipjar-0.1.191 lib/bitbot/plugin/ticker.rb
tipjar-0.1.19 lib/bitbot/plugin/ticker.rb
tipjar-0.1.18 lib/bitbot/plugin/ticker.rb
tipjar-0.1.171 lib/bitbot/plugin/ticker.rb
tipjar-0.1.16 lib/bitbot/plugin/ticker.rb