Update price.py

Removed two tabs that snuck in and replaced with spaces
This commit is contained in:
scoobybejesus 2021-01-06 21:48:36 -05:00 committed by GitHub
parent a1dc88b16b
commit c8ef41eaf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -431,10 +431,10 @@ def top(bot, trigger):
limit = int(trigger.group(2))
if limit > 20:
bot.say("Too high! Max is 20!")
limit = 20
limit = 20
elif limit < 1:
bot.say("Dude...")
return
return
r = requests.get('https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page={}&page=1&sparkline=false'.format(limit))
j = r.json()
for i in j: