The text after the command is passed on as all variables in your program you can get all of those with *args
and merge them back into a sentence with ' '.join(args)
.
Example code:
bot.command()
async def afk(ctx, *args):
reason = ' '.join(args)
ctx.send(f'{ctx.author.name} has gone afk with the following reason: "{reason}", bye')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…