diff options
| author | 2018-08-31 10:50:37 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:50:37 +0100 | |
| commit | abed9cf4ea71dcbad2dd2c049683b8d14b942e09 (patch) | |
| tree | 3e40caf63fa7e1500469f4ad9a0c45c51808aad4 /modules/wikipedia.py | |
| parent | Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs (diff) | |
| signature | ||
Reformat
Diffstat (limited to 'modules/wikipedia.py')
| -rw-r--r-- | modules/wikipedia.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/wikipedia.py b/modules/wikipedia.py index 98f61714..daa58369 100644 --- a/modules/wikipedia.py +++ b/modules/wikipedia.py @@ -2,11 +2,13 @@ import Utils URL_WIKIPEDIA = "https://en.wikipedia.org/w/api.php" + class Module(object): def __init__(self, bot): self.bot = bot bot.events.on("received").on("command").on("wiki", "wi" - ).hook(self.wikipedia, min_args=1) + ).hook(self.wikipedia, + min_args=1) def wikipedia(self, event): page = Utils.get_url(URL_WIKIPEDIA, get_params={ @@ -25,4 +27,3 @@ class Module(object): event["stderr"].write("No results found") else: event["stderr"].write("Failed to load results") - |
