moving memes out of the meme folder into tmp to be deleted

This commit is contained in:
phixxy 2024-01-17 22:43:38 -08:00
parent d3e4c6332c
commit 35e30f33d4

View file

@ -507,7 +507,7 @@ async def update_meme_webpage(filename):
with open("phixxy.com/ai-memes/index.html", "w") as f: with open("phixxy.com/ai-memes/index.html", "w") as f:
f.writelines(html_data) f.writelines(html_data)
await upload_sftp("phixxy.com/ai-memes/index.html", server_folder, "index.html") await upload_sftp("phixxy.com/ai-memes/index.html", server_folder, "index.html")
os.rename(filename, f'tmp/{filename}') os.rename(filename, 'tmp/' + new_file_name)
@bot.command( @bot.command(