OcelotBOT
Search…
Store Module
The store module lets you store and retrieve values on a per-server basis. Values can be set/retrieved by any custom function in that server, regardless of who made it or who executes the function. Key and value length are limited to 191 characters.

set(key: string, value: any)

Set a value, non-string values will be converted to a string
1
local store = require('store');
2
store.set("myVariable", "value");
3
return "Value set!";
Copied!

get(key: string)

Returns a string value stored at key
1
local store = require('store');
2
return store.get("myVariable");
Copied!
Last modified 6mo ago