Skip to content

Plugins

Ricardo Arturo Cabral edited this page Apr 9, 2017 · 6 revisions

General Plugin Installation Guide

Clone the source code of the desired plugin (Plugin list)

Linux and Mac

Example:

    $ git clone git@github.com:BotDevGroup/marvinbot_sample_plugin.git

Enter the plugin's folder:

Linux and Mac

    $ cd ./marvinbot_sample_plugin

Install the plugin into your virtualenv (virualenv is supposed to be installed in your marvin folder):

    (venv)$ python3 setup.py develop

Navigate to the folder where you cloned marvin and edit settings.json and add marvinbot_sample_plugin to your plugins list.

Windows

Open a new command prompt and navigate to the folder where you cloned the plugin.

    (venv) C:\...\marvinbot_sample_plugin> python setup.py develop

Navigate to the folder where you cloned marvin and edit settings.json and add marvinbot_sample_plugin to your plugins list.

Extra configuration

Optionally, append some configuration to settings.json (some plugins require some configuration):

{
    ...
    "plugin_configuration": {
        "marvinbot_sample_plugin": {
            "init_message": "O HAI"
        }
    }
    ...
}

Restart your marvinbot and talk to your bot :)


Creating your own Plugin

Now that you have successfully managed to run your bot, you may want to create a new plugin to add functionality.

Click here

Clone this wiki locally