Merge pull request #28 from anonimal/price

price: s/bcc/bch/g
This commit is contained in:
jw 2017-12-10 13:41:25 -08:00 committed by GitHub
commit 27ff39d7c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -27,9 +27,9 @@ thumbxmrurl = 'https://api.bithumb.com/public/ticker/xmr' # measured natively in
thumbbtcurl = 'https://api.bithumb.com/public/ticker/btc' # measured natively in KRW
@sopel.module.commands('bcc', 'bitcointrash')
def bcc(bot, trigger):
url = 'https://api.coinmarketcap.com/v1/ticker/?bcc'
@sopel.module.commands('bch', 'bitcointrash')
def bch(bot, trigger):
url = 'https://api.coinmarketcap.com/v1/ticker/?bch'
try:
r = requests.get(url)
j = r.json()

View File

@ -1,7 +1,7 @@
import requests
url = 'https://api.coinmarketcap.com/v1/ticker/?bcc'
url = 'https://api.coinmarketcap.com/v1/ticker/?bch'
r = requests.get(url)
j = r.json()