diff options
| author | 2019-06-24 15:41:57 +0100 | |
|---|---|---|
| committer | 2019-06-24 15:43:31 +0100 | |
| commit | c60fb9975fe78ff64fb90556f6eb7d7a667b039d (patch) | |
| tree | bdd32535b9bade52f96562df4abb4393e56200ea | |
| parent | Remove old imports from github.py, add missing webhook urllib import (diff) | |
| signature | ||
'github-hooks' -> 'webhooks'. this is a breaking change!
Move any 'github-hooks' channel settings to 'webhook' settings
| -rw-r--r-- | modules/webhooks/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/webhooks/__init__.py b/modules/webhooks/__init__.py index a0b1429a..8538cecb 100644 --- a/modules/webhooks/__init__.py +++ b/modules/webhooks/__init__.py @@ -35,8 +35,7 @@ class Module(ModuleManager.BaseModule): branch = handler.branch(data, headers) current_event, event_action = handler.event(data, headers) - hooks = self.bot.database.channel_settings.find_by_setting( - "%s-hooks" % webhook_type) + hooks = self.bot.database.channel_settings.find_by_setting("webhooks") targets = [] repo_hooked = False |
