Bots I';我在一个discord机器人上工作了至少一周,就在今天,我的笑话命令开始说无效语法

Bots I';我在一个discord机器人上工作了至少一周,就在今天,我的笑话命令开始说无效语法,bots,discord.py-rewrite,Bots,Discord.py Rewrite,我一直在开发一个discord.py机器人,昨天在我的公交车上,我的一些代码被删除了。一切正常,但现在我的笑话命令不起作用了。由于这是我的第二周,我对编码相当陌生,但是有人能解释一下为什么这会说无效语法吗 @bot.command() async def joke(ctx): responses = [ "Two hunters are out in the woods when one of them collapses. He's not breathing so

我一直在开发一个discord.py机器人,昨天在我的公交车上,我的一些代码被删除了。一切正常,但现在我的笑话命令不起作用了。由于这是我的第二周,我对编码相当陌生,但是有人能解释一下为什么这会说无效语法吗

@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)}')

您的列表末尾缺少一个结束括号。

噢,哈哈!非常感谢你。