Contexts
text
event
message
sender
chat
device
metadata
command
bot
sesi
sessionGlobal functions
| Function | Fungsi |
|---|---|
| reply(text) / balas(text) | Reply ke conversation saat ini. |
| react(emoji) | Reaction action. |
| sendText(to, text) | Kirim text ke target. |
| string(value) | Konversi String. |
| number(value) | Konversi Number. |
| boolean(value) | Konversi Boolean. |
| length(value) | Length string/array/object safe keys. |
| get(value,path,fallback) | Nested property safe getter. |
| coalesce(...values) | Nilai pertama yang bukan null/undefined/empty string. |
| min/max/round/floor/ceil/abs | Numeric helpers. |
| log(value) | Runtime log terbatas. |
| stop() | Hentikan execution event. |
Runtime methods
text
bot.command(config)
integration.request(alias, options)
capability.run(id, options)
json.parse(text)
json.stringify(value)
sesi.mulai(...)
sesi.tunggu(...)
sesi.tahap(...)
sesi.simpan(...)
sesi.ambil(...)
sesi.hapus(...)
sesi.selesai()
sesi.reset(...)
sesi.perpanjang(...)
sesi.input(...)
sesi.wajibInput(...)
sesi.opsionalInput(...)
sesi.konfirmasi(...)
sesi.pilih(...)
sesi.kembali(...)
sesi.ke(...)
sesi.flow(...)Language surface
| Area | Allowed |
|---|---|
| Declarations | const, let |
| Control | if, else, return |
| Async | await |
| String methods | toLowerCase, toUpperCase, trim, startsWith, endsWith, includes, slice, substring, replace |
| Array methods | includes, slice, join |
Blocked
text
eval
Function
import
require
process
filesystem
network fetch
loops
classes
regular expression literals
destructuring
spread