Update emoji.py

This commit is contained in:
mirro-chan 2019-01-31 15:46:38 +01:00 committed by GitHub
parent 5e6d1c1782
commit bb057c217c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ def download_emojis(json):
emoji_file.write(emoji["shortcode"] + ", /emoji/" + emoji["shortcode"] + "." + file_extension[1] + "\n") emoji_file.write(emoji["shortcode"] + ", /emoji/" + emoji["shortcode"] + "." + file_extension[1] + "\n")
all_files.append(emoji["shortcode"] + "." + file_extension[1]) all_files.append(emoji["shortcode"] + "." + file_extension[1])
emoji_file.close() emoji_file.close()
answer = input("Do you want me to move them to the right repository for you?(y/n)") answer = input("Do you want me to move them to the right directory for you?(y/n)")
if answer == "y": if answer == "y":
print("I'm assuming pleroma is in /home/pleroma/pleroma as the tutorial suggests.") print("I'm assuming pleroma is in /home/pleroma/pleroma as the tutorial suggests.")
if os.path.isdir("/home/pleroma/pleroma/priv/static/emoji"): if os.path.isdir("/home/pleroma/pleroma/priv/static/emoji"):