Operator | Description | Example |
##timeseconds | returns python's time.time() return | prt ##timeseconds |
##date | returns current date in format %Y-%m-%d | prt ##date |
##time | returns current time in format %H:%M:%S | prt ##time |
##msec | returns current time in milliseconds | prt ##msec |
##datetime | returns datetime.datetime.now | reg str start ##datetime |
##datetime:iso | returns datetime.datetime.now in iso format | reg str start ##datetime:iso |
##datetime:iso | returns datetime.datetime.now(datetime.timezone.utc) in iso format | reg str start ##datetime:utc |
Operator | Description | Example |
##uuid | returns a randomly generated uuid | reg str example ##uuid |
##user | returns the current name of the sys account being used | prt ##user |
##hostname | return's the hostname | prt ##hostname |
##platform | returns the platform the client is running on | if ##platform == Windows |
##osversion | returns the operating system's version | if ##osversion != "10.0.19045" |
##cwd | returns current work direcorty | delete_dir ##cwd //DONT DO THIS ;-; |
##env:key | returns environment variables | prt ##env:(USERNAME) |
##REPL | interpreter execution state | if ##REPL != 1 |
##env | returns environment variables/paths | reg str start |
Operator | Description | Example |
##ping:(url) | returns ping | reg int delay ##ping:(https://google.com) |
##fetch:(url) | returns HTML/text content from URL | reg str page ##fetch:(https://example.org) |
##fetch:json:(url) | returns parsed JSON | reg str data ##fetch:json:(https://api.example.org/data) |
##fetch:status:(url) | returns HTTP status code | reg int status ##fetch:status:(https://example.org) |
##fetch:headers:(url) | returns HTTP headers as dict | reg str headers ##fetch:headers:(https://example.org) |
##fetch:content:(url) | returns raw byte content | reg str content ##fetch:content:(https://example.org) |
##fetch:html:(url) | returns HTML body as string | reg str html ##fetch:html:(https://example.org) |
##fetch:xml:(url) | returns XML string | reg str xml ##fetch:xml:(https://example.org/data.xml) |
##rgb:(hex) | returns RGB tuple from HEX color | reg str color ##rgb:(#aabbcc) |