From c60fb9975fe78ff64fb90556f6eb7d7a667b039d Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 24 Jun 2019 15:41:57 +0100 Subject: [PATCH] 'github-hooks' -> 'webhooks'. this is a breaking change! Move any 'github-hooks' channel settings to 'webhook' settings --- modules/webhooks/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 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