text: import os
  import pyperclip
  
  os.system('') # in windows, for colors in cmd to function properly you need os.system('')
  
  
  class BColors:
      HEADER = '\033[95m'
      OKBLUE = '\033[94m'
      OKCYAN = '\033[96m'
      OKGREEN = '\033[92m'
      WARNING = '\033[93m'
      FAIL = '\033[91m'
      ENDC = '\033[0m'
      BOLD = '\033[1m'
      UNDERLINE = '\033[4m'
  
  
  d = False
  stringList = ["If your question has been answered, please close this channel by typing `!close`",
                "Please provide more information about your question",
                "Please ask your question, in one message pls :D"]
  
  
  def reprint():
      if os.name == 'nt':
          _ = os.system('cls')
      else:
          _ = os.system('clear')
      print(f"{BColors.HEADER}   0.\t{BColors.OKGREEN}>>{BColors.WARNING}   exit the application{BColors.ENDC}")
      for i in stringList:
          print(
              f"{BColors.HEADER}   {str(stringList.index(i) + 1)}.\t{BColors.OKGREEN}>>{BColors.WARNING}   {i}{BColors.ENDC}")
      if d: print(f"{BColors.OKGREEN}Copied successfully!{BColors.ENDC}")
  
  
  def print_error(error):
      reprint()
      print(f"{BColors.FAIL}{error}{BColors.ENDC}")
  
  
  if __name__ == '__main__':
      reprint()
      while True:
          try:
              inputVal = int(input())
              if inputVal > len(stringList) or inputVal < 0:
                  raise Exception("unbound")
              if inputVal == 0: exit()
              pyperclip.copy(stringList[inputVal - 1])
              d = True
              reprint()
          except ValueError:
              print_error("You can only input an integer.")
          except Exception as e:
              if e.__str__() == "unbound":
                  print_error(f"You can only input integers between 0 and {len(stringList)}")
              else:
                  print_error(e.with_traceback())
  