Members
AliveEnergy
amount of energy
Type | Description |
---|---|
Energy |
- Default Value
- null
world = this.world
function test() {
return world
}
Methods
(generator) fibonacci() → {number}
Generate the Fibonacci sequence of numbers.
Yields:
The next number in the Fibonacci sequence.
- Type:
- number
initSqlJs(config) → {SqlJs}
Asynchronously initializes sql.js
Parameters:
Name | Type | Description |
---|---|---|
config | SqlJsConfig | module initialization parameters |
Returns:
- Type:
- SqlJs
Example
initSqlJs({
locateFile: name => '/path/to/assets/' + name
}).then(SQL => {
const db = new SQL.Database();
const result = db.exec("select 'hello world'");
console.log(result);
})
Type Definitions
EnergyUnit
Type:
Properties- Object
Name | Type | Description |
---|---|---|
foo | String | kajsdh kajhsd |
hello | Array.<Array.<String>> | aksjdh kaj shdkj asd |
EnvironmentConfiguration
Type:
Properties- Object
Name | Type | Description |
---|---|---|
name | String | |
strange | Map.<String, Number> |
- Source
PhotoSize
Type:
Properties- object
Name | Type | Attributes | Description |
---|---|---|---|
file_id | string | Identifier for this file, which can be used to download or reuse the file | |
file_unique_id | string | Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. | |
width | number | Photo width | |
height | number | Photo height | |
file_size | number | <optional> | Optional. File size in bytes |
SqlJs
Type:
Properties- Object
Name | Type | Description |
---|---|---|
Database | Database | A class that represents an SQLite database |
Statement | Statement | The prepared statement class |
SqlJsConfig
Type:
Properties- Object
Name | Type | Description |
---|---|---|
locateFile | function | a function that returns the full path to a resource given its file name |