@command(name="добавить фото")
async def photoget(self, ctx, url=None):
t = url.split('=')[-1].split('/')[0]
with open("com.py", "a") as file:
if file == hug:
f = file.write(t)
result = hug + [t]
print(f)
if url is None:
await ctx.send("Укажите url адрес")
else:
await ctx.send("Фото успешно было добавленно", attachment=f'{t}')