diff --git a/cloudbot/reloader.py b/cloudbot/reloader.py index 1646e758..77d3e0af 100644 --- a/cloudbot/reloader.py +++ b/cloudbot/reloader.py @@ -113,6 +113,14 @@ def on_moved(self, event): class ConfigEventHandler(ReloadHandler): - def on_any_event(self, event): - self.bot.logger.info("Config event: %s", event) - self.loader.reload(getattr(event, "dest_path", event.src_path)) + def on_created(self, event): + self.loader.reload(event.src_path) + + def on_deleted(self, event): + self.loader.reload(event.src_path) + + def on_modified(self, event): + self.loader.reload(event.src_path) + + def on_moved(self, event): + self.loader.reload(event.dest_path)