module Bitbot::Ticker
Public Instance Methods
on_ticker(m, curr)
click to toggle source
# File lib/bitbot/plugin/ticker.rb, line 2 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