Guest User

Hackertext

a guest
Dec 4th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. #!/usr/bin/python3
  2. # Hackertext
  3. # Prints the sequence to display the given text as hackertext
  4. # Made by usdcollector@niu.moe
  5. # License: MIT License
  6.  
  7. import argparse
  8.  
  9. options_parser = argparse.ArgumentParser(description="Print given text as a hackertext emote string.")
  10. options_parser.add_argument("words", nargs="*")
  11. args = options_parser.parse_args()
  12.  
  13. out = ""
  14. for word in args.words:
  15.     for c in str(word):
  16.         if c.lower() in 'abcdefghijklmnopqrstuvwxyz':
  17.             out += ":hacker_" + c.lower() + ": "
  18.         else:
  19.             out += " "
  20.  
  21.     out += " "
  22.  
  23. print(out)
Add Comment
Please, Sign In to add comment