io
write(...any)
Does not add spaces between args and does not output tables expanded.If TIMESTAMP is false, then it will not create a new line.
read():string
yields the thread until /input is given. Unlike lua this does not have any args.
You can also provide inputs in the code using --@<input> comments.
--@Hello, World!
local input = io.read()
print(input) --> Hello, World!
writefile(content: string|buffer, filename: string): boolean
This function makes it so the log file will output the content instead of the log history along with the file type specified. If file type is not supported then it will default to ansi. This will also trigger the file to be sent.
Supported file types:
"png",
"jpg",
"jpeg",
"gif",
"webp",
"svg",
"txt",
"ansi",
"lua",
"luau",
"json",
"xml",
"rbxm",
"html",
"css",
"js",
"md",
"csv",
"mp3",
"wav",
"ogg",
"mp4",
"webm"
readfile(file:string): (string,string)
reads a loaded file with write file and returns the content and the file type. If the file does not exist or is not loaded then it will return nil.
getoutput(): string
returns the current output log as a string
print("Hello, World!")
local output = io.getoutput()
print(output) --> "Hello, World!\n"
clearoutput()
Clears the output.