simplex-chat 6.5.0-beta.4.3 → 6.5.0-beta.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/examples/squaring-bot-readme.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Please share your use cases and implementations.
|
|
|
14
14
|
## Quick start: a simple bot
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
npm i simplex-chat@6.5.0-beta.4.
|
|
17
|
+
npm i simplex-chat@6.5.0-beta.4.4
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Simple bot that replies with squares of numbers you send to it:
|
|
@@ -28,7 +28,7 @@ Simple bot that replies with squares of numbers you send to it:
|
|
|
28
28
|
profile: {displayName: "Squaring bot example", fullName: ""},
|
|
29
29
|
dbOpts: {dbFilePrefix: "./squaring_bot", dbKey: ""},
|
|
30
30
|
options: {
|
|
31
|
-
addressSettings: {welcomeMessage: "
|
|
31
|
+
addressSettings: {welcomeMessage: "Send a number, I will square it.",
|
|
32
32
|
},
|
|
33
33
|
onMessage: async (ci, content) => {
|
|
34
34
|
const n = +content.text
|
|
@@ -44,9 +44,11 @@ Simple bot that replies with squares of numbers you send to it:
|
|
|
44
44
|
If you installed this package as dependency, you can run this example with:
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
node ./node_modules/simplex-chat/examples/squaring-bot-readme.js
|
|
47
|
+
node ./node_modules/simplex-chat/examples/squaring-bot-readme.js
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
If you run it on Mac, the first time it will take 20-30 seconds for MacOS to verify the library.
|
|
51
|
+
|
|
50
52
|
If you cloned this repository, you can:
|
|
51
53
|
|
|
52
54
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
profile: {displayName: "Squaring bot example", fullName: ""},
|
|
5
5
|
dbOpts: {dbFilePrefix: "./squaring_bot", dbKey: ""},
|
|
6
6
|
options: {
|
|
7
|
-
addressSettings: {welcomeMessage: "
|
|
7
|
+
addressSettings: {welcomeMessage: "Send a number, I will square it."},
|
|
8
8
|
},
|
|
9
9
|
onMessage: async (ci, content) => {
|
|
10
10
|
const n = +content.text
|