'github-hooks' -> 'webhooks'. this is a breaking change!

Move any 'github-hooks' channel settings to 'webhook' settings
This commit is contained in:
jesopo 2019-06-24 15:41:57 +01:00
parent 831bcd0d23
commit c60fb9975f

View file

@ -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