Add api.modules in modules/stats.py

This commit is contained in:
jesopo 2018-10-04 17:37:47 +01:00
parent 52b7beb407
commit f31fdc48b3

View file

@ -89,3 +89,7 @@ class Module(ModuleManager.BaseModule):
channels[server.id][str(channel)] = self._channel_stats( channels[server.id][str(channel)] = self._channel_stats(
channel) channel)
return channels return channels
@utils.hook("api.modules")
def modules_api(self, event):
return list(self.bot.modules.modules.keys())