Debian Codegraph @

tests/cascade_dependent_plugins/parent1.py

raw
1 from errbot import BotPlugin, botcmd
2
3
4 class Parent1(BotPlugin):
5 @botcmd
6 def parent1_to_child1(self, msg, args):
7 return self.get_plugin("Child1").shared_function()
8
9 @botcmd
10 def parent1_to_child2(self, msg, args):
11 return self.get_plugin("Child2").shared_function()
12
13 def shared_function(self):
14 return "Hello from Parent1"