BTC price output cleanup.
This commit is contained in:
parent
35399c3f78
commit
1f965a1833
3 changed files with 5 additions and 5 deletions
|
@ -123,7 +123,7 @@ class Bitcoin(bot: Mobibot) : ThreadedModule(bot) {
|
|||
val bpi = json.getJSONObject(currency.trim().uppercase())
|
||||
val symbol = bpi.getString("symbol");
|
||||
with(messages) {
|
||||
add(PublicMessage("BITCOIN: $symbol" + bpi.getDecimal("last") + " [$currency]"))
|
||||
add(PublicMessage("Bitcoin [BTC]: $symbol" + bpi.getDecimal("last") + " [$currency]"))
|
||||
if (bpi.getBigDecimal("15m") != bpi.getBigDecimal("last")) {
|
||||
add(NoticeMessage(" 15m: $symbol" + bpi.getDecimal("15m")))
|
||||
add(NoticeMessage(" Buy: $symbol" + bpi.getDecimal("buy")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue