aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-24 15:41:57 +0100
committerGravatar jesopo2019-06-24 15:43:31 +0100
commitc60fb9975fe78ff64fb90556f6eb7d7a667b039d (patch)
treebdd32535b9bade52f96562df4abb4393e56200ea /modules
parentRemove 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
Diffstat (limited to 'modules')
-rw-r--r--modules/webhooks/__init__.py3
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