package main import ( "log" badger "github.com/dgraph-io/badger/v4" ) var db badger.DB func SetupDb() { db, err := badger.Open(badger.DefaultOptions("./bot2024.db")) if err != nil { log.Fatal(err) } defer db.Close() } func GetBalance(uid string) (float64, error) { // TODO thing return 0, nil } func SetBalance(uid string, bal float64) error { // TODO other thing return nil }