-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
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
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
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.
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!!
- Home
- Setup
- Print command
- Variables and set command
- Append command
- Array command
- Call command
- Clear command
- Compare command
- Concat command
- Create command
- Delay command
- Delete command
- Disable command
- Enable command
- Exit command
- Export command
- Fetch command
- Functions and the function command
- Get command
- If statements
- Import command
- Length command
- Load string command
- Object command
- POST command
- Prompt command
- Read command
- Remove command
- Repeat command
- Shell command
- Write command
- Calculate command
- Sin cos and tan commands
- PI command
- Rand command
- Round command
- Sqrt command
- Delete message command
- Get messages command
- Follow user command
- Get public rooms command
- Get rooms command
- Join room command
- Login command
- On message command
- Remove room command
- Room exists command
- Send message command
- Signout command
- Final words&thoughts