Discord.py 不协调bot消息中的阿尔金化文本
显然,discord能够将文本对齐到文本框的右侧或左侧 我有一个机器人接受命令:Discord.py 不协调bot消息中的阿尔金化文本,discord.py,Discord.py,显然,discord能够将文本对齐到文本框的右侧或左侧 我有一个机器人接受命令: @bot.command(name='repeat', help='help me to understand bots') async def test(ctx, *args): await asyncio.gather(*[ctx.send(arg) for arg in args]) 例如,如果你对它说: $repeat "I am a bot" "I send th
@bot.command(name='repeat', help='help me to understand bots')
async def test(ctx, *args):
await asyncio.gather(*[ctx.send(arg) for arg in args])
例如,如果你对它说:
$repeat "I am a bot" "I send the things you write back as seperate messages"
其响应将是:
I am a bot
I send the things you write back as seperate messages
我不确定我怎么能做到,但我想让它发回的最后一个字符串与前一个字符串在同一条消息中对齐,但右对齐
所以如果你写
$repeat“1”“2”“3”“4”
它的反应将是
1
2
3 4
或者,如果无法将最后一个字符串作为右对齐消息发送,即:
1
2
3
4