# Path: twitchchatbot/lib/commands/parsing.py
# def get_valid_command(command):
# def get_command_cooldown(command):
# def get_command_userbadge(command):
# def get_command_cost(command):
# def get_command_last_used(command):
# def check_command_is_function(command):
# def get_command_arg_length(command):
# def update_command_last_used(command):
# def check_command_cooled_down(command):
# def check_valid_userbadge(command, userBadges):
# def check_command(con, msgDict, q_twitchbeagle):
# def execute_command(con, msgDict, q_twitchbeagle):
# def pass_to_function(command, user):


from twitchchatbot.lib.commands.parsing import commands
import json

def addcom(user, args):
    # Concatenate a list of strings down to a single, space delimited string.
    queueEvent = {}

    if len(args) < 2:
        queueEvent['msg'] = "Proper usage: !addcom <cmd> <Text to send>"

    else:
        commandHead = "!" + args[0]

# Path: twitchchatbot/lib/commands/parsing.py
# def get_valid_command(command):
# def get_command_cooldown(command):
# def get_command_userbadge(command):
# def get_command_cost(command):
# def get_command_last_used(command):
# def check_command_is_function(command):
# def get_command_arg_length(command):
# def update_command_last_used(command):
# def check_command_cooled_down(command):
# def check_valid_userbadge(command, userBadges):
# def check_command(con, msgDict, q_twitchbeagle):
# def execute_command(con, msgDict, q_twitchbeagle):
# def pass_to_function(command, user):


# Path: twitchchatbot/lib/commands/addcom.py
from twitchchatbot.lib.commands.parsing import commands
import json


def addcom(user, args):
    # Concatenate a list of strings down to a single, space delimited string.
    queueEvent = {}

    if len(args) < 2:
        queueEvent['msg'] = "Proper usage: !addcom <cmd> <Text to send>"

    else:
        commandHead = "!" + args[0]

        commands[commandHead] = {