-
Beta Was this translation helpful? Give feedback.
Answered by
msiemens
Jan 11, 2023
Replies: 1 comment 3 replies
-
Would something like this fork for you? results = db.search(User.id == ctx.options.member)
if results == []:
await ctx.respond("User doesn't exist... adding to database.")
db.insert({"id": ctx.options.member, "bal": 0})
else:
await ctx.respond(results[0].bal) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Brncray
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would something like this fork for you?