Fix mistakes in standalone bot main file
This commit is contained in:
parent
6b586f0b82
commit
7f64d21e1e
1 changed files with 2 additions and 4 deletions
|
@ -39,8 +39,6 @@ from ..matrix import MaubotMatrixClient
|
||||||
from ..lib.store_proxy import ClientStoreProxy
|
from ..lib.store_proxy import ClientStoreProxy
|
||||||
from ..__meta__ import __version__
|
from ..__meta__ import __version__
|
||||||
|
|
||||||
from supportportal import SupportPortalBot
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="A plugin-based Matrix bot system -- standalone mode.",
|
description="A plugin-based Matrix bot system -- standalone mode.",
|
||||||
prog="python -m maubot.standalone")
|
prog="python -m maubot.standalone")
|
||||||
|
@ -110,7 +108,7 @@ if not nb:
|
||||||
bot_config = None
|
bot_config = None
|
||||||
if meta.config:
|
if meta.config:
|
||||||
log.debug("Loading config")
|
log.debug("Loading config")
|
||||||
config_class = SupportPortalBot.get_config_class()
|
config_class = plugin.get_config_class()
|
||||||
|
|
||||||
|
|
||||||
def load() -> CommentedMap:
|
def load() -> CommentedMap:
|
||||||
|
@ -167,7 +165,7 @@ async def main():
|
||||||
)))
|
)))
|
||||||
client.start(nb.filter_id)
|
client.start(nb.filter_id)
|
||||||
|
|
||||||
if config["autojoin"]:
|
if config["user.autojoin"]:
|
||||||
log.debug("Autojoin is enabled")
|
log.debug("Autojoin is enabled")
|
||||||
|
|
||||||
@client.on(EventType.ROOM_MEMBER)
|
@client.on(EventType.ROOM_MEMBER)
|
||||||
|
|
Loading…
Reference in a new issue