from errbot import botflow, FlowRoot, BotFlow


class FortunaFlow(BotFlow):
    'Fluxo das mensagens de fortuna'

    @botflow
    def adivinha(self, flow: FlowRoot):
        'Adivinhação de autor'
        pergunta = flow.connect('frase', auto_trigger=True)
        resposta = pergunta.connect('autor')

from errbot import botflow, FlowRoot, BotFlow


class FortunaFlow(BotFlow):
    'Fluxo das mensagens de fortuna'

    @botflow
    def adivinha(self, flow: FlowRoot):
        'Adivinhação de autor'
        pergunta = flow.connect('frase', auto_trigger=True)
        resposta = pergunta.connect('autor')
