Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 774 Bytes

README.md

File metadata and controls

63 lines (42 loc) · 774 Bytes

Bot Language

A simple Interpreted Dynamic Programming Language for describing chat bot commands and behavior... now in typescript! (Inspired by Bex)

P.S: Still needs a lot of work, but it's a start. Huge thanks to tsoding!

Installation

pnpm install

Usage

To compile:

pnpm run exec <filename.bot>

For example:

pnpm run exec examples/weather.bot

Should output:

Hello Anas from Marseille! Here is the weather in Marseille: ☀️ 🌡️+14°C 🌬️↖20km/h

Language Elements

String

"Hello, World"

Integer

69
420

Variable

args
sender

Funcalls

f()
f(g())
f(69, 420)
f("hello, world")