File: flowtest.py

package info (click to toggle)
errbot 6.2.0%2Bds-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,848 kB
  • sloc: python: 11,573; makefile: 162; sh: 97
file content (29 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from __future__ import absolute_import

from errbot import BotPlugin, botcmd


class FlowTest(BotPlugin):
    """A plugin to test the flows
    see flowtest.png for the structure.
    """

    @botcmd
    def a(self, msg, args):
        return "a"

    @botcmd
    def b(self, msg, args):
        return "b"

    @botcmd
    def c(self, msg, args):
        return "c"

    @botcmd(flow_only=True)
    def d(self, msg, args):
        return "d"

    @botcmd
    def e(self, msg, args):
        return "e"