Advertisement
wirawafiy1

Chat gpt terminal ai

Jun 5th, 2023 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. parameter userInputFile.
  2.  
  3. function processInput {
  4.     parameter input.
  5.  
  6.     if (input:startswith("!")) {
  7.         if (input:startswith("!commands")) {
  8.             print("Available commands: !F5 [name], !F9 [name], !reconnect, !craftlist [filter], !launchcraft <name>, !vessels [filter], !switchvessel <name>, !recover, !revert, !kerbal <gender> <job>, !kerbal, !crew join <name>, !crewtransfer, !camera <mode>, !camera <variable> <operator> <value>, !camera focus <target>, !mapfilter <category> [on|off|toggle], !mapfilter default, !upload <pastebin code>, !cpu <X>, !kspmods, !runscript <pastebin code>")
  9.         } else {
  10.             print("Twitch bot command detected: " + input)
  11.         }
  12.     } else if (input:startswith("/me")) {
  13.         set input to input:substring(4)
  14.         print("Executing command: " + input)
  15.         run input.
  16.     } else {
  17.         print("Invalid command format. Please start your command with '/me' or '!'.")
  18.     }
  19. }
  20.  
  21. lock throttle to 0.
  22.  
  23. set userFile to open(userInputFile).
  24. set command to userFile:readline().
  25. userFile:close().
  26.  
  27. processInput(command).
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement