@casual-simulation/aux-vm
Advanced tools
Changelog
V0.9.39
stripe.publishableKey
tag.stripe.secretKey
tag.player.checkout(options)
: Starts the checkout process for the user. Accepts an object with the following properties:
productId
: The ID of the product that is being purchased. This is a value that you make up to distinguish different products from each other so you know what to charge.title
: The title message that should appear in the checkout box.description
: The description message that should appear in the checkout box.processingChannel
: The channel that payment processing should happen on. This is the channel you made from step 3.requestBillingAddress
: Whether to request billing address information with the purchase.paymentRequest
: Optional values for the "payment request" that gives users the option to use Apple Pay or their saved credit card information to checkout. It's an object that takes the following properties:
country
: The two-letter country code of your Stripe account.currency
: The three letter currency code. For example, "usd" is for United States Dollars.total
: The label and amount for the total. An object that has the following properties:
label
: The label that should be shown for the total.amount
: The amount that should be charged in the currency's smallest unit. (cents, etc.)server.finishCheckout(options)
: Finishes the checkout process by actually charging the user for the product. Takes an object with the following properties:
token
: The token that was produced from the onCheckout()
call in the processing channel.amount
: The amount that should be charged in the currency's smallest unit.currency
: The three character currency code.description
: The description that should be included in the receipt.extra
: Extra data that should be sent to the onPaymentSuccessful()
or onPaymentFailed()
actions.onCheckout()
: This action is called on both the normal channel and the processing channel when the user submits a payment option to pay for the product/service. that
is an object with the following properties:
token
: The Stripe token that was created to represent the payment details. In the processing channel, this token can be passed to server.finishCheckout()
to complete the payment process.productId
: The ID of the product that is being purchased. This is useful to determine which product is being bought and which price to charge.user
: (Processing channel only) Info about the user that is currently purchasing the item. It is an object containing the following properties:
username
: The username of the user. (Shared for every tab & device that the user is logged into)device
: The device ID of the user. (Shared for every tab on a single device that the user is logged into)session
: The session ID of the user. (Unique to a single tab)onPaymentSuccessful()
: This action is called on the processing channel when payment has been accepted after server.finishCheckout()
has completed. that
is an object with the following properties:
bot
: The bot that was created for the order.charge
: The info about the charge that the Stripe API returned. (Direct result from /api/charges/create
)extra
: The extra info that was included in the server.finishCheckout()
call.onPaymentFailed()
: This action is called on the processing channel when payment has failed after server.finishCheckout()
was called. that
is an object with the following properties:
bot
: The bot that was created for the error.error
: The error object.extra
: The extra info that was included in the server.finishCheckout()
call.remote(command, target)
function.
remote(player.toast("hi!"), { username: 'test' })
will send a toast message with "hi!" to all sessions that the user "test" has open.player.toast()
or player.goToURL()
work. Shouts and whispers are not supported yet.Changelog
V0.9.29
hasFileInInventory()
function to hasBotInInventory()
.onMerge()
action tag to onMod()
.aux._editingFile
hidden tag to aux._editingBot
.#
or by pressing Ctrl+Space
.Ctrl+Space
.Shift+F12
.Shift+F12
.Alt+Shift+F
.Ctrl+F
.Channel doesn't exist. Do you want to create it?
to Channel doesn't exist. Click here to create it.
for better user direction.getBot()
function not working in the search bar.setTag()
not working with multiple files when fed a false or null value to set.onPointerExit()
function will now execute before an onPointerEnter()
function when hovering over multiple bots.RemoveTags()
function where providing a string with a .
in its tag section failed to remove the correct tags.aux.context
can now be set to a value type of boolean or number.Create Channel
toast message to give it more processing time so it works more consistently.onAnyDropInContext
and what was appearing in the tag dropdown onDropAnyInContext
to read correctly, and other similar cases of this.aux.context.inventory.height
to work in the context bot's tag list.Changelog
V0.9.19
shout()
returns a list of results from every bot that ran a script for the shout ordered by bot ID.whisper()
returns a list of results from every bot that ran a script for the whisper ordered by the input bot array.return
statements. For example, to return 10
from a shout you would simply write return 10
.Create Context from Selection
.powered by CasualOS
to bthe hamburger menu and loading popup.Unselect All
from the sheets.getBots("id")
)Changelog
V0.8.10
diff
key word to merge
or mergeBall
.
aux.diff
has been changed to aux.mergeBall
and aux.diffTags
has been changed to aux.mergeBall.tags
and the diff
id tag value has been changed to merge
.Changelog
V0.8.9
diff.save
and diff.load
to diff.export
and diff.import
respectfully.saveDiff
to automatically include the loadDiff
function within it to clean up the resulting output.diff.save
will now return a cleaner JSON than it was before.Changelog
V0.8.8
aux.color
, aux.label
, etc.aux._
to hidden
.aux._
tags until aux._
is input.aux.inventory.color
to global file that allows the user to set the inventory background color in player.minus
button of the final file in sheets will now switch to diff without the minus
or unselect all
buttons that don't do anything.Changelog
V0.8.7
#
section will no longer remain if there are no tags fitting the criteria.