aboutsummaryrefslogtreecommitdiff
path: root/modules/bitcoin.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/bitcoin.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/bitcoin.py')
-rw-r--r--modules/bitcoin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/bitcoin.py b/modules/bitcoin.py
index 1c88c0bb..07678d68 100644
--- a/modules/bitcoin.py
+++ b/modules/bitcoin.py
@@ -3,10 +3,11 @@ from src import ModuleManager, Utils
class Module(ModuleManager.BaseModule):
_name = "BTC"
- @Utils.hook("received.command.btc", usage="[currency]")
+ @Utils.hook("received.command.btc")
def btc(self, event):
"""
- Get the exchange rate of bitcoins
+ :help: Get the exchange rate of bitcoins
+ :usage: [currency]
"""
currency = (event["args"] or "USD").upper()
page = Utils.get_url("https://blockchain.info/ticker",