Ask coding questions

← Back to all posts
Help me on this database problem
Pokedric (0)

from replit import db

username = "{}"
db["{}"] = "iron","gold"

async def ironbal(ctx: commands.Context):
await ctx.send(f"You have db["(username)"]")

It doesn't send it. The part: "]") has a red line below. How do i fix this?

MrVoo (190)

Your description makes zero sense, but you need to change the quotes around redstone and lapis on line 56 to single quotes