port to contact4
This commit is contained in:
@ -36,13 +36,13 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
|
||||
try {
|
||||
auto* completion = PLUG_RESOLVE_INSTANCE(TextCompletionI);
|
||||
auto* conf = PLUG_RESOLVE_INSTANCE(ConfigModelI);
|
||||
auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
|
||||
auto* cs = PLUG_RESOLVE_INSTANCE(ContactStore4I);
|
||||
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModelI);
|
||||
auto* mcd = PLUG_RESOLVE_INSTANCE(MessageCommandDispatcher);
|
||||
|
||||
// static store, could be anywhere tho
|
||||
// construct with fetched dependencies
|
||||
g_rpbot = std::make_unique<RPBot>(*completion, *conf, *cr, *rmm, mcd);
|
||||
g_rpbot = std::make_unique<RPBot>(*completion, *conf, *cs, *rmm, mcd);
|
||||
|
||||
// register types
|
||||
PLUG_PROVIDE_INSTANCE(RPBot, plugin_name, g_rpbot.get());
|
||||
|
Reference in New Issue
Block a user