#!/usr/bin/awk -f BEGIN{ srand() promtUser="\033[32;1m>>>\033[0m" promtCat="\033[31;1m>>>\033[0m" intro="\033[32;1mCatGPT\033[0m" intro=intro "\033[1m\n" intro=intro "Ask me anything you want, and receive my wisdom.\n" intro=intro "(this was not my idea, I saw it somewhere on the net)\n" intro=intro "Try one of these:\n" baseQ[0]="What is the capital of Budapest?" baseQ[1]="How do you say 'cat' in Spanish?" baseQ[2]="Tell me how to pet a cat." baseQ[3]="Why are you screaming? Your bold is full of food." baseQ[4]="Is my cat planing to 'un-alive' me?" baseQ[5]="Tell me 5 cool uses of the `netcat` command." baseQ[6]="Explain what does this command do: `oneko`." size_baseQ=length(baseQ) for(i=0; i<3; i++){ rn = int(rand()*size_baseQ) intro=intro "\t" promtUser " " baseQ[rn] "\n" } intro=intro "\033[1m" intro=intro "(press to quit)" intro=intro "\033[0m" print(intro) printf(promtUser " ") } { printf("\n" promtCat); for(i=0; i