Allow to load plugins

This commit is contained in:
2021-01-16 20:37:25 +01:00
parent 866029256a
commit 2526ce330d
3 changed files with 17 additions and 0 deletions

View File

@ -361,6 +361,12 @@ class Bot(ClientXMPP):
self.register_plugin("xep_0199") # XMPP Ping
self.register_plugin("xep_0084") # User Avatar
try:
for plugin in self.plugins:
self.register_plugin(plugin)
except AttributeError:
self.log.info("No additional plugins loaded")
def init_db(self):
"""Initialise the Redis key/value store."""
if not self.redis_url: