Skip to content
Alvin Cheng edited this page Apr 17, 2023 · 8 revisions

Installation

The Chill&chat chatscript is a programming language designed to communicate to the Chill&chat server with bots. To begin, please make sure you have the Chill&chat chatscript build by downloading it here: https://github.com/Chillandchat/chatscript/releases

Getting started

To get started, please create a file with the extension: .chat. This will indicate that this is a cli compilable file.

Next, to compile the code simply run the following command below:

chatscript compile ./<YOUR_FILE_NAME>.chat

once it has compiled successfully it should out put a file with the name: <YOUR_FILE_NAME>.out.chat. If so, please run the command below to execute it:

chatscript run ./<YOUR_FILE_NAME>.out.chat

Command structure

All chat script lines are simply a command, just like a terminal(But with some changes). The command and arguments are separated by spaces, however, if a bracket for a quote is opened, the spacing will not affect the argument unless closed. Furthermore, lines and separated by semicolons ";", to finish off here is a basic command structure:

    print "Hello world!";
# ^Command^ ^argument1^
# Oh yes, this is a comment with a hashtag!

Also, note that spaces will not affect the code unless they are between arguments and commands.

🚨IMPORTANT NOTICE 🚨

Please only use the new chatscript versions from the tag: 8bf2787 onwards, as the other version prior to this tag is DEPRECATED and no longer usable!

Now you are ready to code your bot!!

Clone this wiki locally