Exemplo n.º 1
0
def add(user):
    id = user['id']
    if 'bot' not in user.keys() and not DataBase.Status(id):
        username = user['username']
        print(f"Adding {username} to database")
        newUser = DataBase(username, id, 0)
        newUser.GoToDB()
Exemplo n.º 2
0
def add_user(username, user_id):
    if not DataBase.Status(user_id):
        print(f"Adding {username} to database")
        newUser = DataBase(username, user_id, 0)
        newUser.GoToDB()