Mercurial > libervia-backend
comparison src/plugins/plugin_exp_parrot.py @ 2145:33c8c4973743
core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 18:59:10 +0100 |
parents | 1d3f73e065e1 |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2144:1d3f73e065e1 | 2145:33c8c4973743 |
---|---|
25 | 25 |
26 from sat.core.exceptions import UnknownEntityError | 26 from sat.core.exceptions import UnknownEntityError |
27 #from sat.tools import trigger | 27 #from sat.tools import trigger |
28 | 28 |
29 PLUGIN_INFO = { | 29 PLUGIN_INFO = { |
30 "name": "Parrot Plugin", | 30 C.PI_NAME: "Parrot Plugin", |
31 "import_name": "EXP-PARROT", | 31 C.PI_IMPORT_NAME: "EXP-PARROT", |
32 "type": "EXP", | 32 C.PI_TYPE: "EXP", |
33 "protocols": [], | 33 C.PI_PROTOCOLS: [], |
34 "dependencies": ["XEP-0045"], | 34 C.PI_DEPENDENCIES: ["XEP-0045"], |
35 "recommendations": [C.TEXT_CMDS], | 35 C.PI_RECOMMENDATIONS: [C.TEXT_CMDS], |
36 "main": "Exp_Parrot", | 36 C.PI_MAIN: "Exp_Parrot", |
37 "handler": "no", | 37 C.PI_HANDLER: "no", |
38 "description": _(u"""Implementation of parrot mode (repeat messages between 2 entities)""") | 38 C.PI_DESCRIPTION: _(u"""Implementation of parrot mode (repeat messages between 2 entities)""") |
39 } | 39 } |
40 | 40 |
41 | 41 |
42 class Exp_Parrot(object): | 42 class Exp_Parrot(object): |
43 """Parrot mode plugin: repeat messages from one entity or MUC room to another one""" | 43 """Parrot mode plugin: repeat messages from one entity or MUC room to another one""" |