Skip to content
Sign upLog in
← Back to Community

Help me on this database problem

Profile icon
Pokedric

from replit import db

username = "{ctx.author.name}"
db["{ctx.author.name}"] = "iron","gold"

@bot
.command(name="ironbal")
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?

Voters
Profile icon
BlazingStar1
Profile icon
Pokedric
Comments
hotnewtop
Profile icon
MrVoo

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