When paired with #form = "mesh", they both allow rendering a LDraw file as the bot's form.
ldraw - Renders the LDraw URL stored in #formAddress
ldrawText - Renders the LDraw text stored in #formAddress
Added the os.ldrawCountAddressBuildSteps(address) and os.ldrawCountTextBuildSteps(text) functions.
os.ldrawCountAddressBuildSteps(address) counts and returns the number of build steps that are in the LDraw file at the given URL. Returns a promise that resolves with the number of build steps that the file has.
os.ldrawCountTextBuildSteps(text) counts and returns the number of build steps that are in the given LDraw text. Returns a promise that resolves with the number of build steps that the file has.
Improved os.showUploadFiles() to return .mpd and .ldr files as text.
This makes it easier for users to work with LDraw files.
:rocket: Features
ldraw
andldrawText
subforms.#form = "mesh"
, they both allow rendering a LDraw file as the bot's form.ldraw
- Renders the LDraw URL stored in#formAddress
ldrawText
- Renders the LDraw text stored in#formAddress
os.ldrawCountAddressBuildSteps(address)
andos.ldrawCountTextBuildSteps(text)
functions.os.ldrawCountAddressBuildSteps(address)
counts and returns the number of build steps that are in the LDraw file at the given URL. Returns a promise that resolves with the number of build steps that the file has.os.ldrawCountTextBuildSteps(text)
counts and returns the number of build steps that are in the given LDraw text. Returns a promise that resolves with the number of build steps that the file has.os.showUploadFiles()
to return.mpd
and.ldr
files as text.Closes #388