MCPcopy Create free account
hub / github.com/Botloader/botloader / createStorageVarNumber

Method createStorageVarNumber

components/runtime/src/ts/script.ts:175–178  ·  view source on GitHub ↗

* Create a new persistent variable. * * This is built on top of storage buckets so you can think of it as a single entry inside a storage bucket. * * @param key Key for the variable inside the storage bucket, the same key in another script will refer to the same entry * @p

(key: string, options?: StorageVarExtraOptions)

Source from the content-addressed store, hash-verified

173 * @returns
174 */
175 createStorageVarNumber(key: string, options?: StorageVarExtraOptions) {
176 const namespace = options?.namespace ?? "bl:vars_number";
177 return new Storage.NumberVar(namespace, key, this.storagePluginId());
178 }
179
180
181 /**

Callers 5

storage_var.tsFile · 0.80
interval2.tsFile · 0.80
tickets_2.tsFile · 0.80
tickets_3.tsFile · 0.80
tickets.tsFile · 0.80

Calls 1

storagePluginIdMethod · 0.95

Tested by

no test coverage detected