"""CactusBot configuration."""

from cactusbot.handler import Handlers
from cactusbot.handlers import (CommandHandler, EventHandler, LoggingHandler,
                                SpamHandler, ResponseHandler)
from cactusbot.services.beam.handler import BeamHandler

USERNAME = "BotUsername"
PASSWORD = "BotPassword"

CHANNEL = "ChannelName"

API_TOKEN = "CactusAPI_Token"

# CACHE_FOLLOWS: Cache to remove chat spam (Default: False)
# CACHE_FOLLOWS_TIME: How long in minutes before resending message
#   Leave at 0 for no repeat follow messages
#   Only matters if CACHE_FOLLOWS is enabled (Default: 0)
CACHE_DATA = {
    "CACHE_FOLLOWS": True,
    "CACHE_FOLLOWS_TIME": 0
}

handlers = Handlers(LoggingHandler(), ResponseHandler(USERNAME),
                    EventHandler(CACHE_DATA), CommandHandler(API_TOKEN),
                    SpamHandler())

SERVICE = BeamHandler(CHANNEL, handlers)

"""CactusBot configuration."""

from cactusbot.handler import Handlers
from cactusbot.handlers import (CommandHandler, EventHandler, LoggingHandler,
                                SpamHandler, ResponseHandler)
from cactusbot.services.beam.handler import BeamHandler

USERNAME = "BotUsername"
PASSWORD = "BotPassword"

CHANNEL = "ChannelName"

API_TOKEN = "CactusAPI_Token"

# CACHE_FOLLOWS: Cache to remove chat spam (Default: False)
# CACHE_FOLLOWS_TIME: How long in minutes before resending message
#   Leave at 0 for no repeat follow messages
#   Only matters if CACHE_FOLLOWS is enabled (Default: 0)
CACHE_DATA = {
    "CACHE_FOLLOWS": True,
    "CACHE_FOLLOWS_TIME": 0
}

handlers = Handlers(LoggingHandler(), ResponseHandler(USERNAME),
                    EventHandler(CACHE_DATA), SpamHandler(),
                    CommandHandler(API_TOKEN))

SERVICE = BeamHandler(CHANNEL, handlers)

Fix handler order