From bb1b4d32665598ddcd164124db924d9d427f50b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Thu, 17 Dec 2015 19:48:28 +0100 Subject: [PATCH] Added analyse to the docs --- docs/plugins.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/plugins.rst b/docs/plugins.rst index 33a9b9b..6bc7772 100644 --- a/docs/plugins.rst +++ b/docs/plugins.rst @@ -9,6 +9,7 @@ The basic methods in a plugin are: * __init__ * activate: used to load memory-hungry resources * deactivate: used to free up resources +* analyse: called in every user requests. It takes in the parameters supplied by a user and should return a senpy Response. Plugins are loaded asynchronously, so don't worry if the activate method takes too long. The plugin will be marked as activated once it is finished executing the method.