From e17d209ece65fda80df90481bb122675051991f2 Mon Sep 17 00:00:00 2001 From: PeacefulPotato <8162759-PeacefulPotato@users.noreply.gitlab.com> Date: Tue, 9 Feb 2021 19:07:53 +0000 Subject: [PATCH] Update to 1.0.2.1: Clarify more apps that the markdown optimization feature supports --- HOP 1.0.2.py => HOP 1.0.2.1.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename HOP 1.0.2.py => HOP 1.0.2.1.py (94%) diff --git a/HOP 1.0.2.py b/HOP 1.0.2.1.py similarity index 94% rename from HOP 1.0.2.py rename to HOP 1.0.2.1.py index 651e0fc..6fc1582 100644 --- a/HOP 1.0.2.py +++ b/HOP 1.0.2.1.py @@ -19,6 +19,8 @@ #Added several files, including .replit, CODE_OF_CONDUCT.md, CONTRIBUTING.md, README.md, and SECURITY.md #Moved input, print, and import statements outside functions #Added ability to choose on runtime encode or decode + #1.0.2.1: + #Made changes to show that the "optimize for Discord" option also supports Element/Matrix, IRC, Joplin, etc. import base64 def decode(ciphertext, key): @@ -141,11 +143,11 @@ def encode(plaintext, key): stepfour = str(stepthreeb)+"h" answer = False while answer == False: - discord = input("Optimize for discord? y or n: ") - if(discord=="y"): + mdsupport = input("Optimize for markdown supported services, like Discord, Element/Matrix, Joplin, or IRC? y or n: ") + if(mdsupport=="y"): answer = True stepfour = "```"+str(stepthreeb)+"h```" - elif(discord=="n"): + elif(mdsupport=="n"): answer = True output="Your encoded message: "+stepfour return output