diff options
| author | 2018-09-27 11:46:10 +0100 | |
|---|---|---|
| committer | 2018-09-27 11:46:10 +0100 | |
| commit | 8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f (patch) | |
| tree | 2481de34452598ff3d3ca579612a0fdc0dc0edc5 /modules/wolframalpha.py | |
| parent | Implement @Utils.export, to denote an export on a module (diff) | |
| signature | ||
Use ModuleManager.BaseModule in more modules
Diffstat (limited to 'modules/wolframalpha.py')
| -rw-r--r-- | modules/wolframalpha.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/wolframalpha.py b/modules/wolframalpha.py index 6415639c..292016e4 100644 --- a/modules/wolframalpha.py +++ b/modules/wolframalpha.py @@ -1,13 +1,11 @@ #--require-config wolframalpha-api-key import json -from src import Utils +from src import ModuleManager, Utils URL_WA = "https://api.wolframalpha.com/v1/result" -class Module(object): +class Module(ModuleManager.BaseModule): _name = "Wolfram|Alpha" - def __init__(self, bot, events, exports): - self.bot = bot @Utils.hook("received.command.wolframalpha|wa", min_args=1, usage="<query>") def wa(self, event): |
