# Path: limbo/slack.py
# class SlackNotConnected(Exception):
# class SlackConnectionError(Exception):
# class SlackLoginError(Exception):
# class SlackClient(object):
# LOG = logging.getLogger(__name__)
# def dig(obj, *keys):
#     def __init__(self, token):
#     def rtm_read(self):
#     def rtm_send_message(self, channel_id, message, thread_ts=None):
#     def post_message(self, channel_id, message, **kwargs):
#     def post_reaction(self, channel_id, timestamp, reaction_name, **kwargs):
#     def process_changes(self, data):
#     def rtm_connect(self):
#     def parse_slack_login_data(self, login_data):
#     def connect_slack_websocket(self, ws_url):
#     def get_all(self, api_method, collection_name, **kwargs):
#     def get_channel_list(self):
#     def get_user_list(self):
#     def parse_users(self, users):
#     def parse_bot_data(self, bot):
#     def send_to_websocket(self, data):
#     def ping(self):
#     def websocket_safe_read(self):
#     def join_channel(self, name):
#     def api_call(self, method, **kwargs):
#     def do(self, request, post_data=None, files=None, **kwargs):


import json
import time
from .slack import User, Bot

        c = self.db.cursor()
        c.execute(sql, params)
        rows = c.fetchall()
        c.close()
        self.db.commit()
        return rows


class FakeSlack(object):
    def __init__(self,
                 server=None,
                 users=None,
                 events=None,
                 bots=None,
                 botname="test"):
        self.posted_messages = []
        self.posted_reactions = {}
        self.events = events if events else []
        self.login_data = {
            "self": {
                "name": botname,
            }
        }
        self.username = "limbo_test"
        self.userid = "1"

        self.users = users if users else {
            "1": User("limbo_test", 1, "", 0),
            "2": User("msguser", 2, "", 0),

# Path: limbo/slack.py
# class SlackNotConnected(Exception):
# class SlackConnectionError(Exception):
# class SlackLoginError(Exception):
# class SlackClient(object):
# LOG = logging.getLogger(__name__)
# def dig(obj, *keys):
#     def __init__(self, token):
#     def rtm_read(self):
#     def rtm_send_message(self, channel_id, message, thread_ts=None):
#     def post_message(self, channel_id, message, **kwargs):
#     def post_reaction(self, channel_id, timestamp, reaction_name, **kwargs):
#     def process_changes(self, data):
#     def rtm_connect(self):
#     def parse_slack_login_data(self, login_data):
#     def connect_slack_websocket(self, ws_url):
#     def get_all(self, api_method, collection_name, **kwargs):
#     def get_channel_list(self):
#     def get_user_list(self):
#     def parse_users(self, users):
#     def parse_bot_data(self, bot):
#     def send_to_websocket(self, data):
#     def ping(self):
#     def websocket_safe_read(self):
#     def join_channel(self, name):
#     def api_call(self, method, **kwargs):
#     def do(self, request, post_data=None, files=None, **kwargs):


# Path: limbo/fakeserver.py
import json
import time
from .slack import User, Bot


        c = self.db.cursor()
        c.execute(sql, params)
        rows = c.fetchall()
        c.close()
        self.db.commit()
        return rows


class FakeSlack(object):
    def __init__(self,
                 server=None,
                 users=None,
                 events=None,
                 bots=None,
                 botname="test"):
        self.posted_messages = []
        self.posted_reactions = {}
        self.events = events if events else []
        self.login_data = {
            "self": {
                "name": botname,
            }
        }
        self.username = "limbo_test"
        self.userid = "1"

        self.users = users if users else {
            "1": User("limbo_test", 1, "", 0),
            "2": User("msguser", 2, "", 0),

            "3": User("slackbot", 3, "", 0),