'Creates a room.
"create [public|private] <roomname>" - Create a room <roomname> with the
specified visibility.
"create <roomname>" - Create a room <roomname> with default visibility.
"create [public|private]" - Create a room with specified visibility.
"create" - Create a room with default visibility.'

def do_create(self, line):

    args = self._parse(line, ['vis', 'roomname'])
    body = {}
    if (('vis' in args) and (args['vis'] in ['public', 'private'])):
        body['visibility'] = args['vis']
    if ('roomname' in args):
        room_name = args['roomname']
        body['room_alias_name'] = room_name
    elif (('vis' in args) and (args['vis'] not in ['public', 'private'])):
        room_name = args['vis']
        body['room_alias_name'] = room_name
    reactor.callFromThread(self._run_and_pprint, 'POST', '/createRoom', body)
