Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Discord.py 不协调bot消息中的阿尔金化文本_Discord.py - Fatal编程技术网

Discord.py 不协调bot消息中的阿尔金化文本

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

显然,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 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