You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+80-40Lines changed: 80 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,12 @@ topic: ~food []
13
13
14
14
#! I like spinach
15
15
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?
20
22
b: ( none ) You lead a deprived life.
21
23
b: ( Mickey Mouse ) The Disney icon.
22
24
@@ -27,19 +29,19 @@ u: ( ![ not never rarely ] I * ~ingest * ~meat ) You eat meat.
27
29
u: ( !~negativeWords I * ~like * ~meat ) You like meat.
28
30
29
31
#! do you eat bacon?
30
-
?: (do you eat _ [ ham eggs bacon]) I eat '_0
32
+
?: (do you eat _ [ ham eggs bacon]) I eat '_0
31
33
32
34
#! 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.
34
36
35
37
#! I adore kiwi.
36
38
s: ( ~like ~fruit ![~animal _bear] ) Vegan, you too...
37
39
38
40
#! do you eat steak?
39
-
?: (do you eat _~meat) No, I hate _0.
41
+
?: (do you eat _~meat) No, I hate _0.
40
42
41
43
#! I eat fish.
42
-
s: ( I eat _*1 >)
44
+
s: ( I eat _*1 >)
43
45
$food = '_0
44
46
I eat oysters.
45
47
```
@@ -58,9 +60,9 @@ Above example mentioned in article [How to build your first chatbot using ChatSc
58
60
* Planner capabilities allow a bot to act in real/virtual worlds.
59
61
* Remembers user interactions across conversations.
60
62
* 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.
62
64
* 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.
64
66
65
67
## OS Features
66
68
@@ -73,82 +75,120 @@ Above example mentioned in article [How to build your first chatbot using ChatSc
73
75
* Mature technology in use by various parties around the world.
74
76
* Integrated tools to support maintaining and testing large systems.
75
77
* 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)
77
80
78
81
79
82
# Getting started
83
+
80
84
## Installation
81
85
82
86
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.
## How to run locally on a console (for developement/test)
89
99
### Windows
90
-
Go to the BINARIES directory and type `ChatScript`:
91
-
```
92
-
cd BINARIES && ChatScript
100
+
```bash
101
+
ChatScript
93
102
```
94
103
95
104
### Linux
105
+
```bash
106
+
./LinuxChatScript64 local
96
107
```
97
-
cd BINARIES && ./LinuxChatScript64 local
98
-
```
108
+
Note: to set the file executable: `chmod a+x ./LinuxChatScript64`
99
109
100
110
### MacOS
101
-
```
102
-
cd BINARIES && ./MacChatScript local
111
+
```bash
112
+
./MacChatScript local
103
113
```
104
114
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`.
106
117
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
112
123
```
113
-
### Linux
124
+
### Run the server on Linux
125
+
```bash
126
+
./LinuxChatScript64
114
127
```
115
-
cd BINARIES && ./LinuxChatScript64
128
+
### Run the server on MacOS
129
+
```bash
130
+
./MacChatScript
116
131
```
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
118
140
```
119
-
cd BINARIES && ./MacChatScript
141
+
142
+
### Run a client (test) on Linux
143
+
```bash
144
+
./LinuxChatScript64 client=localhost:1024
120
145
```
121
146
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
+
```
124
151
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.
127
153
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.
129
154
130
155
## How to build a bot
131
156
Run ChatScript locally. From the ChatScript command prompt, type
132
-
```
133
-
:build Harry
134
-
```
135
157
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
+
137
170
138
171
# Full Documentation
172
+
139
173
[ChatScript Wiki (user guides, tutorials, papers)](/WIKI/README.md)
140
174
175
+
141
176
# Contributing
177
+
142
178
1. Fork it
143
179
2. Create your feature branch (git checkout -b my-new-feature)
144
180
3. Commit your changes (git commit -am 'Add some feature')
145
181
4. Push to the branch (git push origin my-new-feature)
146
182
5. Create new Pull Request
147
183
184
+
148
185
# Last releases
186
+
149
187
[changes.md](/changes.md)
150
188
189
+
151
190
# Author
191
+
152
192
* Bruce Wilcox
153
193
* home website: [BrilligUnderstanding.com](http://www.brilligunderstanding.com)
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.
0 commit comments