我已经在一个不和谐的机器人上工作了至少一个星期,就在今天,我的笑话命令开始说无效语法

I've been working on a discord bot for at least a week and just today, my joke command started saying invalid syntax

我一直在开发一个 discord.py 机器人,昨天在我的公共汽车上,我的一些代码被删除了。一切正常,但现在我的玩笑命令不起作用。我对编码很陌生,因为这是我的第 2 周,但是有人可以向我解释为什么说语法无效吗?

@bot.command()
async def joke(ctx):
    responses = [
     "Two hunters are out in the woods when one of them collapses. He's not breathing so his friend calls 911. My friend is dead! What should I do? The operator replies, Calm down sir, first make sure that he's really dead. There's a silence, then a loud bang. Back on the phone, the guy says, Ok, now what?",
     "I threw a boomerang a few years ago; now I live in constant fear.",
     "Someone stole my mood ring. I don't know how I feel about that.",
   "Women call me ugly until they find out how much money I make. Then they call me ugly and poor.",
   "You're not completely useless: you can serve as a bad example.",
   "I broke my finger last week. On the other hand, I'm okay.",
     "Appearantly someone in London gets stabbed every 52 seconds. Poor bastard.",
     "A Roman legionaire walks into a bar, holds up two fingers, and says, Five Beers please!"
 await ctx.send(f'{random.choice(responses)}')

您的列表末尾缺少右括号。