diff options
| author | 2018-10-04 17:37:47 +0100 | |
|---|---|---|
| committer | 2018-10-04 17:37:47 +0100 | |
| commit | f31fdc48b33da26e2926593baa6890184d33d820 (patch) | |
| tree | 54c497ba1ac5d7b077fd2fc60d2be36c13c495d1 /modules/stats.py | |
| parent | Provide more information for api.channels (diff) | |
| signature | ||
Add api.modules in modules/stats.py
Diffstat (limited to 'modules/stats.py')
| -rw-r--r-- | modules/stats.py | 4 |
1 files changed, 4 insertions, 0 deletions
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()) |
