Skip to content

Commit 3401f06

Browse files
committed
2 parents 5c2ccde + b70f872 commit 3401f06

File tree

8 files changed

+993
-656
lines changed

8 files changed

+993
-656
lines changed

BINARIES/MacChatScript

24.5 KB
Binary file not shown.

NON-WINDOWS NON-C/XCODE/MacChatScript.xcodeproj/WorkspaceSettings.xcsettings

Lines changed: 0 additions & 28 deletions
This file was deleted.

NON-WINDOWS NON-C/XCODE/MacChatScript.xcodeproj/project.pbxproj

Lines changed: 320 additions & 86 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 80 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ topic: ~food []
1313
1414
#! I like spinach
1515
s: ( I like spinach ) Are you a fan of the Popeye cartoons?
16-
a: ( yes ) I used to watch him as a child. Did you lust after Olive Oyl?
17-
b: ( no ) Me neither. She was too skinny.
18-
b: ( yes ) You probably like skinny models.
19-
a: ( no ) What cartoons do you watch?
16+
17+
a: ( ~yes ) I used to watch him as a child. Did you lust after Olive Oyl?
18+
b: ( ~no ) Me neither. She was too skinny.
19+
b: ( yes ) You probably like skinny models.
20+
21+
a: ( ~no ) What cartoons do you watch?
2022
b: ( none ) You lead a deprived life.
2123
b: ( Mickey Mouse ) The Disney icon.
2224
@@ -27,19 +29,19 @@ u: ( ![ not never rarely ] I * ~ingest * ~meat ) You eat meat.
2729
u: ( !~negativeWords I * ~like * ~meat ) You like meat.
2830
2931
#! do you eat bacon?
30-
?: (do you eat _ [ ham eggs bacon]) I eat '_0
32+
?: ( do you eat _ [ ham eggs bacon] ) I eat '_0
3133
3234
#! do you like eggs or sushi?
33-
?: (do you like _* or _*) I don't like '_0 so I guess that means I prefer '_1.
35+
?: ( do you like _* or _* ) I don't like '_0 so I guess that means I prefer '_1.
3436
3537
#! I adore kiwi.
3638
s: ( ~like ~fruit ![~animal _bear] ) Vegan, you too...
3739
3840
#! do you eat steak?
39-
?: (do you eat _~meat) No, I hate _0.
41+
?: ( do you eat _~meat ) No, I hate _0.
4042
4143
#! I eat fish.
42-
s: ( I eat _*1 >)
44+
s: ( I eat _*1 > )
4345
$food = '_0
4446
I eat oysters.
4547
```
@@ -58,9 +60,9 @@ Above example mentioned in article [How to build your first chatbot using ChatSc
5860
* Planner capabilities allow a bot to act in real/virtual worlds.
5961
* Remembers user interactions across conversations.
6062
* Document mode allows you to scan documents for content.
61-
* Ability to control local machines via popen.
63+
* Ability to control local machines via popen/tcpopen/jsonopen.
6264
* Ability to read structured JSON data from websites.
63-
* Postgres and Mongo support for big data or large-user-volume chatbots.
65+
* [Postgres](https://www.postgresql.org/) and [Mongo](https://www.mongodb.com/) databases support for big data or large-user-volume chatbots.
6466

6567
## OS Features
6668

@@ -73,82 +75,120 @@ Above example mentioned in article [How to build your first chatbot using ChatSc
7375
* Mature technology in use by various parties around the world.
7476
* Integrated tools to support maintaining and testing large systems.
7577
* UTF8 support allows scripts written in any language
76-
* User support forum on [Chatbots.org](https://www.chatbots.org/ai_zone/viewforum/44/) and [here](https://github.com/bwilcox-1234/ChatScript/issues)
78+
* User support forum on [chatbots.org](https://www.chatbots.org/ai_zone/viewforum/44/)
79+
* Issues or bugs on this [repo](https://github.com/bwilcox-1234/ChatScript/issues)
7780

7881

7982
# Getting started
83+
8084
## Installation
8185

8286
Take this project and put it into some directory on your machine (typically we call the directory ChatScript, but you can name it whatever). That takes care of installation.
8387

88+
git clone https://github.com/bwilcox-1234/ChatScript
89+
90+
91+
## Standalone mode - run locally on a console (for developement/test)
92+
93+
From your ChatScript home directory, go to the BINARIES directory:
94+
```bash
95+
cd BINARIES
8496
```
85-
git clone https://github.com/bwilcox-1234/ChatScript
86-
```
97+
And run the ChatScript engine
8798

88-
## How to run locally on a console (for developement/test)
8999
### Windows
90-
Go to the BINARIES directory and type `ChatScript`:
91-
```
92-
cd BINARIES && ChatScript
100+
```bash
101+
ChatScript
93102
```
94103

95104
### Linux
105+
```bash
106+
./LinuxChatScript64 local
96107
```
97-
cd BINARIES && ./LinuxChatScript64 local
98-
```
108+
Note: to set the file executable: `chmod a+x ./LinuxChatScript64`
99109

100110
### MacOS
101-
```
102-
cd BINARIES && ./MacChatScript local
111+
```bash
112+
./MacChatScript local
103113
```
104114

105-
This will cause ChatScript to load and ask you for a username. Enter whatever you want. You are then talking to the default demo bot `Harry`.
115+
This will cause ChatScript to load and ask you for a username. Enter whatever you want.
116+
You are then talking to the default demo bot `Harry`.
106117

107-
## How to run as a server (for production)
108-
### Windows
109-
Go to the BINARIES directory and type `ChatScript port=1024`
110-
```
111-
cd BINARIES && ChatScript port=1024
118+
## Server Mode (for production)
119+
From your ChatScript home directory, go to the BINARIES directory and run the ChatScript engine as server
120+
### Run the server on Windows
121+
```bash
122+
ChatScript port=1024
112123
```
113-
### Linux
124+
### Run the server on Linux
125+
```bash
126+
./LinuxChatScript64
114127
```
115-
cd BINARIES && ./LinuxChatScript64
128+
### Run the server on MacOS
129+
```bash
130+
./MacChatScript
116131
```
117-
### MacOS
132+
133+
This will cause ChatScript to load as a server.
134+
But you also need a client (to test client-server communication).
135+
You can run a separate command window and go to the BINARIES directory and type
136+
137+
### Run a client (test) on Windows
138+
```bash
139+
ChatScript client=localhost:1024
118140
```
119-
cd BINARIES && ./MacChatScript
141+
142+
### Run a client (test) on Linux
143+
```bash
144+
./LinuxChatScript64 client=localhost:1024
120145
```
121146

122-
This will cause ChatScript to load as a server.
123-
But you also need a client (to test client-server communication). You can run a separate command window and go to the BINARIES directory and type `ChatScript client=localhost:1024` if you are on Windows, or type `./LinuxChatScript64 client=localhost:1024` if you are on Linux. This will cause ChatScript to load as a client and you can talk to the server.
147+
### Run a client (test) on MacOS
148+
```bash
149+
./MacChatScript client=localhost:1024
150+
```
124151

125-
## How to build the engine.
126-
On windows if you have Visual Studio installed, launch `VS2010/chatscript.sln` or `VS2015/chatscript.sln` and do a build. The result will go in the `BINARIES` directory.
152+
This will cause ChatScript to load as a client and you can talk to the server.
127153

128-
On Linux, go stand in the SRC directory and type `make server` (assuming you have make and g++ installed). This creates BINARIES/ChatScript, which can run as a server or locally. There are other make choices for installing PostGres or Mongo.
129154

130155
## How to build a bot
131156
Run ChatScript locally. From the ChatScript command prompt, type
132-
```
133-
:build Harry
134-
```
135157

136-
or whatever other preinstalled bot exists. If you have revised basic data, you can first do `:build 0` .
158+
:build Harry
159+
160+
or whatever other preinstalled bot exists. If you have revised basic data, you can first:
161+
162+
:build 0
163+
164+
## How to compile the engine.
165+
On windows if you have Visual Studio installed, launch `VS2010/chatscript.sln` or `VS2015/chatscript.sln` and do a build.
166+
The result will go in the `BINARIES` directory.
167+
168+
On Linux, go stand in the SRC directory and type `make server` (assuming you have make and g++ installed). This creates BINARIES/ChatScript, which can run as a server or locally. There are other make choices for installing PostGres or Mongo.
169+
137170

138171
# Full Documentation
172+
139173
[ChatScript Wiki (user guides, tutorials, papers)](/WIKI/README.md)
140174

175+
141176
# Contributing
177+
142178
1. Fork it
143179
2. Create your feature branch (git checkout -b my-new-feature)
144180
3. Commit your changes (git commit -am 'Add some feature')
145181
4. Push to the branch (git push origin my-new-feature)
146182
5. Create new Pull Request
147183

184+
148185
# Last releases
186+
149187
[changes.md](/changes.md)
150188

189+
151190
# Author
191+
152192
* Bruce Wilcox
153193
* home website: [BrilligUnderstanding.com](http://www.brilligunderstanding.com)
154194

SUBLIME TEXT EDITOR/README.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

Third Party Tools/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Editors Syntax Highlight for Chatscript
2+
3+
## Sublime Text editor
4+
5+
[Sublime Text](https://www.sublimetext.com/) is a sophisticated text editor for code, markup and prose.
6+
7+
There is a Sublime Text syntax hightlight plugin for ChatScript. To install:
8+
9+
[ChatScript package control plugin](https://packagecontrol.io/packages/ChatScript%20Syntax)
10+
11+
See also [Chatscript-tmlanguage github project](https://github.com/kuzyn/chatscript-tmlanguage), thanks [Samuel Cousin](https://github.com/kuzyn)!
12+
13+
## Vim editor
14+
15+
[Vim](http://www.vim.org/) is probably the most used editor ever (from CLI in \*nix OSs). To install:
16+
17+
[ChatScript.vim](https://github.com/solyaris/ChatScript.vim)
18+
19+
20+
# Client-server ChatScript integrations
21+
22+
## rChatScript
23+
24+
https://github.com/solyaris/rChatScript
25+
26+
It's a very basic ChatScript client Ruby gem, managing OOB messages. Contains an [example](https://github.com/solyaris/rChatScript/tree/master/examples/telegram) of ChatScript integration with [Telegram](www.telegram.org) instant messaging chat app.
27+

0 commit comments

Comments
 (0)