bitcoin: support decimal input

This commit is contained in:
mutantmonkey
2013-11-17 21:36:42 -08:00
parent c3815c9cfe
commit 80613962a1
2 changed files with 8 additions and 1 deletions

View File

@@ -58,4 +58,4 @@ def bitcoin(phenny, input):
phenny.say("{amount} {currency}".format(amount=amount2,
currency=currency2))
bitcoin.rule = (['bitcoin'], r'(\d+)\s(\w+)(\s\w+)?')
bitcoin.rule = (['bitcoin'], r'([\d\.]+)\s(\w+)(\s\w+)?')