diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/google.py | |
| parent | Fix some styling in ducks.py (diff) | |
Refactor everything to use delimited events
Diffstat (limited to 'modules/google.py')
| -rw-r--r-- | modules/google.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/google.py b/modules/google.py index f7ef398f..986a7073 100644 --- a/modules/google.py +++ b/modules/google.py @@ -8,9 +8,8 @@ URL_GOOGLESEARCH = "https://www.googleapis.com/customsearch/v1" class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("google", - "g").hook(self.google, help="Google feeling lucky", - usage="[search term]") + events.on("received.command").on("google", "g").hook(self.google, + help="Google feeling lucky", usage="[search term]") def google(self, event): phrase = event["args"] or event["buffer"].get() |
