Skip to content

Commit

Permalink
Create discord_big_text.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oolivero45 committed Feb 11, 2017
1 parent ac6057d commit eccabfd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions discord_big_text.py
@@ -0,0 +1,28 @@
from tkinter import Tk
text = input("Enter text: ").lower()
output = ""
for i in text:
if i == " ":
output += " "
elif i == "!":
output += ":exclamation: "
elif i == "?":
output += ":question: "
elif i == "+":
output += ":heavy_plus_sign: "
elif i == "-":
output += ":heavy_minus_sign: "
elif i == "$":
output += ":heavy_dollar_sign: "
elif i in [".",",","(",")","[","]","'",'"',"£","%","^","&","*","_","=",":",";","@","#","~","\\","|","¬","`"]:
output += i + " "
else:
output += ":regional_indicator_" + i + ": "

print(output)
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append(output)
r.destroy()
print("\nText added to clipboard.")

0 comments on commit eccabfd

Please sign in to comment.