Skip to content

Commit c2e701b

Browse files
committed
better coloring code/ options for replicate
1 parent 6713b35 commit c2e701b

File tree

6 files changed

+311
-619
lines changed

6 files changed

+311
-619
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function Server (opts) {
7272
}
7373
```
7474

75-
### `Testbot.replicate({ from, to, live, name, log }, done)`
75+
### `Testbot.replicate({ from, to, live?, name?, log? }, done)`
7676

7777
Replicates data from one testbot to another, which is sometimes needed when you have functions
7878
which are only triggered by _another_ feedId, e.g. when I am added to a private group someone else started.
@@ -113,6 +113,11 @@ arguments:
113113
if (feedId === katie.id) return 'katie'
114114
}
115115
```
116+
- alternatively, if an instance has a "name" property, then that will be used, e.g.
117+
```js
118+
const piet = TestBot()
119+
piet.name = 'piet'
120+
```
116121
- `log` *Function|false* (optional)
117122
- `live` *Boolean* (optional)- whether or not to keep replication running (default: `false`).
118123
- provide a custom logging function, or disable the logging by setting this `false`

0 commit comments

Comments
 (0)