errbot


Errbot: How can I import one plugin from another


In this case I have a simple JIRA plugin, I'd like to create another plugin that also interacts with JIRA via the first plugin. I have been trying variations of errbot.plugin_manager.get_plugin_obj_by_name('jira') but I haven't found the right way to do this.
You are in luck, it just got implemented in the 4.3.0 version released yesterday:
Basically you need to declare the dependency in the .plug with DependsOn in the [Core] section then you can get the plugin object you depend on with self.get_plugin('pluginName').
https://github.com/errbotio/errbot/blob/master/docs/user_guide/plugin_development/dependencies.rst

Related Links

How to use Errbot across multiple evironments?
How can I get user's #mentionname knowing it's XMPPIdentifier from my errbot plugin?
Disable errbot cert verification
Using collapsed cards in Slack with Errbot
Stop processing message after match in Errbot
Inheritance with BotPlugin
Slack backend: is it possible to detect an edit?
Yield from dependency plugin?
Slack Cannot find user with ID
Slack chatPostMessage fails
Errbot: How can I access config file variables
Errbot: How can I import one plugin from another

Categories

HOME
twitter-bootstrap-3
eslint
wakanda
nunit
alarm
yandex
pyqt4
nested-if
interpolation
nuget-package
missing-data
crystal-lang
character
rcloud
commonjs
enthought
activecollab
datastage
gource
magnetic-cards
entitymanager
alpacajs
android-7.0-nougat
google-content-api
shortest-path
tosca
xunit
siri
fable-f#
underscore.js
spotipy
gp
aws-codecommit
testbed
jmockit
clickjacking
carriage-return
navigator
swagger-php
reactivekit
news
apache-spark-dataset
jide
opennms
manova
zenhub
android-testing
cmp
mathcad
chromium-os
slackware
grails-plugin
segment-io
tinkerpop3
spring-cloud-feign
drawstring
wso2developerstudio
ng-grid
observablecollection
android-wake-lock
cassia
phpwebsocket
html-to-pdf
nupic
dynamics-nav-2016
boomerang
rate-limiting
include-guards
mod-proxy
cwrsync
canvg
ms-access-2000
uvc
fail2ban
shopizer
dbaccess
sip-server
iso-prolog
device-tree
lambda-architecture
tinyxml
renderer
fpdi
clickbank
koala
bin
mvc-editor-templates
flex++
qtconcurrent
paginator
objectquery
appjs
infobright
expression-blend-4
user-tracking
winmain
webdev.webserver
twitterizer
maven-1
django-piston
echo3
visualj#
cuda.net
google-wave
technical-debt
change-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App