Debian Codegraph @

tests/flow_plugin/flowtest.py

raw
1 from __future__ import absolute_import
2
3 from errbot import BotPlugin, botcmd
4
5
6 class FlowTest(BotPlugin):
7 """A plugin to test the flows
8 see flowtest.png for the structure.
9 """
10
11 @botcmd
12 def a(self, msg, args):
13 return "a"
14
15 @botcmd
16 def b(self, msg, args):
17 return "b"
18
19 @botcmd
20 def c(self, msg, args):
21 return "c"
22
23 @botcmd(flow_only=True)
24 def d(self, msg, args):
25 return "d"
26
27 @botcmd
28 def e(self, msg, args):
29 return "e"