mirror of
https://github.com/LBRYFoundation/lbry-tipbot.git
synced 2025-08-23 16:57:24 +00:00
add IDR from cryptocompare api
This commit is contained in:
parent
a4382734ae
commit
cd345dc6a2
1 changed files with 4 additions and 2 deletions
|
@ -29,6 +29,7 @@ var options = {
|
||||||
SGD: { steps: ['LBCBTC', 'BTCSGD'], format: '$0,0.00' },
|
SGD: { steps: ['LBCBTC', 'BTCSGD'], format: '$0,0.00' },
|
||||||
THB: { steps: ['LBCBTC', 'BTCTHB'], format: '฿0,0.00' },
|
THB: { steps: ['LBCBTC', 'BTCTHB'], format: '฿0,0.00' },
|
||||||
TWD: { steps: ['LBCBTC', 'BTCTWD'], format: 'NT$0,0.00' },
|
TWD: { steps: ['LBCBTC', 'BTCTWD'], format: 'NT$0,0.00' },
|
||||||
|
IDR: { steps: ['LBCBTC', 'BTCIDR'], format: 'Rp0,0.00' },
|
||||||
BTC: { steps: ['LBCBTC'], format: '0,0[.][00000000] BTC' }
|
BTC: { steps: ['LBCBTC'], format: '0,0[.][00000000] BTC' }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -56,7 +57,8 @@ var options = {
|
||||||
BTCSEK: { url: 'https://blockchain.info/ticker', path: '$.SEK.buy' },
|
BTCSEK: { url: 'https://blockchain.info/ticker', path: '$.SEK.buy' },
|
||||||
BTCSGD: { url: 'https://blockchain.info/ticker', path: '$.SGD.buy' },
|
BTCSGD: { url: 'https://blockchain.info/ticker', path: '$.SGD.buy' },
|
||||||
BTCTHB: { url: 'https://blockchain.info/ticker', path: '$.THB.buy' },
|
BTCTHB: { url: 'https://blockchain.info/ticker', path: '$.THB.buy' },
|
||||||
BTCTWD: { url: 'https://blockchain.info/ticker', path: '$.TWD.buy' }
|
BTCTWD: { url: 'https://blockchain.info/ticker', path: '$.TWD.buy' },
|
||||||
|
BTCIDR: { url: 'https://min-api.cryptocompare.com/data/price?fsym=LBC&tsyms=IDR', path: '$.IDR'}
|
||||||
},
|
},
|
||||||
|
|
||||||
// display date/time format
|
// display date/time format
|
||||||
|
@ -128,7 +130,7 @@ function doHelp(bot, channel) {
|
||||||
'`' + command + ' help`: this message\n' +
|
'`' + command + ' help`: this message\n' +
|
||||||
'`' + command + ' CURRENCY`: show the price of 1 LBC in CURRENCY. Supported values for CURRENCY are Listed Below\n' +
|
'`' + command + ' CURRENCY`: show the price of 1 LBC in CURRENCY. Supported values for CURRENCY are Listed Below\n' +
|
||||||
'`' + command + ' CURRENCY AMOUNT`: show the price of AMOUNT LBC in CURRENCY\n' +
|
'`' + command + ' CURRENCY AMOUNT`: show the price of AMOUNT LBC in CURRENCY\n' +
|
||||||
'`Supported Currencies:` *usd*, *gbp*, *eur*, *aud*, *brl*, *cad*, *chf*, *clp*, *cny*, *dkk*, *hkd*, *inr*, *isk*, *jpy*, *krw*, *nzd*, *pln* ,*rub*, *sek*, *sgd*, *thb*, *twd* and *btc* (case-insensitive)';
|
'`Supported Currencies:` *usd*, *gbp*, *eur*, *aud*, *brl*, *cad*, *chf*, *clp*, *cny*, *dkk*, *hkd*, *inr*, *isk*, *jpy*, *krw*, *nzd*, *pln* ,*rub*, *sek*, *sgd*, *thb*, *twd*, *idr* and *btc* (case-insensitive)';
|
||||||
|
|
||||||
if (!channel.startsWith("D")) {
|
if (!channel.startsWith("D")) {
|
||||||
message =
|
message =
|
||||||
|
|
Loading…
Add table
Reference in a new issue