I think I'm updating my database wrong? It's not giving me a error, so it's probably something that I forgot to do or didn't notice. Anyways, I'm super stumped and the tutorial I was watching didn't have this problem.
Thanks for all the help in advance!
@bot.command(aliases = ['gen' , 'newacc'])
async def open_account(tendant):
db = sqlite3.connect('leveling.sqlite')
cursor = db.cursor()
sqlupdate = (f'INSERT INTO leveling(user_id,xp, local_xp) VALUES(?,?,?)')
val = (tendant.author.id, 0, 0)
result = cursor.fetchall()
await tendant.channel.send(result)
cursor.execute(sqlupdate, val)
db.close()
bot.run(token)
db.commit()Add this above thedb.close()