我正在尝试将一个人的文件内容复制到另一个文件中,但是我尝试过的任何事情似乎都不起作用
编辑:
我得到了它,似乎最终失败了,但是没有错误
@bot.command(pass_context=True)
async def CopyBypass(ctx):
audio_to_bypass2 = str(requests.get("https://cdn.discordapp.com/attachments/707643241700261970/707672527950053406/AK-47_sound.ogg"))
try:
attachment_url = ctx.message.attachments[0].url
audio_to_bypass = str(requests.get(attachment_url))
except:
audio_to_bypass = "none"
if audio_to_bypass == "none":
await ctx.send("Send your audio file dum dum")
else:
with open(audio_to_bypass2, "ab") as rf:
with open(audio_to_bypass, "rb") as wf:
for line in wf:
rf.write(line)
embed = discord.Embed(
embed = discord.Embed(title="TEST", description="TEST", color=0xFF0000))
await ctx.send(embed=embed)
最后一轮没说什么,但是当我打印时什么也没说 要么