Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- import pyperclip
- import colorama
- import webbrowser
- import time
- from colorama import Fore, Back, Style
- colorama.init()
- TITLE = Style.BRIGHT + Fore.GREEN + "Discord text manipulation suite, by REED 1/23/2020 \nPress ! to back out of selection\n1.Regional Indicator Text\n2.Spoil All Characters\n3.ASCII Formatter\n" + Style.RESET_ALL
- print(TITLE)
- def printText():
- strang = Style.BRIGHT + Fore.GREEN + "1.Big text\n2.Spoil All Characters\n3.ASCII Formatter" + Style.RESET_ALL
- print(strang)
- def regional():
- alphabet = "a b c d e f g h i j k l m n o p q r s t u v w x y z".split(" ")
- numbers = {
- "1":":one:",
- "2":":two:",
- "3":":three:",
- "4":":four:",
- "5":":five:",
- "6":":six:",
- "7":":seven:",
- "8":":eight:",
- "9":":nine:"}
- words = "one two three four five six seven eight nine".split()
- finString = []
- finVal = ""
- while True:
- TITLE = Style.BRIGHT + Fore.GREEN + "Enter text to make big" + Style.RESET_ALL
- print(TITLE)
- userIn = input("").lower()
- if userIn == "!":
- printText()
- break
- for character in userIn:
- if character in alphabet:
- finString.append(":regional_indicator_{0}: ".format(character))
- if character in numbers:
- i = numbers[character]
- finString.append(i)
- if character == " " or character == ",":
- finString.append(":black_large_square: ")
- if character == "!":
- finString.append(":exclamation: ")
- if character == "?":
- finString.append(":question: ")
- if character == ".":
- finString.append(":black_large_square: :black_large_square: :black_large_square: ")
- finVal = finVal.join(finString)
- if len(finVal) > 2000:
- overBy = len(finVal) - 2000
- print("Message is {0} characters long, {1} over discord's 2000 character limit. Try again".format(str(len(finVal)), overBy))
- del finString[:]
- finVal = ""
- pass
- else:
- os.system("echo %s | clip" %finVal)
- TITLE = Style.BRIGHT + Fore.YELLOW + "Copied to clipboard!" + Style.RESET_ALL
- print(TITLE)
- del finString[:]
- finVal = ""
- def spoil():
- stringResult = []
- while True:
- TITLE = Style.BRIGHT + Fore.GREEN + "Enter text to spoil" + Style.RESET_ALL
- print(TITLE)
- userIn = input("".lower())
- if userIn == "!":
- printText()
- break
- for character in userIn:
- character = "||" + character + "||"
- stringResult.append(character)
- pyperclip.copy("".join(stringResult))
- del stringResult[:]
- TITLE = Style.BRIGHT + Fore.YELLOW + "Copied to clipboard!" + Style.RESET_ALL
- print(TITLE)
- def asciii():
- finMsg = []
- string = ""
- while True:
- TITLE = Style.BRIGHT + Fore.GREEN + "Paste in ascii art, hit enter to go to a new line, and enter ctrl+Z" + Style.RESET_ALL
- print(TITLE)
- msg = sys.stdin.readlines()
- if len(str(msg)) >= 1:
- printText()
- break
- if len(str(msg)) >= 1999:
- ERROR = Style.BRIGHT + Fore.RED + "Over 2000 characters, too large for Discord. Try Again" + Style.RESET_ALL
- print(ERROR)
- else:
- for line in msg:
- modText = "| " + line
- finMsg.append(modText)
- finMsg[0] = "```"+finMsg[0]
- finMsg[-1]=finMsg[-1].strip("\n")+"```"
- for line in finMsg:
- string += line
- pyperclip.copy(string)
- TITLE = Style.BRIGHT + Fore.YELLOW + "Copied to clipboard!" + Style.RESET_ALL
- print(TITLE)
- while True: #main loop
- choice = input("")
- if choice == "1":
- regional()
- if choice == "2":
- spoil()
- if choice == "3":
- asciii()
- if choice.lower() == "reed and luna":
- HEHE = Style.BRIGHT + Fore.RED + """ @@@@@@ @@@@@@
- @@@@@@@@@@ @@@@@@@@@@
- @@@@@@@@@@@@@@ @@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@Best Friends Forever!@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@@@@@
- @@@@@@@@@@@@@@@
- @@@@@@@@@@@
- @@@@@@@
- @@@
- @
- """ + Style.RESET_ALL
- print(Style.BRIGHT + Fore.MAGENTA + "uwu" + Style.RESET_ALL)
- time.sleep(2)
- print(Style.BRIGHT + Fore.MAGENTA + "I can't draw cute things, but I can hide cute easter eggs in my code!"+ Style.RESET_ALL)
- time.sleep(3)
- print(Style.BRIGHT + Fore.MAGENTA + "You're one awesome possum~ I'm glad you're my friend <3"+ Style.RESET_ALL)
- time.sleep(3)
- print(HEHE)
- time.sleep(3)
- webbrowser.open_new_tab("https://youtu.be/HaZpZQG2z10?t=7")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement