-
Notifications
You must be signed in to change notification settings - Fork 3
Creating a new plugin
Ricardo Arturo Cabral edited this page Jan 15, 2017
·
1 revision
Follow the next steps to create a new plugin for Marvin.
-
Step One - Install
cookiecutter:
If you have already installed cookiecutter, skip this step.
$ pip install --user cookiecutterNote that you only need to do step one once.
- Step Two - Create a new plugin from our template:
$ cookiecutter https://github.com/BotDevGroup/cookiecutter-marvinbot-plugin-
Step Three - Customize
setup.py: Make sure to customize your plugin'ssetup.py.
$ vi my_new_plugin/setup.py- Step Four - Install your plugin:
(venv) $ cd my_new_plugin
(venv) $ python3 setup.py develop-
Step Five - Register your plugin with your bot:
Open your
settings.jsonfile:
$ cd marvinbot
$ vi settings.jsonAppend your plugin's name to the plugins key:
{
"plugins": {
"my_new_plugin"
}
}