diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/bitcoin.py | |
| parent | Add a way to not add a user automatically in IRCServer.get_user (diff) | |
| signature | ||
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
Diffstat (limited to 'modules/bitcoin.py')
| -rw-r--r-- | modules/bitcoin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/bitcoin.py b/modules/bitcoin.py index 07678d68..46c84596 100644 --- a/modules/bitcoin.py +++ b/modules/bitcoin.py @@ -1,16 +1,16 @@ -from src import ModuleManager, Utils +from src import ModuleManager, utils class Module(ModuleManager.BaseModule): _name = "BTC" - @Utils.hook("received.command.btc") + @utils.hook("received.command.btc") def btc(self, event): """ :help: Get the exchange rate of bitcoins :usage: [currency] """ currency = (event["args"] or "USD").upper() - page = Utils.get_url("https://blockchain.info/ticker", + page = utils.http.get_url("https://blockchain.info/ticker", json=True) if page: if currency in page: |
