; All configuration for AFETCH is done via this file. ; This is also where all the code lives. ; This script in it's base state is ONLY usable on LINUX and/or other unix-like systems. ; However, with a little bit of modification (which you're supposed to do anyways), it can work on Windows as-well. infolines: 3 ; make sure neither the art nor the info will be cut off! ; ART (heh.. get it..? because its the file extension...?) linelen: 3 space: 2 art: ["OWO" ":3" "UwU"] ; INFO infolist: [] ; this is in order! add to it in the order you want it to be! osReleaseRaw: read "/etc/os-release" id: get match osReleaseRaw {/(?m)(?<=^ID=).[^\n]*/} 0; copy the regex & replace "ID" to be anything in /etc/os-release uptime: execute "uptime -p" user: execute "whoami" 'infolist ++ user 'infolist ++ id 'infolist ++ uptime loop.with:'i infolist 'a [ set infolist i strip.start.end a ] ; PUT IT TOGETHER output: "" loop infolines 'i [ f: i - 1 wslen: size split get art f | sub linelen | abs | add space ws: to :string 10 ^ wslen | replace "1" "" | replace "0" " " "" | append get art f | append ws | append get infolist f | print ]