@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('!play'):
await message.channel.send('{author.mention} wants to play a game, would you like to play? @here')
我是新手,所以请解释我做错了什么。
答案 0 :(得分:0)
试试看:
if message.content.startswith('!play'):
await message.channel.send(f'{message.author.mention} wants to play a game, would you like to play? @here')