conversejs / community-plugins

3rd party, community contributed plugins for Converse.js
Other
14 stars 10 forks source link

Plugin install on mod_conversejs (prosody) #511

Closed roughnecks closed 1 year ago

roughnecks commented 1 year ago

Hello,

I'm trying to install the "actions" plugin in conversejs under prosody. I've added the following option to /etc/prosody/prosody.cfg.lua

conversejs_options = {
        ....
        whitelisted_plugins = {"actions"};
}

but I don't know where to place the plugins files..

Thanks

roughnecks commented 1 year ago

Fixed.

For anyone looking here, you have to also add the following line(s) to add each plugin you like:

conversejs_tags = {
        [[<script src="https://cdn.conversejs.org/3rdparty/libsignal-protocol.min.js"></script>]];
        -- Load community plugins
        [[<script src="conversejs/dist/plugins/actions/actions.js"></script>]];
        [[<script src="conversejs/dist/plugins/search/search.js"></script>]];
}

Then copy the plugin(s) dir inside your dist/plugins/ directory Reload config and module or restart prosody.