From 7f64d21e1e3a69ce25988082b68ba964667847b7 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 16 Jan 2020 21:08:12 +0200 Subject: [PATCH] Fix mistakes in standalone bot main file --- maubot/standalone/__main__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/maubot/standalone/__main__.py b/maubot/standalone/__main__.py index b250a57..b593610 100644 --- a/maubot/standalone/__main__.py +++ b/maubot/standalone/__main__.py @@ -39,8 +39,6 @@ from ..matrix import MaubotMatrixClient from ..lib.store_proxy import ClientStoreProxy from ..__meta__ import __version__ -from supportportal import SupportPortalBot - parser = argparse.ArgumentParser( description="A plugin-based Matrix bot system -- standalone mode.", prog="python -m maubot.standalone") @@ -110,7 +108,7 @@ if not nb: bot_config = None if meta.config: log.debug("Loading config") - config_class = SupportPortalBot.get_config_class() + config_class = plugin.get_config_class() def load() -> CommentedMap: @@ -167,7 +165,7 @@ async def main(): ))) client.start(nb.filter_id) - if config["autojoin"]: + if config["user.autojoin"]: log.debug("Autojoin is enabled") @client.on(EventType.ROOM_MEMBER)