B
B
Bot-Developer2021-12-15 10:51:39
Python
Bot-Developer, 2021-12-15 10:51:39

How to get firebase value?

61b9bcb597596547756121.jpegHelp me get the value of "Money" (to display 100). I looked through everything that is possible, but it did not work out to display this particular number.
The code I used:

user = ctx.author.id
  y = db.reference(f"/{user}/Balance")
  y.update({
    "Money": 100
  })
  h = y.get("Money.val")
  print(h)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question