代码:
Adresses:
6001:8000:1080:142::12
8002:2013:2380:110::53
9007:2013:2380:117::80
.
.
输出: <消息ID = 762965515735924777频道=类型= <消息类型。默认值:0>作者= <成员ID = 483660674963079179名称='示例 'discriminator ='1234'bot = False nick = None guild => flags => 16%
答案 0 :(得分:0)
您需要使用Message.content
@bot.command()
async def perc(ctx,arg):
percList = []
for c in arg:
arg3 = str(c)
percList.append(arg3)
listtostr = ''.join([str(elem) for elem in percList])
perc = 0
perctext = await ctx.send(str(listtostr) + str(perc) + "%")
while perc < 100:
perc += random.randint(1,3)
time.sleep(0.1)
await perctext.edit(content = perctext.content + str(perc) + "%")
if perc == 100 or perc >= 100:
break