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