Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. print(chr(27) + '[2j')
  2. print('\033c')
  3. print('\x1bc')
  4. print ("SResource 3.1. Built By William Ingebrigtsen.")
  5. print ("Type Help for list of commands.")
  6. import platform
  7. import codecs
  8. import time
  9. from random import randrange
  10. import urllib2
  11.  
  12.  
  13. while True:
  14. x = input("SR: ")
  15.  
  16. if x == "help":
  17. print (" ")
  18. print ("SResource Help Page 1/1.")
  19. print (" ")
  20. print ("clear: Clear interpreter.")
  21. print (" ")
  22. print ("exit: exit the console")
  23. print (" ")
  24. print ("calc: usage: [NUMBER] Enter [NUMBER]")
  25. print (" ")
  26. print ("rnum: generates a random number from 1 to 50")
  27. print (" ")
  28. print ("ver -d: SResource Build date")
  29. print (" ")
  30. print ("ver: SResource Build Information")
  31. print (" ")
  32. print ("color -#: Turns text into selected color for 3 lines. Usage: color -b")
  33. print ("Colors available: Blue, Green. More wil be added soon.")
  34. print (" ")
  35. print ("cc: Show Contact information.")
  36. print (" ")
  37. print ("echo: Echo User input.")
  38.  
  39. elif x == "color -b":
  40. print("\033[1;34;40m Changed To Bright Blue \n")
  41.  
  42. elif x == "clear":
  43. print(chr(27) + '[2j')
  44. print('\033c')
  45. print('\x1bc')
  46. elif x == "exit":
  47. exit()
  48.  
  49.  
  50. elif x == "ver":
  51. print ("SResource 3.1 Developer Build Built By William Ingebrigtsen.")
  52. print ("SResource By Skotoma, https://skotoma.com/py3/s.com")
  53.  
  54. elif x == "ver -d":
  55. print ("Last Update Date: Monday, September 2, 2019 18:37 (CEST)")
  56.  
  57.  
  58. elif x == "color -g":
  59. print("\033[1;32;40m Changed To Bright Green \n")
  60. print ("To reset color type: clear")
  61.  
  62. elif x == "cc":
  63. list1 = ["https://twitter.com/WilliamIngebri1", "https://github.com/W1ll1am0004/"]
  64. print(list1)
  65.  
  66. elif x == "calc":
  67. num1 = input("SR:")
  68. num2 = input("SR:")
  69. result = int(num1) + int(num2)
  70. print(result)
  71.  
  72.  
  73. elif x == "rnum":
  74. print(randrange(50))
  75.  
  76. elif x == "echo":
  77. inp = input()
  78. print(inp)
  79.  
  80. elif x == "get":
  81.  
  82. else:
  83. print("SR: error: unknown command")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement