async def setup( context: InjectionContext, protocol_registry: ProblemReport = None ): """Setup the basicmessage plugin.""" if not protocol_registry: protocol_registry = await context.inject(ProtocolRegistry) protocol_registry.register_message_types( MESSAGE_TYPES )
async def setup(context: InjectionContext, protocol_registry: ProblemReport = None): """Load plugin.""" # Load in libsovtoken cdll.LoadLibrary(LIBRARY).sovtoken_init() if not protocol_registry: protocol_registry = await context.inject(ProtocolRegistry) protocol_registry.register_message_types(MESSAGE_TYPES)