def cmd(send, msg, args):
    """Throw something.

    Syntax: {command} <object> [at <target>]

    """
    users = get_users(args)
    if " into " in msg and msg != "into":
        match = re.match('(.*) into (.*)', msg)
        if match:
            msg = 'throws %s into %s' % (match.group(1), match.group(2))
            send(msg, 'action')
        else:
            return
    elif " at " in msg and msg != "at":
        match = re.match('(.*) at (.*)', msg)
        if match:
            msg = 'throws %s at %s' % (match.group(1), match.group(2))
            send(msg, 'action')
        else:
            return
    elif msg:
        msg = 'throws %s at %s' % (msg, choice(users))
        send(msg, 'action')
    else:
        send("Throw what?")
        return
Throw something.

    Syntax: {command} <object> [at <target>]