Add api.modules in modules/stats.py
This commit is contained in:
parent
52b7beb407
commit
f31fdc48b3
1 changed files with 4 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue