Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Help me on this database problem

Pokedric
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?

1 year ago

Voters

Comments

TopNew
1
MrVoo
MrVoo

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

1 year ago
Load more