dubleqotes bug repared

This commit is contained in:
ggodot 2025-02-12 16:23:59 +01:00
parent e6a63d78c2
commit e3e2379a57

4
bot.py
View File

@ -132,9 +132,9 @@ async def funfact(ctx):
ran = randrange(len(jokes["funfacts"])) ran = randrange(len(jokes["funfacts"]))
try: try:
await ctx.respond(f"Jednou jsem slyšela že: {jokes["funfacts"][ran]["txt"]}") await ctx.respond(f"Jednou jsem slyšela že: {jokes['funfacts'][ran]['txt']}")
except: except:
await ctx.send(f"Jednou jsem slyšela že: {jokes["funfacts"][ran]["txt"]}") await ctx.send(f"Jednou jsem slyšela že: {jokes['funfacts'][ran]['txt']}")
msg = await ctx.send(f"Co myslíš?") msg = await ctx.send(f"Co myslíš?")