Skip to content

Commit

Permalink
Fix mistakes in standalone bot main file
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 16, 2020
1 parent 6b586f0 commit 7f64d21
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions maubot/standalone/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
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")
Expand Down Expand Up @@ -110,7 +108,7 @@ def get(cls, user_id: UserID) -> Optional['NextBatch']:
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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7f64d21

Please sign in to comment.