"""Trigger implementation to stop all actions"""

import time

from ev3bot import audio
from ev3bot.trigger import Trigger

from utils import tts

class Stop(Trigger):
    """Trigger to stop the action"""

    def run(self, execution_context):
        pause_time = self.get_config('behavior.stop.pause_time')
        stop_reacts = self.get_config('behavior.stop.reacts')
        execution_context.finish('stopping')

        audio.stop()
        time.sleep(pause_time)
        tts.say_random(stop_reacts)

058545e3796039f39edf659cef37d3742b3b85a0
<mask token>


class Stop(Trigger):
    <mask token>
    <mask token>

<mask token>


class Stop(Trigger):
    <mask token>

    def run(self, execution_context):
        pause_time = self.get_config('behavior.stop.pause_time')
        stop_reacts = self.get_config('behavior.stop.reacts')
        execution_context.finish('stopping')
        audio.stop()
        time.sleep(pause_time)
        tts.say_random(stop_reacts)

<mask token>


class Stop(Trigger):
    """Trigger to stop the action"""

    def run(self, execution_context):
        pause_time = self.get_config('behavior.stop.pause_time')
        stop_reacts = self.get_config('behavior.stop.reacts')
        execution_context.finish('stopping')
        audio.stop()
        time.sleep(pause_time)
        tts.say_random(stop_reacts)

<mask token>
import time
from ev3bot import audio
from ev3bot.trigger import Trigger
from utils import tts


class Stop(Trigger):
    """Trigger to stop the action"""

    def run(self, execution_context):
        pause_time = self.get_config('behavior.stop.pause_time')
        stop_reacts = self.get_config('behavior.stop.reacts')
        execution_context.finish('stopping')
        audio.stop()
        time.sleep(pause_time)
        tts.say_random(stop_reacts)

"""Trigger implementation to stop all actions"""

import time

from ev3bot import audio
from ev3bot.trigger import Trigger

from utils import tts

class Stop(Trigger):
    """Trigger to stop the action"""

    def run(self, execution_context):
        pause_time = self.get_config('behavior.stop.pause_time')
        stop_reacts = self.get_config('behavior.stop.reacts')
        execution_context.finish('stopping')

        audio.stop()
        time.sleep(pause_time)
        tts.say_random(stop_reacts)
