From f31fdc48b33da26e2926593baa6890184d33d820 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 4 Oct 2018 17:37:47 +0100 Subject: [PATCH] Add api.modules in modules/stats.py --- modules/stats.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/stats.py b/modules/stats.py index 53a92560..d2de816a 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -89,3 +89,7 @@ class Module(ModuleManager.BaseModule): channels[server.id][str(channel)] = self._channel_stats( channel) return channels + + @utils.hook("api.modules") + def modules_api(self, event): + return list(self.bot.modules.modules.keys())