Merge branch 'master' into 'master'
Set eur as default currency in coins module See merge request mrhanky/nxy!11
This commit is contained in:
commit
46314a5420
|
@ -42,7 +42,7 @@ class Coins(Plugin):
|
||||||
return self.cryptowat_summary('xmr', 'bitfinex', args)
|
return self.cryptowat_summary('xmr', 'bitfinex', args)
|
||||||
|
|
||||||
def cryptowat_summary(self, crypto: str, market: str, args: Dict):
|
def cryptowat_summary(self, crypto: str, market: str, args: Dict):
|
||||||
currency = args.get('<currency>', 'usd').lower()
|
currency = args.get('<currency>', 'eur').lower()
|
||||||
|
|
||||||
if currency not in self.CURRENCIES or crypto == currency:
|
if currency not in self.CURRENCIES or crypto == currency:
|
||||||
return '\x02[{}]\x02 Can\'t convert or invalid currency: {}'.format(crypto.upper(), currency)
|
return '\x02[{}]\x02 Can\'t convert or invalid currency: {}'.format(crypto.upper(), currency)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user