update cmc

This commit is contained in:
root 2018-01-11 04:43:56 +00:00
parent b0a5d039ec
commit 7ae280e854
1 changed files with 3 additions and 0 deletions

View File

@ -318,6 +318,9 @@ def cryptopia(bot, trigger):
@sopel.module.commands('cmc', 'coinmarketcap') @sopel.module.commands('cmc', 'coinmarketcap')
def cmc(bot, trigger): def cmc(bot, trigger):
if trigger.group(2).lower() == 'trx':
bot.say("Fuck off with your scams scammer")
return
try: try:
r = requests.get('https://api.coinmarketcap.com/v1/ticker?limit=1000') r = requests.get('https://api.coinmarketcap.com/v1/ticker?limit=1000')
j = r.json() j = r.json()