# Path: karmabot/core/storage.py
# def load_catalog(sender):
#     def __init__(self, host='localhost', port=6379, db=0):
#     def __len__(self):
#     def get(self, key):
#     def set(self, key, value):
# class Catalog(dict):


import re
from karmabot.core import storage
# Copyright the Karmabot authors and contributors.
# All rights reserved.  See AUTHORS.
#
# This file is part of 'karmabot' and is distributed under the BSD license.
# See LICENSE for more details.


# TODO: regular expressions in this module should be
# replaced with something more robust and more efficient.

# TODO: stripping listen commands such as --/++
class Command(object):

    def __init__(self, parent, format, handler,
                 help=None, visible=True, exclusive=False):
        self.parent = parent
        self.format = format
        self.handler = handler
        self.help = help
        self.visible = visible
        self.exclusive = exclusive

# Path: karmabot/core/storage.py
# def load_catalog(sender):
#     def __init__(self, host='localhost', port=6379, db=0):
#     def __len__(self):
#     def get(self, key):
#     def set(self, key, value):
# class Catalog(dict):


# Path: karmabot/core/commands/command.py
import re
from karmabot.core import storage

# Copyright the Karmabot authors and contributors.
# All rights reserved.  See AUTHORS.
#
# This file is part of 'karmabot' and is distributed under the BSD license.
# See LICENSE for more details.


# TODO: regular expressions in this module should be
# replaced with something more robust and more efficient.

# TODO: stripping listen commands such as --/++
class Command(object):

    def __init__(self, parent, format, handler,
                 help=None, visible=True, exclusive=False):
        self.parent = parent
        self.format = format
        self.handler = handler
        self.help = help
        self.visible = visible
        self.exclusive = exclusive

        self.state = None