modified docstring/helptext a bit

This commit is contained in:
iou1name 2018-09-19 13:01:52 -04:00
parent 8d171ffdbe
commit 8b09a8b9e7

View File

@ -13,7 +13,11 @@ BTC_URI = "https://api.coindesk.com/v1/bpi/currentprice/{CUR_TO}.json"
@commands('cur', 'currency', 'exchange') @commands('cur', 'currency', 'exchange')
@example('.cur 20 EUR to USD') @example('.cur 20 EUR to USD')
def exchange(bot, trigger): def exchange(bot, trigger):
"""Show the exchange rate between two currencies""" """
Show the exchange rate between two currencies.
Supported currencies: https://www.exchangerate-api.com/supported-currencies
"""
amount = trigger.group(3) amount = trigger.group(3)
cur_from = trigger.group(4) cur_from = trigger.group(4)
cur_to = trigger.group(5) cur_to = trigger.group(5)