mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
🐛 Fix attribute error in the launcher
This commit is contained in:
parent
012e1afa4f
commit
1a21e91681
1 changed files with 4 additions and 3 deletions
|
@ -95,7 +95,8 @@ def run(config_file: str):
|
|||
else:
|
||||
log.debug("__serfs__: Configured")
|
||||
|
||||
def configure_serf(n: str, module, class_: Type[rs.Serf]):
|
||||
def configure_serf(n: str, module):
|
||||
class_ = module.__getattribute__(f"{n}Serf")
|
||||
serf_cfg = serfs_cfg.get(n)
|
||||
if module is None:
|
||||
log.info(f"Serf.{n}: Not installed")
|
||||
|
@ -122,8 +123,8 @@ def run(config_file: str):
|
|||
processes[f"Serf.{n}"] = ru.RoyalnetProcess(serf_constructor, None)
|
||||
log.info(f"Serf.{n}: Enabled")
|
||||
|
||||
configure_serf("Telegram", rst, rst.TelegramSerf)
|
||||
configure_serf("Discord", rsd, rsd.DiscordSerf)
|
||||
configure_serf("Telegram", rst)
|
||||
configure_serf("Discord", rsd)
|
||||
|
||||
# Constellation
|
||||
constellation_cfg = config.get("Constellation")
|
||||
|
|
Loading…
Reference in a new issue