Home Reference Source Test
import Botlang from 'botlang/src/Botlang.js'
public class | source

Botlang

Botlnag interpreter.

Test:

Static Method Summary

Static Public Methods
public static

Return the current version

Constructor Summary

Public Constructor
public

Create a new Botlang interpreter.

Method Summary

Public Methods
public

reply(message: *): String

Returns a reply to a given message accordingly to the defined brain.

Static Public Methods

public static version(): String source

Return the current version

Return:

String

Public Constructors

public constructor(brain: String) source

Create a new Botlang interpreter.

Params:

NameTypeAttributeDescription
brain String

Test:

Public Methods

public reply(message: *): String source

Returns a reply to a given message accordingly to the defined brain.

Params:

NameTypeAttributeDescription
message *

Return:

String

Test: