Exemplo n.º 1
0
def name(client, message):
    newname = extract_args(message)
    if ' ' not in newname:
        firstname = newname
        lastname = ''
    else:
        namesplit = newname.split(' ', 1)
        firstname = namesplit[0]
        lastname = namesplit[1]

    client.send(account.UpdateProfile(first_name=firstname,
                                      last_name=lastname))
    edit(message, f'`{NAME_OK}`')
Exemplo n.º 2
0
def setbio(client, message):
    newbio = extract_args(message)
    client.send(account.UpdateProfile(about=newbio))
    edit(message, BIO_SUCCESS)